Attached objects not hiding - 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: Attached objects not hiding (
/showthread.php?tid=505205)
Attached objects not hiding -
lukysnba - 07.04.2014
Objects not hiding i tested many ways, but still didn't hide.Object is showing but not hiding
Код:
CMD:zibintas(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 1))
{
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
}
if(playerDB[playerid][zibintas]==0) return SendClientMessage(playerid,RED,"Neturite ћibinto.Isigykite jį kioske.");
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
SetPlayerAttachedObject(playerid, 1,18656, 5, 0.1, 0.038, -0.1, -90, 180, 0, 0.03, 0.03, 0.03);
SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
return 1;
}
Re: Attached objects not hiding -
Boooth - 07.04.2014
Why are you setting the attached object again at the end of the command?
pawn Код:
SetPlayerAttachedObject(playerid, 1,18656, 5, 0.1, 0.038, -0.1, -90, 180, 0, 0.03, 0.03, 0.03);
SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
This is most likely the cause my friend.