new fbigate1; new fbigate2 public OnGameModeInit() { SetGameModeText("Blank Script"); AddPlayerClass(0,2506.2954,2375.3464,10.8203,31.8417,0,0,0,0,0,0); CreateObject( 986, 2479.5682,2351.2112,10.8203, 0.0, 0.0 , 180.0 );//vasak fbigate1 = CreateObject( 971, 2486.9682,2351.3512,13.4003, 0.0, 0.0 , 0.0 );//garage CreateObject( 985, 2494.5398,2351.2112,10.8203, 0.0, 0.0 , 180.0 ); CreateObject( 985, 2497.3977,2381.1685,10.8203, 0.0, 0.0 , 270.0 ); fbigate2 = CreateObject( 986, 2497.3977,2389.1685,10.8203, 0.0, 0.0 , 270.0 ); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/fbiopen1", cmdtext, true, 10) == 0) { MoveObject(fbigate1, 2494.9698,2351.3512,13.4003, 3 ); return 1; } if (strcmp("/fbiclose1", cmdtext, true, 10) == 0) { MoveObject(fbigate1, 2486.9682,2351.3512,13.4003, 3 ); return 1; } if (strcmp("/fbiopen2", cmdtext, true, 10) == 0) { MoveObject(fbigate2, 2497.3977,2389.1685,3.8203, 3 ); return 1; } if (strcmp("/fbiclose2", cmdtext, true, 10) == 0) { MoveObject(fbigate2, 2497.3977,2389.1685,10.8203, 3 ); return 1; } return 0; }