15.10.2012, 02:19
Quote:
Niilo vocк nгo entendeu oque eu disse , isso KOPROTECT eu tenho , Anti Spam Car se eu nao me engano й quando o Player sai e entra de varios veiculos ao mesmo tempo , fazendo pegar fogo etc... , oque eu quero й o kra ficar parado em algum lugar puxando veiculos. , Sim eu usei o Search e o ****** hoje quase o Dia todo :S
|
Nгo deixa qe o hack fique puxando carros! esse codigo detecta e ban o player.
Код:
// 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; }