Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Coded by Koma
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("Anti Car Spam by Koma loaded.");
- return 1;
- }
- #define SCM SendClientMessage
- new xacalaca[MAX_PLAYERS];
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- xacalaca[playerid] ++;
- SetTimerEx("desxacalaca", 1000,false,"i",playerid);
- return 1;
- }
- forward desxacalaca(playerid);
- public desxacalaca(playerid)
- {
- xacalaca[playerid] --;
- if(xacalaca[playerid] > 10)
- {
- new bibi[128], Nome[MAX_PLAYER_NAME];
- SCM(playerid, -1, "Este servidor está protegido pelo sistema Kocars e você foi banido por spam de veículos");
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(bibi, sizeof(bibi), "[Koprotect]: %s foi banido pelo uso do mod cleo 4 car spam.", Nome);
- SendClientMessageToAll(-1, bibi);
- Ban(playerid);
- }
- //printf("xacalaca = %d", xacalaca[playerid]); // debug
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement