TopHat 0.3e - 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: TopHat 0.3e (
/showthread.php?tid=341186)
TopHat 0.3e -
Kudoz - 09.05.2012
So yea, ServerFFS still hasn't released the 0.3e, but im learning the new stuff anywayz!

So the tophat which was added.. I want it on all my players head if they do the cmd /tophat .
How can I do that?
Heres the Object ID for the tophat :
pawn Код:
#define tophat01 19352
if(strcmp(cmd, "/tophat", true) == 0)
{
AddStaticObject(playerid, tophat01);
return 1;
}
Lolz, thats just an example of what I'm meaning .. so yea, anyone help me out?
thanks
sincerely,
Kudoz
Re: TopHat 0.3e -
HDFord - 09.05.2012
Well my Norwegian friend. Do this code. This was just made in full speed you still need to fix the x,y,z,rot: x,rot:y,rot:z on the attachobjecttoplayer to put the object on the right position.
pawn Код:
if(strcmp(cmd, "/tophat", true) == 0)
{
new id[MAX_PLAYERS];
if(IsPlayerConnected(id))
{
AttachObjectToPlayer((CreateObject(19352,0,0,0,0,0,0,200)),id,0,0,0,0,0,0);
}
return 1;
}
Re: TopHat 0.3e -
Luis- - 09.05.2012
It would be 100% better to add all the skin coords into an array.