30.03.2016, 14:46
for me I use.
that's from my server, hope that helps
of course add the gates under ongamemodeinit AdminGate1 = createobject.........
PHP код:
new AdminGate1;
new AdminGate2;
new AdminGatesMove[MAX_PLAYERS];
//under onplayerupdate
//AdminGates move
if(IsPlayerInRangeOfPoint(playerid, 7.0, -82.88,-1648.43,3.64))
{
if(PlayerInfo[playerid][pAdmin] > 9)
{
AdminGatesMove[playerid] =3;
}
}
//Create a timer for one second.
//post this under it
if(AdminGatesMove[i] > 1) //move it down (whereever u want)
{
MoveObject(AdminGate1, -79.4000015,-1647.1999512,-2.5999999, 5.0, 0.0000000,0.0000000,196.0000000);
MoveObject(AdminGate2, -87.0000000,-1649.4000244,-2.5999999,5,0.0000000,0.0000000,196.0000000);
AdminGatesMove[i]--;
}
if(AdminGatesMove[i] == 1) // back to it's original spot
{
MoveObject(AdminGate1, -79.4000015,-1647.1999512,5.7999999,5,0.0000000,0.0000000,196.0000000);
MoveObject(AdminGate2, -87.0000000,-1649.4000244,5.7999999,5,0.0000000,0.0000000,196.0000000);
AdminGatesMove[i] =-1;
}
of course add the gates under ongamemodeinit AdminGate1 = createobject.........