Anti Fake Killing
#5

pawn Code:
//anti fake kill
new antifakekill[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
    antifakekill[playerid] ++;
    SetTimerEx("antifakekill2", 1000,false,"i",playerid);
return 1;
}
forward antifakekill2(playerid);
public antifakekill2(playerid)
{
    antifakekill[playerid] --;
    if(antifakekill[playerid] > 3)
    {
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"* %s was banned reason (Fake kill)",pName);
    SendClientMessageToAll(0xFF0000FF,string);
    BanEx(playerid, "Fake kill");
    }
    return 1;
}
Reply


Messages In This Thread
Anti Fake Killing - by Blackazur - 17.06.2013, 14:11
Re: Anti Fake Killing - by Jaxson - 17.06.2013, 14:14
Re: Anti Fake Killing - by dannyk0ed - 17.06.2013, 14:55
Re: Anti Fake Killing - by Pottus - 17.06.2013, 15:09
Re: Anti Fake Killing - by AldoT - 17.06.2013, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)