18.02.2012, 00:32
pawn Code:
CMD:deleteveh(playerid, params[])
{
new vehicleid;
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, KLEUR_WIT, "You are not an Administrator.");
else if(isnull(params)) SendClientMessage(playerid, KLEUR_WIT, "{B4B5B7}USAGE: /deleteveh [vehicleid]");
else if(!(0 < (vehicleid = strval(params)) < MAX_VEHICLES)) SendClientMessage(playerid,-1,"Not a vaild vehicle");
{
new string[42];
format(string, sizeof(string), "You succesfully deleted vehicle ID: %i", vehicleid);
SendClientMessage(playerid,-1,string);
DestroyVehicle(vehicleid);
}
return 1;
}