10.06.2012, 15:55
Ola na hq da fa eu do /batercartao ai equipa normal sу q eu do /batercartao denovo equipa e fala que tem q espera 20 segundos .. mais n precisa espera nada pode floda no /batercartao eu keria tira essa parte
mais eu tiro e da um erro arrumen pra min pf :
PHP код:
if(GetTickCount() - AntiFlood[playerid][5] < 20000)
{
format(thestring, 128, "[ERRO] Vocк precisa esperar %d segundos para usar esse comando novamente!",20-(GetTickCount() - AntiFlood[playerid][5])/1000);
SendClientMessage(playerid, COLOR_GREY, thestring);
PHP код:
else if(Player[playerid][pMember] == TEAM_BOPE)
{
if(PlayerToPoint(3, playerid,241.2734,121.9725,1003.3057))
{
if(OnDuty[playerid]==0)
{
format(thestring, sizeof(thestring), "O oficial %s pegou seus equipamentos e distintivo.", Player[playerid][pName]);
ProxDetector(30.0, playerid, thestring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 4, 5);
SafeGivePlayerWeapon(playerid, 24, 400);
SafeGivePlayerWeapon(playerid, 31, 800);
SafeGivePlayerWeapon(playerid, 31, 35);
SetPlayerArmour(playerid, 90);
SetPlayerSkin(playerid, 285);
Player[playerid][pModel] = GetPlayerSkin(playerid);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
format(thestring, sizeof(thestring), "O oficial %s devolveu seus equipamentos e distintivo.", Player[playerid][pName]);
ProxDetector(30.0, playerid, thestring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк recebeu sua arma pessoal de volta.");
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SafeGivePlayerWeapon(playerid, 24, 21);
OnDuty[playerid] = 0;
}
}
else
return SendClientMessage(playerid, COLOR_RED,"[ERRO] Vocк nгo estб no vestiбrio!");
}
if(GetTickCount() - AntiFlood[playerid][5] < 20000)
{
format(thestring, 128, "[ERRO] Vocк precisa esperar %d segundos para usar esse comando novamente!",20-(GetTickCount() - AntiFlood[playerid][5])/1000);
SendClientMessage(playerid, COLOR_GREY, thestring);
return 1;
}