Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1.  
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5. #include <zcmd>
  6.  
  7. #if defined FILTERSCRIPT
  8. new XEPIZZA[10];
  9. new PIZZA[256];
  10. public OnFilterScriptInit()
  11. {
  12. print("\n--------------------------------------");
  13. print(" Blank Filterscript by your name here");
  14. print("--------------------------------------\n");
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27. print("\n----------------------------------");
  28. print(" Blank Gamemode by your name here");
  29. print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. public OnGameModeInit()
  35. {
  36. XEPIZZA[0] = AddStaticVehicleEx(482,-1562.3685,121.0869,3.5547,0.00000000,-1,-1,180); //Infernus
  37. return 1;
  38. }
  39.  
  40. public OnGameModeExit()
  41. {
  42. return 1;
  43. }
  44.  
  45. CMD:laybanh(playerid, params[])
  46. {
  47. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 10)
  48. {
  49. SetPlayerCheckpoint(playerid,-1562.3685,121.0869,3.5547,12);
  50. SendClientMessage(playerid,0xFFFF00AA," Hay chay den checkpoint da set ");
  51. PIZZA[playerid] = 1;
  52. //return 1;
  53. }
  54. else if(GetPlayerSkin(playerid) == 155)
  55. {
  56. SendClientMessage(playerid,0xFFFF00AA," Ban khong mac do cua pizza");
  57. PIZZA[playerid] = 1;
  58. //return 1;
  59. }
  60. else SendClientMessage(playerid,0xFFFF00AA,"Phai o tren xe");
  61. return 1;
  62. }
  63.  
  64. public OnPlayerEnterCheckpoint(playerid)
  65. {
  66. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 482)
  67. {
  68. if(PIZZA[playerid] == 1)
  69. {
  70. PIZZA[playerid] = 0;
  71. SendClientMessage(playerid,0xFFFF00AA, " Giao thanh cong ");
  72. GivePlayerMoney(playerid, 6000);
  73. DisablePlayerCheckpoint(playerid);
  74. return 1;
  75. }
  76. }
  77. return 1;
  78. }
  79.  
  80. public OnPlayerExitVehicle(playerid, vehicleid)
  81. {
  82. if(PIZZA[playerid] > 0)
  83. {
  84. PIZZA[playerid] = 0;
  85. DisablePlayerCheckpoint(playerid);
  86. SendClientMessage(playerid, 0xFFFF00AA,"Roi xe mat tien");
  87. }
  88. return 1;
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement