[Question] How to put 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Question] How to put helmet? (
/showthread.php?tid=143937)
[Question] How to put helmet? -
SpanishMan - 24.04.2010
Hello, i found a server, and when you use /helmet in a bike, it gives you a helmet in the head of your character.
How to do this? Its an object?
Re: [Question] How to put helmet? -
[HiC]TheKiller - 24.04.2010
Well, I'm not sure of the object ID but you attatch the object to the offset of the character with AttatchObjectToPlayer.
Re: [Question] How to put helmet? -
Steven82 - 25.04.2010
Um...i prefer not to use it as it will be buggy and make the person look like hell...
Re: [Question] How to put helmet? -
Thrarod - 25.04.2010
Yeah you need to change it's angle with a timer every half seconds...
Re: [Question] How to put helmet? -
whisperftw - 02.01.2011
Yea I Got it :3
Код:
if(strcmp(cmd, "/helmet",true) == 0) {
SetPlayerAttachedObject(playerid,3 , 18645, 2, 0.07, 0.017, 0, 88, 75, 0);
return 1;
}
Just Copy/Paste, Compile and have fun !
Re: [Question] How to put helmet? -
HyperZ - 02.01.2011
Use this auto helmet for
bikes
https://sampforum.blast.hk/showthread.php?tid=194211
Re: [Question] How to put helmet? -
Dan_Barocu - 04.07.2011
i made the helmet thing but i cant take it off why