- 0
Comanda /rac
-
Similar Content
-
- 2 replies
- 2.000 views
-
- 1 answer
- 447 views
-
- 2 answers
- 1.038 views
-
Am o problema cu un battlepass,de ce nu merge comanda /misiuni cand o scriu,tin sa precizez ca script-ul mi l-a facut chatgpt
By cbnmihaita,
- 2 answers
- 854 views
-
- 3 answers
- 1.375 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 !
2 answers to this question
Recommended Posts