05.01.2012, 17:05
pawn Код:
if (strcmp(cmd,"/retirarbloqueios",true) == 0)
{
if(!IsPlayerConnected(playerid)) return 1;
if(PlayerInfo[playerid][pAdmin] < 1337)
return SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб autorizado a usar este comando !");
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
for(new a = 0, b = GetMaxPlayers(); a < b; ++a)
{
if(IsPlayerConnected(i)) {
RemoveGangue(i);
RemoveBloqueio(i);
RemoveBarreira(i);
RemoveRoadPregos(i);
RemoveParedao(i);
RemoveBarraca(i);
}
}
GetPlayerName(i,playername,sizeof(playername));
format(string,sizeof(string),"AdmCmd: %s retirou todos bloqueios existentes!",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,string);
}
return 1;
}