04.03.2013, 11:08
can you help me with this too?i want to respawn each car in the distance o 5
and il thank you

Quote:
if(strcmp(cmd, "/rcevent", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 2) { SendClientMessage(playerid,COLOR_WHITE,"Ai respawnat masinile din jurul tau."); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { if(GetDistanceBetweenPlayers(playerid,i) <5) { for(new car = 1; car <= 699; car++) { SetVehicleToRespawn(car); } } } } } else { SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!"); } } else { SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!"); } return 1; } |