SA-MP Forums Archive
Gates. - 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: Gates. (/showthread.php?tid=454706)



Gates. - Mappers4Life - 30.07.2013

I was wondering since i dont know about scripting if you can make a moving gate like you have the cords but you change the cords to make it move left and right like below.
VVVV

Code:
Quote:

public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(0, 1289.63, -1716.29, 22.19, 0, 0, 0, 0, 0, 0);
CreateObject(2949, 1297.51, -1715.94, 12.00, 0.00, 0.00, 0.00);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true, 10) == 0)
{
SetObjectPos(2949, 1297.5087, -1714.9415, 12.0000);
return 1;
}
return 0;
}




Re: Gates. - Red_Dragon. - 30.07.2013

Yes you can. By using default function of SA:MP (CreateDynamicObject) or others such as the streamer plugin (MoveDynamicObject). Read these tutorials, they'll help you http://forum.sa-mp.com/showthread.ph...t=moving+gates http://forum.sa-mp.com/showthread.ph...t=moving+gates