How to put a Helmet off? - 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: How to put a Helmet off? (
/showthread.php?tid=255758)
How to put a Helmet off? -
ImpactFtw - 17.05.2011
Hi!
I cant find a script with how you put a helmet of?
Please help!
Re: How to put a Helmet off? -
Admigo - 17.05.2011
RemovePlayerAttachedObject(playerid,index);
Re: How to put a Helmet off? -
ImpactFtw - 17.05.2011
don't work?
if (strcmp("/helm", cmdtext, true, 10) == 0) {
SetPlayerAttachedObject(playerid,3 , 18645, 2, 0.07, 0.017, 0, 88, 75, 0);
return 1;
}
if (strcmp("/helmaf", cmdtext, true, 10) == 0) {
RemovePlayerAttachedObject(playerid,3 , 18645, 2, 0.07, 0.017, 0, 88, 75, 0);
return 1;
}
Re: How to put a Helmet off? -
ImpactFtw - 17.05.2011
It works but it gives 8 warnings ;s
Re: How to put a Helmet off? -
Admigo - 17.05.2011
Change this:
Code:
if (strcmp("/helmaf", cmdtext, true, 10) == 0) {
RemovePlayerAttachedObject(playerid,3 , 18645, 2, 0.07, 0.017, 0, 88, 75, 0);
return 1;
}
To
Code:
if (strcmp("/helmaf", cmdtext, true, 10) == 0) {
RemovePlayerAttachedObject(playerid,3 );
return 1;
}