- 0
Problema Destroycar
-
Similar Content
-
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
Madu99
Vreau si eu comanda /destroycar doar pentru o singura masina personala sa intru in ea si sa o sterg eu am comanda asta :
[pawn] if(strcmp(cmd, "/destroycars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
for(new h = 732; h < sizeof(CarInfo); h++)
{
new car = h;
format(string, 128, "cars/%d.ini", car);
dini_Create(string);
CarInfo[car][cID] = car;
new text[20];
CarInfo[car][cOwned] = 0;
text = "No-One";
strmid(CarInfo[car][cOwner], text, 0, strlen(text), 999);
CarInfo[car][cLocationx] = 0;
CarInfo[car][cLocationy] = 0;
CarInfo[car][cLocationz] = 0;
CarInfo[car][cAngle] = 0;
CarInfo[car][cModel] = 0;
CarInfo[car][cColorOne] = 0;
CarInfo[car][cColorTwo] = 0;
format(string, sizeof(string), "Destroyed Car ID: %d", car);
SendClientMessage(playerid, COLOR_WHITE, string);
DestroyVehicle(car);
SaveCar(car);
}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
PlayerInfo[pCar] = 9999;
SendClientMessage(i, COLOR_WHITE, "Masina ta personala a fost stearsa, o poti crea acum din nou!");
}
}
}
return 1;
}[/pawn]
Dar aceasta comanda sterge toate masinile
2 answers to this question
Recommended Posts