05.11.2013, 23:23
Tenta esse do Gm da Dten.
No final do GM:
Quote:
if(strcmp(cmd, "/rvu", true) == 0) { new string[128]; for(new v = 0; v < MAX_VEHICLES; v++) { if(!IsVehicleOccupied(v)) SetVehicleToRespawn(v); } format(string, sizeof(string), "O(A) ADM %s (%d) respawnou todos os veнculos desocupados.", GetPlayerNameEx(playerid), playerid); SendClientMessageToAll(0x33AAFFFF, string); SendClientMessage(playerid, 0x00D700AA, "Veнculos desocupados respawnados!"); return 1; } |
Quote:
stock IsVehicleOccupied(vehicleid) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER) { if(GetPlayerVehicleID(i) == vehicleid) { return 1; } } } } return 0; } |