AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ham_Touch -> Kill = Crash (https://forums.alliedmods.net/showthread.php?t=272437)

OnePL 09-30-2015 11:22

Ham_Touch -> Kill = Crash
 
When grenade touch a player occurs crash

PHP Code:

RegisterHam(Ham_Touch"grenade""TouchGrenade");

public 
TouchGrenade(iEntid) {
    
is_user_alive(id) && get_user_team((pev(iEntpev_owner))) == && get_user_team(id) == UserKill(id124iCSW_HEGRENADEHIT_GENERIC2DMG_ALWAYSGIBfalsetrue) : engfunc(EngFunc_RemoveEntityiEnt);


UserKill function: https://forums.alliedmods.net/showpo...80&postcount=1

colossus 09-30-2015 23:36

Re: Ham_Touch -> Kill = Crash
 
if(is_valid_ent(iEnt))


All times are GMT -4. The time now is 22:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.