Quote:
Originally Posted by Danyal
pawn Код:
CMD:respawnallc(playerid, params[]) { #pragma unused params if(pInfo[playerid][Adminlevel] < 4)return SendClientMessage(playerid,COLOR_RED,"[ERROR]{FFFFFF} You don't have an appropriate administration level to use this command."); { new bool:vehicleused[MAX_VEHICLES]; for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i)) { vehicleused[GetPlayerVehicleID(i)] = true; } } for(new i=1; i < MAX_VEHICLES; i++) { if(!vehicleused[i]) { SetVehicleToRespawn(i); } } if(Vehicle[playerid] != 0) { DestroyVehicle(Vehicle[playerid]); } new msg[128], pName[MAX_PLAYERS]; GetPlayerName(playerid, pName, sizeof(pName)); format(msg, sizeof(msg), "[ADMIN]{FFFFFF} %s has respawned all unused vehicles.", pName); SendClientMessageToAll(COLOR_ADMIN, msg); } return 1; }
|
Still not working.Its still the same!