TopHat 0.3e
#1

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 :

Код:
19352	tophat01
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
Reply
#2

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

It would be 100% better to add all the skin coords into an array.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)