SA-MP Forums Archive
Traffic Cone flattens. - 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: Traffic Cone flattens. (/showthread.php?tid=280410)



Traffic Cone flattens. - Lynn - 31.08.2011

When I attach the Traffic Cone to my player,
It's flat.
I am sure one of the cords is causing it. Un-sure what one.

pawn Код:
SetPlayerAttachedObject(playerid, 0, 1238,6,0.050000, 0.05, -0.4, 0.000000, 0.000000, 0.000000,0.80,1, 0);



Re: Traffic Cone flattens. - =WoR=G4M3Ov3r - 31.08.2011

Its the index.

PHP код:
SetPlayerAttachedObject(playerid41238,6,0.0500000.05, -0.40.0000000.0000000.000000,0.80,10); 
This should work.


Re: Traffic Cone flattens. - Lynn - 31.08.2011

Still does it.


Re: Traffic Cone flattens. - =WoR=G4M3Ov3r - 31.08.2011

Quote:
Originally Posted by Lynn
Посмотреть сообщение
Still does it.
Mm, try it like this

PHP код:
SetPlayerHoldingObject(playeridmodelidboneFloat:fOffsetXFloat:fOffsetYFloat:fOffsetZFloat:fRotXFloat:fRotYFloat:fRotZ



Re: Traffic Cone flattens. - Lynn - 31.08.2011

That's not a SAMP Native.


Re: Traffic Cone flattens. - IceCube! - 31.08.2011

Your right

That function was removed in 0.3c R1


Re: Traffic Cone flattens. - =WoR=G4M3Ov3r - 31.08.2011

Sorry about that, I'm half drunk, anyway did you

PHP код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1) 
Then replace it with this

PHP код:
SetPlayerAttachedObject(playerid412386); 
Sorry again


Re: Traffic Cone flattens. - Lynn - 01.09.2011

Thanks man. It works now.


Re: Traffic Cone flattens. - =WoR=G4M3Ov3r - 01.09.2011

Quote:
Originally Posted by Lynn
Посмотреть сообщение
Thanks man. It works now.
No Problem, man, Sorry again.