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.)