08.04.2011, 13:10
Hello, I have made a command which is meant to delete the vehicle of which has the id I type in.
pawn Код:
command(dveh, playerid, params[])
{
new veh, str[128];
veh = GetPlayerVehicleID(playerid);
if(IsPlayerAdminEx(playerid, 10))
{
if(sscanf(params, "u", veh)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /dveh [vehicleid]");
{
DestroyVehicle(veh);
format(str, sizeof(str), "Admin: Vehicle ID %d has beem deleted!");
SendAdminMessage(COLOR_RED, str);
}
}
return 1;
}