- 0
/rac
-
Similar Content
-
- 12 replies
- 474 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
scritian
Buna ma ajutati va fac comanda /rac sa fie in 10 secunde
?
[pawn] if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] <= 1337)
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda !");
return 1;
}
new bool:unwanted[CAR_SUMA];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new car = 1; car <= 268; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s a respawnat toate masinile de pe server", sendername);
SendClientMessageToAll(COLOR_RED,string);
}
return 1;
}[/pawn]
Nimeni
??
Link to comment
Share on other sites
3 answers to this question
Recommended Posts