Advertisement
Guest User

Untitled

a guest
Mar 29th, 2013
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #pragma tabsize 0
  4. #define COLOR_YELLOW 0xFFFF00AA
  5. #define FILTERSCRIPT
  6. #if defined FILTERSCRIPT
  7. new housegate1;
  8. new housegate2;
  9.  
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. housegate1 = CreateObject(988, 1305.335693, -802.542603, 84.179688, 0.0000, 0.0000, 0.0000);
  14. housegate2 = CreateObject(980, 1245.38843, -767.14270, 91.41923, 0.00000, 0.00000, 0.00000);
  15.  
  16. print("\n--------------------------------------");
  17. print("Lehmzwerk");
  18. print("--------------------------------------\n");
  19. return 1;
  20. }
  21.  
  22. public OnFilterScriptExit()
  23. {
  24. return 1;
  25. }
  26.  
  27. #else
  28.  
  29. #endif
  30.  
  31. public OnPlayerCommandText(playerid, cmdtext[])
  32. {
  33. if (strcmp(cmdtext, "/housegate_auf", true) == 0){
  34. MoveObject(housegate1, 1003.28320, -643.52832, 115.85823, 8.71293,4);
  35. SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Tor ist Offen");
  36. return 1;
  37. }
  38. if (strcmp(cmdtext, "/housegate_zu", true) == 0){
  39. MoveObject(housegate1, 1003.28320, -643.52832, 124.20808, 15.24033,4);
  40. SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Tor ist Zu");
  41. return 1;
  42. }
  43. {
  44. if (strcmp(cmdtext, "/housegate_auf", true) == 0){
  45. MoveObject(housegate2, 1245.38843, -767.14270, 87.57541, 8.71293,4);
  46. SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Tor ist Offen");
  47. return 1;
  48. }
  49. if (strcmp(cmdtext, "/housegate_zu", true) == 0){
  50. MoveObject(housegate2, 1245.38843, -767.14270, 91.41923, 15.24033,4);
  51. SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Tor ist Zu");
  52. return 1;
  53. }
  54. return 0;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement