25.05.2012, 17:26
Hey, when I use the EditObject function it doesn't show the new location of the object for all players, what can be causing this problem?
Code:
Code:
pawn Код:
CMD:placebar(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] > 6)
{
for(new i = 0; i < 500; i++)
{
if(ismade[i] == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
barid[i] = CreateObject(973, x+2, y, z, 0, 0, 0, 0);
EditObject(playerid, barid[i]);
ismade[i] = 1;
return 1;
}
}
return 1;
}
else return SCM(playerid, COLOR_GREY, "You are not allowed to do this!");
}