YuNo.1
Donkey Kong
- 10/6/10
- 493
- 11
Ý em là Cái Red Crosshair,Khi bắn vào địch thì hiện ra red cross![]()
redcross đúng nghĩa đây
nhưng nếu bật nvg thì hết red cross
chú ý là để cross khác màu đỏ nhé 
View attachment redcross.rar
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Ý em là Cái Red Crosshair,Khi bắn vào địch thì hiện ra red cross![]()
nhưng nếu bật nvg thì hết red cross
chú ý là để cross khác màu đỏ nhé 
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <zombieplague>
#include <fakemeta_util>
#include <engine>
#define PLUGIN "He Touch"
#define AUTHOR "Dias"
#define VERSION "1.0"
#define RADIUS 500.0 // Affect radius
#define MAX_PLAYERS 32
new cvar_impactexplode
new g_MaxPlayers
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
cvar_impactexplode = register_cvar("he_impactexplode", "1")
RegisterHam(Ham_Touch, "grenade", "bacon_touch_grenade")
g_MaxPlayers = get_maxplayers ( )
}
public bacon_touch_grenade(ent, world)
{
if(!get_pcvar_num(cvar_impactexplode))
return HAM_IGNORED
static model[12]
pev(ent, pev_model, model, 11)
if(model[9] == 'h' && model[10] == 'e')
{
set_pev(ent, pev_dmgtime, 0.0)
return HAM_HANDLED
}
return HAM_IGNORED
}
. Má sao mình sài nhiều #include thế nhỉ 
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <zombieplague>
#include <fakemeta_util>
#include <engine>
#define PLUGIN "He Touch"
#define AUTHOR "Dias"
#define VERSION "1.0"
#define RADIUS 500.0 // Phạm vi
#define MAX_PLAYERS 32 // Số người chơi lớ nhất
new cvar_impactexplode // Tạo Cvar
new g_MaxPlayers // Tạo biến g_maxplayer
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
cvar_impactexplode = register_cvar("he_impactexplode", "1") // Đăng kí cvar (tắt mở cái he touch)
RegisterHam(Ham_Touch, "grenade", "bacon_touch_grenade") // Đăng kí Forward Touch
/// Forward Touch: nếu như garena chạm vào 1 cái gì đó thì Forward này chạy.
g_MaxPlayers = get_maxplayers ( ) // Lấy sô người chơi lớn nhất
}
public bacon_touch_grenade(ent, world)
{
if(!get_pcvar_num(cvar_impactexplode)) // Check cvar xem có bật không. Nếu không bật thì ngừng lại tại đây. Ignored...
return HAM_IGNORED
static model[12] // tạo biến model
pev(ent, pev_model, model, 11) // Lấy tên model của ent
if(model[9] == 'h' && model[10] == 'e') // Check kí tự he trong (weapon_hegrenade). Nếu đúng thì tiếp tục, vì phải check đúng cái cần set thì mới set. Chứ ko là nó set bậy bạ. Ném súng xuống đất nó cũng nổ :))
{
set_pev(ent, pev_dmgtime, 0.0) // Nếu đúng rồi thì set thời gian nổ còn 0 (tức là nổ ngay lập tức khi chạm)
return HAM_HANDLED
}
return HAM_IGNORED
}
Ơ bác này hay nhỉ, k đọc cái này à, bác ý chả đồng ý rồi còn j`:giải thích từng dòng.................... cậu nói cứ như ai cũng rảnh lắm ấy
........ học thì cậu cứ thử đổi nó đi (mà đã đọc căn bản chưa ?) rồi test là biết liền ấy mà
![]()
Với lại basic em đọc hết rồi, mấy cái này làm j` có trong basicKhông có gì khó cả. Cứ paste code lên đây. chứ giờ down về thì lười quá :P

Sét tọa độ trong file hud.txt để có thể đặt spr ra theo ý muốn của mình, nhưng cũng cần phải có plugins hay 1 module đi kèm để có thể chỉnh tọa độ theo ý muốnThanks bac dias, cong rep the nao vay? Em co acc 3 rep ma cung chang bit cong the nao.
Bac oi, lam sao de dat spr vao cho minh mong muon a?
Sét tọa độ trong file hud.txt để có thể đặt spr ra theo ý muốn của mình, nhưng cũng cần phải có plugins hay 1 module đi kèm để có thể chỉnh tọa độ theo ý muốn
.. Nếu nó là dạng display trên screen player thì phải set tọa độ trong hud.txt còn các spr cháy nổ, trail, line thì chỉ cần precache ra.
Chắc là VD về mấy cái spr ý mà
@Red : Lớp em chuyên Anh nè, có điều tán mãi chả e nào đổ![]()
