18.02.2012, 00:12
Well.. Here you go:
pawn Code:
CMD:deleteveh(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new vehicleid, string[64];
if(!sscanf(params, "i", vehicleid))
{
DestroyVehicle(vehicleid);
format(string, sizeof(string), "Vehicle ID: %d has been suceful deleted.", vehicleid);
SendClientMessage(playerid, 0xFFFFFFFF, string)
return 1;
}
else return SendClientMessage(playerid, 0xFFFFFFFFF, "Usage: /deletveh [Vehicle ID]");
}
else return SendClientMessage(playerid, 0xFFFFFFF, "You are not Admin.");
}