Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new antifakekill[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print(" Anti Fake Kill by; LuizFel");
- return 1;
- }
- 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] > 5)
- {
- new string[50], Nome[MAX_PLAYER_NAME];
- SendClientMessage(playerid, 0xFF0000AA, "Este servidor esta protegido por um Anti Fake Kill");
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(string, 50, "%s foi kickado pelo uso do Auto Fake Kill.", Nome);
- SendClientMessageToAll(0xFF0000AA, string);
- Kick(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment