03.02.2013, 20:04
It not showing the Message
Код:
CMD:respawnallcars(playerid, params[]) { #pragma unused params if(APlayerData[playerid][PlayerLevel] < 3) { SendClientMessage(playerid, 0xFF0000FF, "ERROR:You can't use this command!"); } else { new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "%s has respawned all unoccupied vehicles", str); for(new i = 0; i < MAX_VEHICLES; i++) { if(IsVehicleOccupied(i) == 0) { SetVehicleToRespawn(i); PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); SendClientMessage(i, 0xFFFF00FF, str); } } } return 1; }