Gate move SA:MP 0.3d
#1

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
Reply
#2

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.)
Reply
#3

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

Thanks, merry Christmas
Reply
#4

Nice
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)