26.08.2012, 02:08
So... New to attaching objects etc to players.
I do SetPlayerAttachedObject, other player can see the object in it's 'starting' position so to say.
Then when I do a CMD with EditPlayerAttachedObject other players still see it in it's 'starting' position, and not where I moved it to and saved it with EditPlayerAttachedObject .
Sorry if this doesn't make much sense. :L
Edit: My code:
I do SetPlayerAttachedObject, other player can see the object in it's 'starting' position so to say.
Then when I do a CMD with EditPlayerAttachedObject other players still see it in it's 'starting' position, and not where I moved it to and saved it with EditPlayerAttachedObject .
Sorry if this doesn't make much sense. :L
Edit: My code:
Код:
CMD:editobj1(playerid, params[])
{
EditAttachedObject(playerid, 1);
return 1;
}
CMD:editobj2(playerid, params[])
{
EditAttachedObject(playerid, 2);
return 1;
}
CMD:swatvest(playerid, params[])
{
SetPlayerAttachedObject(playerid, 1, 19142, 1);
SendClientMessage(playerid, WHITE, "You were given a SWAT Vest.");
return 1;
}
CMD:glasses(playerid, params[])
{
SetPlayerAttachedObject(playerid, 2, 19138, 2);
SendClientMessage(playerid, WHITE, "You were given Police Glasses.");
return 1;
}

