gate wont open - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: gate wont open (
/showthread.php?tid=340045)
gate wont open -
oscar7610 - 05.05.2012
pawn Код:
if (strcmp("/opengate", cmdtext, true) == 0)
{
if( !IsPlayerAdmin( playerid ) )
return SendClientMessage( playerid, 0xFF0000FF, "You are not an Admin!" );
MoveObject(islandgate, 1481.40002441, -3479.19995117, -2.50000000, 1);
return 1;
}
pawn Код:
islandgate = CreateDynamicObject(971,1481.40002441,-3479.19995117,1.00000000,0.00000000,0.00000000,270.00000000);
Re: gate wont open -
SuperViper - 05.05.2012
Change
pawn Код:
MoveObject(islandgate, 1481.40002441, -3479.19995117, -2.50000000, 1);
to
pawn Код:
MoveDynamicObject(islandgate, 1481.40002441, -3479.19995117, -2.50000000, 1);
Re: gate wont open -
oscar7610 - 05.05.2012
Thanks......