How to delete a specific vehicle ID?
#7

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


Messages In This Thread
How to delete a specific vehicle ID? - by jessejanssen - 17.02.2012, 23:41
Re : How to delete a specific vehicle ID? - by ricardo178 - 18.02.2012, 00:12
Re: How to delete a specific vehicle ID? - by ReneG - 18.02.2012, 00:17
Re: How to delete a specific vehicle ID? - by Fj0rtizFredde - 18.02.2012, 00:21
Re: Re : How to delete a specific vehicle ID? - by ReneG - 18.02.2012, 00:21
Re : Re: Re : How to delete a specific vehicle ID? - by ricardo178 - 18.02.2012, 00:22
Re: How to delete a specific vehicle ID? - by Jefff - 18.02.2012, 00:32
Re: How to delete a specific vehicle ID? - by jessejanssen - 18.02.2012, 01:09

Forum Jump:


Users browsing this thread: 3 Guest(s)