12.03.2011, 15:30
Hi all. I create a barrier. But when I wrote / Opengate gates will not open. My script:
Thanks for the help.
Код:
if(playerDB[playerid][admin]) { if (!strcmp("/opengate", cmdtext, true)) { new Float:rot[3]; RotateObject(PD1,rot[0],rot[1]+270.0,rot[2],90,50.0); MoveObject(PD1,2238.19726562,2450.41796875,10.61546040, 1); return 1; } if(playerDB[playerid][admin]) { if (!strcmp("/closegate", cmdtext, true)) { new Float:rot[3]; RotateObject(PD1,rot[0],rot[1]-90.0,rot[2],90,50.0); MoveObject(PD1,2238.19726562,2450.41796875,10.61546040, 1); return 1; }