SA-MP Forums Archive
/takenos /takehydra - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /takenos /takehydra (/showthread.php?tid=170261)



/takenos /takehydra - Proteine - 22.08.2010

Is there a command to take nos and hydraulics?


Re: /takenos /takehydra - iggy1 - 22.08.2010

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


Re: /takenos /takehydra - iggy1 - 22.08.2010

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



Re: /takenos /takehydra - Proteine - 22.08.2010

Can I create one command?
Nos seize and Hydra