armoo14

KUPOVINA ORUZJA

Sep 5th, 2020
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. if(dialogid == DIALOG_KUPIGUN)
  2. {
  3. if(!response) return SCM(playerid, -1, "SERVER: Odustao si od kupovine oruzija");
  4. if(response)
  5. {
  6. switch(listitem)
  7. {
  8. case 0:
  9. {
  10. GivePlayerMoney(playerid, -2000);
  11. GivePlayerWeapon(playerid, 24, 150);
  12. SCM(playerid, -1, "SERVER: Uspeno si kupio Deagle!");
  13. }
  14. case 1:
  15. {
  16. GivePlayerMoney(playerid, -3500);
  17. GivePlayerWeapon(playerid, 30, 150);
  18. SCM(playerid, -1, "SERVER: Uspeno si kupio AK-47!");
  19. }
  20. case 2:
  21. {
  22. GivePlayerMoney(playerid, -3500);
  23. GivePlayerWeapon(playerid, 31, 150);
  24. SCM(playerid, -1, "SERVER: Uspeno si kupio M4!");
  25. }
  26. }
  27. }
  28. }
  29. return 1;
  30. }
  31.  
  32. //=============================//
  33. CMD:kupigun(playerid,params[])
  34. {
  35. ShowPlayerDialog(playerid, DIALOG_KUPIGUN, DIALOG_STYLE_LIST,"Kupovina oruzije","DEAGLE\nAK-47\nM4","KUPI","");
  36. return 1;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment