/takenos /takehydra
#1

Is there a command to take nos and hydraulics?
Reply
#2

Maybe respawning the car would work im not sure about removing components never seen it done...
Reply
#3

Just found this sorry https://sampwiki.blast.hk/wiki/RemoveVehicleComponent
never used it before.

EDIT: made a quick command using sscanf and zcmd . Its not tested ts rushed but it should work i think.

pawn Код:
COMMAND:untune(playerid,params[])
{
    new id,vid;
    if(sscanf(params,"i",vid))
    {
        if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,0xff0000FF,"ERROR usage /untune [playerid] or if your in a tuned vehicle /untune");
        {
            vid = GetPlayerVehicleid(playerid);
            RemoveVehicleComponent(vid,1010);//removes nos
            RemoveVehicleComponent(vid,1087);//removes hydraulics
            return 1;
        }
    }
    else
    {
        if(IsPlayerInAnyVehicle(id))
        {
            vid = GetPlayerVehicleid(id);
            RemoveVehicleComponent(vid,1010);//removes nos
            RemoveVehicleComponent(vid,1087);//removes hydraulics
        }
        else
        {
            SendClientMessage(playerid,0xff0000FF,"Player is not in a vehicle");
        }
    }
    return 1;
}
Reply
#4

Can I create one command?
Nos seize and Hydra
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)