Deleting Vehicle command?
#1

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;
}
Reply


Messages In This Thread
Deleting Vehicle command? - by Luis- - 08.04.2011, 13:10
Re: Deleting Vehicle command? - by Infamous - 08.04.2011, 13:13
Re: Deleting Vehicle command? - by xir - 08.04.2011, 13:26
Re: Deleting Vehicle command? - by Infamous - 08.04.2011, 13:45
Re: Deleting Vehicle command? - by xir - 08.04.2011, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)