12.07.2011, 18:21
Corrigido:
PS: Nгo tinha visto os outros posts.
pawn Код:
if(strcmp(cmdtext, "/respawnartodos", true) == 0)
{
ResetarCarros(playerid);
return 1;
}
stock ResetarCarros(playerid)
{
new string[128];
GetPlayerName(playerid, string, MAX_PLAYER_NAME);
format(string, sizeof(string), "[INFO]: O Adminstrador %s Respawnou todos os veiculos", string);
SendClientMessageToAll(0xFFFFFFFF, string);
new bool:inVeh;
for( new i = 0; i < MAX_VEHICLES; i++ )
{
inVeh = false;
for( new j = 0; j < MAX_PLAYERS; j++ )
{
if(IsPlayerInVehicle( j, i ))
{
inVeh = true;
}
}
if(!inVeh) SetVehicleToRespawn(i);
}
return true;
}