Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. forward GiveStandartWeapon(playerid, wInfo);
  2. public GiveStandartWeapon(playerid, wInfo)
  3. {
  4. if(pData[playerid][pJailed] > 0) return 1;
  5. if(NieMozeTeraz(playerid)) return 1;
  6.  
  7. if(BitFlag_Get(pOption[playerid], VIP_WEAPONS) && pData[playerid][SuperVIP])
  8. {
  9. for(new j; j != 6; i ++)
  10. GivePlayerWeapon(playerid, pData[playerid][pSpawnWeapon][j], 4000);
  11.  
  12. if(wInfo) SCM(playerid, COLOR_LIGHTGREEN, "(i) "WHITE"Dostałeś "LIGHTGREEN"własny zestaw broni. "WHITE"Aby nim zarządzać, wpisz "LIGHTGREEN"/vzestaw.");
  13.  
  14. return 1;
  15. }
  16. new weaponLevel;
  17. switch(pData[playerid][pLevel])
  18. {
  19. case 0..49:
  20. {
  21. weaponLevel = 1;
  22.  
  23. GivePlayerWeapon(playerid, 25, 500);
  24. GivePlayerWeapon(playerid, 29, 500);
  25. GivePlayerWeapon(playerid, 3, 1);
  26. GivePlayerWeapon(playerid, 33, 500);
  27. }
  28. case 50..99:
  29. {
  30. weaponLevel = 2;
  31.  
  32. GivePlayerWeapon(playerid, 25, 500);
  33. GivePlayerWeapon(playerid, 28, 500);
  34. GivePlayerWeapon(playerid, 5, 1);
  35. GivePlayerWeapon(playerid, 34, 500);
  36. }
  37. case 100..149:
  38. {
  39. weaponLevel = 3;
  40.  
  41. GivePlayerWeapon(playerid, 27, 500);
  42. GivePlayerWeapon(playerid, 30, 500);
  43. GivePlayerWeapon(playerid, 28, 500);
  44. GivePlayerWeapon(playerid, 8, 1);
  45. GivePlayerWeapon(playerid, 34, 500);
  46. }
  47. case 150..199:
  48. {
  49. weaponLevel = 4;
  50.  
  51. GivePlayerWeapon(playerid, 26, 500);
  52. GivePlayerWeapon(playerid, 30, 500);
  53. GivePlayerWeapon(playerid, 32, 500);
  54. GivePlayerWeapon(playerid, 8, 1);
  55. GivePlayerWeapon(playerid, 34, 500);
  56. }
  57. default:
  58. {
  59. weaponLevel = 5;
  60.  
  61. GivePlayerWeapon(playerid, 26, 500);
  62. GivePlayerWeapon(playerid, 31, 500);
  63. GivePlayerWeapon(playerid, 32, 500);
  64. GivePlayerWeapon(playerid, 4, 1);
  65. GivePlayerWeapon(playerid, 34, 500);
  66. }
  67. }
  68. GivePlayerWeapon(playerid, 1, 1);
  69. GivePlayerWeapon(playerid, 24, 500);
  70.  
  71. if(wInfo)
  72. {
  73. SCM(playerid, COLOR_GOLD, "Twój poziom to "YELLOW"%d"GOLD", otrzymujesz zestaw broni nr. {c7c7c7}%d/5.", pData[playerid][pLevel], weaponLevel);
  74. SCM(playerid, COLOR_GOLD, "Jeżeli chciałbyś dowiedzieć się więcej o broniach i poziomie, wpisz "GPP"/poziomy"GOLD".");
  75. }
  76. return 1;
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement