Need help in my /gate command...
#4

Quote:

SetDynamicObjectRot( pdbarriergateobj, 0.0000, 90.0000, 90.0000);
SetDynamicObjectPos( pdbarriergateobj, 1544.682495, -1630.980000, 13.215000 );

Change that to this below, because to code you used rotates the object and afterwards put it in a certain position which it is supposed to move.

Quote:

else if(IsPlayerInRangeOfPoint(playerid,9,1544.4913,-1627.2817,13.382)
{ //POLICE BAR
if(!IsACop(playerid)) return SendClientMessage(playerid,COLOR_GREY," You do not have a remote to open that!");
if(pdgatebar==0)
{
pdgatebar = 1;
SetDynamicObjectRot( pdbarriergateobj, 0.0000, 360.0000, 90.0000);
MoveDynamicObject(pdbarriergateobj, 1544.682495, -1630.953003, 13.079567, 1.50 );
}
else if(pdgatebar==1)
{
pdgatebar = 0;
SetDynamicObjectRot(pdbarriergateobj, 0.0000, 90.0000, 90.0000);
MoveDynamicObject(pdbarriergateobj, 1544.682495, -1630.980000, 13.215000, 1.50 );
}
}

Reply


Messages In This Thread
Need help in my /gate command... - by Meinstad - 28.04.2011, 17:11
Re: Need help in my /gate command... - by Aldi96 - 28.04.2011, 17:20
Re: Need help in my /gate command... - by Meinstad - 28.04.2011, 17:23
Re: Need help in my /gate command... - by Berky - 29.04.2011, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)