How to put a Helmet off?
#1

Hi!
I cant find a script with how you put a helmet of?

Please help!
Reply
#2

RemovePlayerAttachedObject(playerid,index);
Reply
#3

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;
}
Reply
#4

It works but it gives 8 warnings ;s
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)