12.06.2011, 02:05
[I Need] Script For Area 51 Gate To be open? Does Anyone Have one?
-- Closed Position 2927 -> 215.941, 1874.571, 13.903 2929 -> 211.842, 1874.571, 13.903 -- Opened Position 2927 -> 219.941, 1874.571, 13.903 2929 -> 207.842, 1874.571, 13.903 -- Credits to Yom for the positions
ZCMD:opengate( playerid, params[ ] ) {
if( !IsPlayerAdmin( playerid ) )
return 1;
MoveObject( a51_gate[ 0 ], 219.941, 1874.571, 13.903, 0.5 );
MoveObject( a51_gate[ 1 ], 207.842, 1874.571, 13.903, 0.5 );
return 1;
}
ZCMD:closegate( playerid, params[ ] ) {
if( !IsPlayerAdmin( playerid ) )
return 1;
MoveObject( a51_gate[ 0 ], 215.941, 1874.571, 13.903, 0.5 );
MoveObject( a51_gate[ 1 ], 211.842, 1874.571, 13.903, 0.5 );
return 1;
}
// Above main() function
new a51_gate[ 2 ];
// Under OnGameModeInit( ) or OnFilterScriptInit, depending on your script
a51_gate[ 0 ] = CreateObject( 2927, 215.941, 1874.571, 13.903, 0.00, 0.00, 0.00 );
a51_gate[ 1 ] = CreateObject( 2929, 211.842, 1874.571, 13.903, 0.00, 0.00, 0.00 );