15.01.2012, 21:26
hi,
like the title says, this is supposed to be an anti fake kill but im not sure if my example is good.
Would it kick innoncent players? Or would it work?
thx
like the title says, this is supposed to be an anti fake kill but im not sure if my example is good.
Would it kick innoncent players? Or would it work?
pawn Код:
new Float:pHealthFake[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
if(Spieler[killerid][AdminLevel] == 0)
{
if(GetPlayerWeapon(killerid)!=reason)
{
GetPlayerHealth(playerid,pHealthFake[playerid]);
if(pHealthFake[playerid]>0)
{
//Kick player due to fake kill!
}
}
}
}
return 1;
}