28.10.2013, 21:57
pawn Код:
COMMAND:resetarveiculos(playerid, params[])
{
new nome[MAX_PLAYER_NAME], string[50];
GetPlayerName(playerid, nome, sizeof(nome));
if(APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][pAdmin] >= 3)
{
format(string, sizeof(string), "{a9c4e4}O Administrador %s resetou veiculos", nome);
SendClientMessageToAll(0x00FF00FF, string);
for(new i=0; i<MAX_VEHICLES; i++)
{
#define VehicleOccupied(i)
{
SetVehicleToRespawn(i);
}
}
}
else
return 0;
}
else
return 0;
return 1;
}