SA-MP Forums Archive
Gate move SA:MP 0.3d - 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 move SA:MP 0.3d (/showthread.php?tid=305996)



Gate move SA:MP 0.3d - Irox34300 - 24.12.2011

Hello,

I'm looking for the script of gates like in this video : [ame]http://www.youtube.com/watch?v=PIo3elf1kjI&feature=related[/ame]
I tried all, looked on ****** but I've never found an exemple.
If someone have an exemple to move gates like the video

Thanks


Re: Gate move SA:MP 0.3d - prisonliferp - 24.12.2011

Well, I got gates on my prison RP Server, yet they only move upwards.

This is my code:


Код:
if(!strcmp(cmdtext, "/gateopen", true)) // By Ellis
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
    {
        if (PlayerToPoint(15, playerid,-98.300003051758,2256.3999023438,1432.6999511719))
		{
      		MoveObject(pdgate1,-98.300003051758,2256.3999023438,1436.6999511719, 1.2);
      		SetTimer("GateClose", 12000, 0);
      		SendClientMessage(playerid, COLOR_BLUE,"Guard gate has been opened, will close in a few seconds.");
      		GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      		PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
		}
-My guess would be; You need to add rotation coordinates and it should automaticly move up as on the video.

-Merry xmas.


(You cannot just copy my code as i got definations for diffrent variables 'n simlar.)


Re : Gate move SA:MP 0.3d - Irox34300 - 24.12.2011

Thanks for the answer but it's not what i'm seeking, the script is like gates for 0.3c

Thanks, merry Christmas


Re: Gate move SA:MP 0.3d - Martin123 - 22.05.2012

Nice


Re: Gate move SA:MP 0.3d - logoster - 22.05.2012

nice, but the server in that video isnt an english server :O which means you might be able to find something like this in the language fourm