13.06.2011, 13:05
Код:
if(strcmp(cmdtext,"/respawncars",true) == 0) { new name[MAX_PLAYER_NAME],string[32]; GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"The player \"%s\" has set the vehicles to respawn.",name); SendClientMessageToAll(COLOR,string); for(new i = 0; i < MAX_VEHICLES; i++) { if(IsPlayerInVehicle(i,i)) { RemovePlayerFromVehicle(i); } SetVehicleToRespawn(i); } return 1; }