19.03.2012, 20:09
im trying to make a /mask command
although not like others.. i want to actually attach a mask object to the player
not just hide the player name ect..
so what i got works but!!!
i have no ideal how to get the correct x,y,z rotation to line up the mask to the player.
its not even close with default values.
this is what i have, i have messed with all the rotation values and cant even get close.
is there an easy way todo this?
or maybe someone has done it with other mask
and already know the rotations.
If someone could get me close to the correct rotation
then i could modify it for all the mask i want to use..
my only way is to change a value, recompile and reconnect.
although not like others.. i want to actually attach a mask object to the player
not just hide the player name ect..
so what i got works but!!!
i have no ideal how to get the correct x,y,z rotation to line up the mask to the player.
its not even close with default values.
this is what i have, i have messed with all the rotation values and cant even get close.
pawn Код:
if(IsPlayerAttachedObjectSlotUsed(playerid, 9)) {
RemovePlayerAttachedObject(playerid, 9);
}else{
SetPlayerAttachedObject(playerid, 9, 19036, 2, 0.0, 0.05, 0.0, 0.0, 0.0, 1.34);
}
or maybe someone has done it with other mask
and already know the rotations.
If someone could get me close to the correct rotation
then i could modify it for all the mask i want to use..
my only way is to change a value, recompile and reconnect.