Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Top of script
- new housegate1;
- Under OnGamemodeInit ((Where the other mapping is. This is the CreateObject for the gate.))
- housegate1 =
- CMD:openbays(playerid, params[])
- {
- {
- MoveObject(housegate1, /*XYZ*/, 2.0);
- }
- return 1;
- }
- CMD:closebays(playerid, params[])
- {
- {
- MoveObject(housegate1, /*XYZ*/, 2.0);
- }
- return 1;
- }
- //====================================================================================================================
- Top of script
- new fdsagate;
- new fdsagate1;
- new fdsagate2;
- new fdsagate3;
- Under OnGamemodeInit ((Where the other mapping is. This is the CreateObject for the gate.))
- fdsagate = CreateObject(4084, 1604.48, -2184.66, 14.36, 0.00, 0.00, 90.00);
- fdsagate1 = CreateObject(4084, 1584.79, -2184.63, 14.36, 0.00, 0.00, 90.00);
- fdsagate2 = CreateObject(4084, 1591.64, -2184.68, 14.36, 0.00, 0.00, 90.00);
- fdsagate3 = CreateObject(4084, 1598.44, -2184.65, 14.36, 0.00, 0.00, 90.00);
- And under them CreateObject codes put these for Fire DOORS.
- SetObjectMaterial(fdsagate, 0, 11008, "firehouse_sfse", "ws_rollerdoor_fire", 0);
- SetObjectMaterial(fdsagate1, 0, 11008, "firehouse_sfse", "ws_rollerdoor_fire", 0);
- SetObjectMaterial(fdsagate2, 0, 11008, "firehouse_sfse", "ws_rollerdoor_fire", 0);
- SetObjectMaterial(fdsagate3, 0, 11008, "firehouse_sfse", "ws_rollerdoor_fire", 0);
- Moving Bay Commands, Put this where the commands are.
- CMD:openbays(playerid, params[])
- {
- if(PlayerInfo[playerid][pMember] == 4)
- {
- MoveObject(fdsagate, 1584.7914, -2184.6294, 10.5072, 2.0);
- MoveObject(fdsagate1, 1591.6409, -2184.6814, 10.5072, 2.0);
- MoveObject(fdsagate2, 1598.4442, -2184.6543, 10.5072, 2.0);
- MoveObject(fdsagate3, 1604.4843, -2184.6553, 10.5072, 2.0);
- }
- return 1;
- }
- CMD:closebays(playerid, params[])
- {
- if(PlayerInfo[playerid][pMember] == 4)
- {
- MoveObject(fdsagate, 1584.7914, -2184.6294, 14.3595, 2.0);
- MoveObject(fdsagate1, 1591.6409, -2184.6814, 14.3595, 2.0);
- MoveObject(fdsagate2, 1598.4442, -2184.6543, 14.3595, 2.0);
- MoveObject(fdsagate3, 1604.4843, -2184.6553, 14.3595, 2.0);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement