04.06.2013, 00:59
pawn Код:
CMD:rc(playerid, params[])
{
ResetarCarros(playerid);
return true;
}
ResetarCarros(playerid)
{
new str[100], bool:vehicle[MAX_VEHICLES];
format(str, 100, "{FF0000}[ADMINISTRAЗГO]{FFFFFF}O Admin {05F531}%s {FFFFFF}respawnou os veiculos", Nome(playerid));
SendClientMessageToAll(-1, str);
for(new j = 1; GetVehicleModel(j); ++j){
vehicle[j] = false;
for(new i, p = GetMaxPlayers(); i < p; ++i){
if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i)) continue;
if(IsPlayerInVehicle(i, j)){
vehicle[j] = true;
break;
}
}
if(!vehicle[j]) SetVehicleToRespawn(j);
}
}//Creditos а Garfield,creio eu.