Guest User

Untitled

a guest
May 13th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. #define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnGameModeInit
  10. {
  11. // Code number 1
  12. // Code number 2
  13. }
  14.  
  15. {
  16. print("\n--------------------------------------");
  17. print(" Blank Filterscript by your name here");
  18. print("--------------------------------------\n");
  19. return 1;
  20. }
  21.  
  22. public OnFilterScriptExit()
  23. {
  24. return 1;
  25. }
  26.  
  27. #else
  28.  
  29. main()
  30. {
  31. print("\n----------------------------------");
  32. print(" Blank Gamemode by your name here");
  33. print("----------------------------------\n");
  34. }
  35.  
  36. #endif
  37.  
  38. new kk;
  39.  
  40. public OnGameModeInit()
  41. {
  42. CreateObject(16121,-445.5000000,1442.9000200,20.0000000,0.0000000,0.0000000,132.0000000); //object(des_rockgp2_09) (1) (1)
  43.  
  44.  
  45. kk = CreateObject(16121,-445.5000000,1442.9000200,20.0000000,0.0000000,0.0000000,132.0000000); //object(des_rockgp2_09) (1) (1)
  46. // pos2 CreateObject(16121,-445.5000000,1442.9000200,20.0000000,0.0000000,0.0000000,132.0000000); //object(des_rockgp2_09) (1)
  47. return 1;
  48. }
  49.  
  50. public OnGameModeExit()
  51. {
  52. return 1;
  53. }
  54.  
  55. public OnPlayerCommandText(playerid, cmdtext[])
  56. {
  57. if (strcmp("/open", cmdtext, true, 10) == 0)
  58. {
  59. SendClientMessage(playerid,0x000000ff,"{ff0000}Welcome Back to your cave");
  60. MoveObject(kk, -395.20001220703, 1242.6999511719, -1.3999999761581, 208, 0.30000001);
  61. return 1;
  62. }
  63. if (strcmp("/close", cmdtext, true, 10) == 0)
  64. {
  65. SendClientMessage(playerid,0x000000ff,"{ff0000}You are now leaving the cave");
  66. MoveObject(kk, -395.20001220703, 1242.6999511719, 4.0999999046326, 208, 0.30000001);
  67. return 1;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment