12.07.2011, 18:20
pawn Код:
stock ResetarCarros(playerid)
{
new string[128],
nome[MAX_PLAYERS];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[INFO]: O Adminstrador %s Respawnou todos os veiculos", name);
SendClientMessageToAll(0xFFFFFFFF, string);
new inVeh;
for( new i = 0; i < MAX_VEHICLES; i++ )
{
inVeh = false;
for( new j = 0; j < SLOTS; j++ )
{
if(IsPlayerInVehicle( j, i ))
{
inVeh = true;
break;
}
}
if(inVeh == false)
{
SetVehicleToRespawn(i);
}
}
}