Advertisement
Guest User

Untitled

a guest
May 16th, 2013
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. Top of script
  2.  
  3. new housegate1;
  4.  
  5. Under OnGamemodeInit ((Where the other mapping is. This is the CreateObject for the gate.))
  6.  
  7. housegate1 =
  8.  
  9.  
  10. CMD:openbays(playerid, params[])
  11. {
  12. {
  13. MoveObject(housegate1, /*XYZ*/, 2.0);
  14. }
  15. return 1;
  16. }
  17.  
  18. CMD:closebays(playerid, params[])
  19. {
  20. {
  21. MoveObject(housegate1, /*XYZ*/, 2.0);
  22. }
  23. return 1;
  24. }
  25. //====================================================================================================================
  26. Top of script
  27.  
  28. new fdsagate;
  29. new fdsagate1;
  30. new fdsagate2;
  31. new fdsagate3;
  32.  
  33. Under OnGamemodeInit ((Where the other mapping is. This is the CreateObject for the gate.))
  34.  
  35. fdsagate = CreateObject(4084, 1604.48, -2184.66, 14.36, 0.00, 0.00, 90.00);
  36. fdsagate1 = CreateObject(4084, 1584.79, -2184.63, 14.36, 0.00, 0.00, 90.00);
  37. fdsagate2 = CreateObject(4084, 1591.64, -2184.68, 14.36, 0.00, 0.00, 90.00);
  38. fdsagate3 = CreateObject(4084, 1598.44, -2184.65, 14.36, 0.00, 0.00, 90.00);
  39.  
  40. And under them CreateObject codes put these for Fire DOORS.
  41.  
  42. SetObjectMaterial(fdsagate, 0, 11008, "firehouse_sfse", "ws_rollerdoor_fire", 0);
  43. SetObjectMaterial(fdsagate1, 0, 11008, "firehouse_sfse", "ws_rollerdoor_fire", 0);
  44. SetObjectMaterial(fdsagate2, 0, 11008, "firehouse_sfse", "ws_rollerdoor_fire", 0);
  45. SetObjectMaterial(fdsagate3, 0, 11008, "firehouse_sfse", "ws_rollerdoor_fire", 0);
  46.  
  47.  
  48. Moving Bay Commands, Put this where the commands are.
  49.  
  50. CMD:openbays(playerid, params[])
  51. {
  52. if(PlayerInfo[playerid][pMember] == 4)
  53. {
  54. MoveObject(fdsagate, 1584.7914, -2184.6294, 10.5072, 2.0);
  55. MoveObject(fdsagate1, 1591.6409, -2184.6814, 10.5072, 2.0);
  56. MoveObject(fdsagate2, 1598.4442, -2184.6543, 10.5072, 2.0);
  57. MoveObject(fdsagate3, 1604.4843, -2184.6553, 10.5072, 2.0);
  58. }
  59. return 1;
  60. }
  61.  
  62. CMD:closebays(playerid, params[])
  63. {
  64. if(PlayerInfo[playerid][pMember] == 4)
  65. {
  66. MoveObject(fdsagate, 1584.7914, -2184.6294, 14.3595, 2.0);
  67. MoveObject(fdsagate1, 1591.6409, -2184.6814, 14.3595, 2.0);
  68. MoveObject(fdsagate2, 1598.4442, -2184.6543, 14.3595, 2.0);
  69. MoveObject(fdsagate3, 1604.4843, -2184.6553, 14.3595, 2.0);
  70. }
  71. return 1;
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement