- 0
Comanda /rac
-
Similar Content
-
- 4 replies
- 139 views
-
- 1 reply
- 105 views
-
Comanda /spec
By VAurel,
- 4 answers
- 267 views
-
- 4 answers
- 619 views
-
- 3 replies
- 284 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Dekker
Cum pot face ca la comanda /rac , masinile care sunt tunate si apoi respawnate , sa le ramana tunningul dupa respawn.
[pawn]if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) //
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] <= 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "DENIED: You are not authorized to use that command!");
return 1;
}
new unwanted[MAX_VEHICLES];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=1; }
}
for(new c=0;c<catevehicule ai pe sv+1;c++)
{
if(unwanted[c] != 1)
{
SetVehicleToRespawn©;
}
}
for(new c=catevehicule ai pe sv+1;c<MAX_VEHICLES;c++)
{
if(unwanted[c] != 1)
{
SetVehiclePos(c, CarInfo[c][Locationx], CarInfo[c][Locationy], CarInfo[c][Locationz]);
}
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* All unsed cars has been respawned by admin : %s", sendername);
SendClientMessageToAll(COLOR_RED, string);
}
return 1;
}[/pawn]
[email protected] - Orice mapa doriti , add me !
Link to comment
Share on other sites
2 answers to this question
Recommended Posts