17.05.2013, 18:16
Right basically after fixing my computer (at last) i started to help a friend script since I lost my gm.
I made a vehicle spawning system which works fine, however wen I wish to delete the vehicle I have spawned the command wont work.
The script compiles fine, I can spawn but not delete the vehicle. I have tried several ways, being in the car and using the vehicle ID to delete. But it isnt working for some reason. Reckon you could help?
Below is the code:
I made a vehicle spawning system which works fine, however wen I wish to delete the vehicle I have spawned the command wont work.
The script compiles fine, I can spawn but not delete the vehicle. I have tried several ways, being in the car and using the vehicle ID to delete. But it isnt working for some reason. Reckon you could help?
Below is the code:
pawn Код:
[Edit: command removed due to it not needed]
CMD:delveh(playerid, params[])
{
new vehid;
if(sscanf(params,"i", vehid)) return SendClientMessage(playerid, RED,"Correct usage: /DelVeh [VehicleID]");
DestroyVehicle(vehid);
SendClientMessage(playerid, YELLOW, "Vehicle Succesfully deleted.");
return 1;
}