SA-MP Forums Archive
Help /helmet - 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)
+--- Thread: Help /helmet (/showthread.php?tid=314234)



Help /helmet - Dan_Barocu - 29.01.2012

can some remebere me..when i type /helmet he puts on the helmet and when he gets of bike he gets off his helmet please like in the first picture:
http://i51.tinypic.com/2mwxg1s.png [the first box]!


Re: Help /helmet - Dan_Barocu - 29.01.2012

please help....


Re: Help /helmet - niels44 - 29.01.2012

there is someone who made a FS for this... wait let me search for this...

EDIT:
http://forum.sa-mp.com/showthread.ph...ghlight=helmet


Re: Help /helmet - lamarr007 - 29.01.2012

Do this like :
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(vehicleid == 509 || 481 || 510 || 462 || 448) //This isґnt all bikes in SA, only for example
    {
    if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
    }
    return 1;
}