How To Attach object to Player to all player see?
#1

I want to attach object to player and to make all other player see object?

I try to use :
Код:
        new Float:X, Float:Y, Float:Z;
        new myobject;
        GetPlayerPos(playerid, X, Y, Z);
        myobject = CreatePlayerObject(playerid, 19371, X, Y, Z+0.5, 0.0, 0.0, 0.0, 300.0);
        SetPlayerObjectMaterial(playerid, myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
Problem with above code : "Other player`s not see object"

I try this :

Код:
new myobject;
myobject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(myobject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
Problem with above code :"Player camera is very weird acting and
Код:
SetCameraBehindPlayer(playerid);
not helping to restore camera in normal"

Question : Is it possible to make object attached to player to be visible to all other player without camera problem?
Reply
#2

Quote:
Originally Posted by Azazelo
Посмотреть сообщение
Question : Is it possible to make object attached to player to be visible to all other player without camera problem?
Answer: Yes it is possible.
Reply
#3

How ?? I try to use CreateObject with AttachObjectToPlayer and for AttachPlayerObject wiki samp say is only player able to see it and no one else ?

I try to mix those function but not as i expect ?

I need just one link to exp ?

Or name of function to use ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)