GetAttachedObjectPos
#6

this should add it to everyone else on the server
Код:
Prop[playerid] = CreatePlayerObject(playerid, PropPositions[ii][ModelID], PropPositions[ii][Offset][0], PropPositions[ii][Offset][1], PropPositions[ii][Offset][2], PropPositions[ii][Rot][0], PropPositions[ii][Rot][1], PropPositions[ii][Rot][2]);
                AttachObjectToPlayer(Prop[playerid], playerid , PropPositions[ii][Offset][0], PropPositions[ii][Offset][1], PropPositions[ii][Offset][2], PropPositions[ii][Rot][0], PropPositions[ii][Rot][1], PropPositions[ii][Rot][2]);
                new Float:ox,Float:oy,Float:oz,Float:orx,Float:ory,Float:orz;
				GetObjectPos(Prop[playerid],ox,oy,oz);
				GetObjectRot(Prop[playerid],orx,ory,orz);
				for(new i = 0; i < MAX_PLAYERS; i++){
				    if(!IsPlayerConnected(i))continue;
				    if(i == playerid)continue;
				    Prop[i] = CreatePlayerObject(i, PropPositions[ii][ModelID], ox,oy,oz,orx,ory,orz);
				    AttachObjectToPlayer(Prop[playerid], playerid ,ox,oy,oz,orx,ory,orz);

				}
uncompiled
Reply


Messages In This Thread
GetAttachedObjectPos - by Rudy_ - 07.10.2014, 09:25
Re: GetAttachedObjectPos - by (SF)Noobanatior - 07.10.2014, 09:41
Re: GetAttachedObjectPos - by Rudy_ - 07.10.2014, 09:43
Re: GetAttachedObjectPos - by (SF)Noobanatior - 07.10.2014, 10:08
Re: GetAttachedObjectPos - by Rudy_ - 07.10.2014, 10:20
Re: GetAttachedObjectPos - by (SF)Noobanatior - 07.10.2014, 10:35
Re: GetAttachedObjectPos - by Rudy_ - 07.10.2014, 10:42
Re: GetAttachedObjectPos - by (SF)Noobanatior - 07.10.2014, 10:47
Re: GetAttachedObjectPos - by Rudy_ - 07.10.2014, 10:54
Re: GetAttachedObjectPos - by Rudy_ - 08.10.2014, 07:46

Forum Jump:


Users browsing this thread: 1 Guest(s)