anti fake kill! is this effective/good?? +REP+
#1

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?

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;
}
thx
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)