MistarA

Untitled

Jul 27th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. CMD:equip(playerid, params[])
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if(PlayerInfo[playerid][pFaction] == 2) // EMS
  6. {
  7. if(PlayerToPoint(2.5,playerid, PlayerToPoint(10.0,playerid,1156.7582,-1329.1193,1101.0859))
  8. {
  9. ShowPlayerDialog(playerid, 113, DIALOG_STYLE_LIST, "Echipare", "Extinctor\nLopata\nSpray", "Echipare", "Cancel");
  10. return 1;
  11. }
  12. }
  13. }
  14. return 1;
  15. }
  16.  
  17.  
  18. //dialog
  19. if(dialogid == 113)
  20. {
  21. if(response)
  22. {
  23. switch(listitem)
  24. {
  25. case 0:
  26. {
  27. GivePlayerWeapon(playerid, 42, 350); // Fire extinguisher
  28. ShowPlayerDialog(playerid, 113, DIALOG_STYLE_LIST, "Equipment Locker", "Fire Extinguisher\nShovel\nSpray", "Equip", "Cancel");
  29. }
  30. case 1:
  31. {
  32. GivePlayerWeapon(playerid, 6, 1); // Shovel
  33. ShowPlayerDialog(playerid, 113, DIALOG_STYLE_LIST, "Equipment Locker", "Fire Extinguisher\nShovel\nSpray", "Equip", "Cancel");
  34. }
  35. case 2:
  36. {
  37. GivePlayerWeapon(playerid, 41, 350); // Spray
  38. ShowPlayerDialog(playerid, 113, DIALOG_STYLE_LIST, "Equipment Locker", "Fire Extinguisher\nShovel\nSpray", "Equip","Cancel");
  39. }
  40. }
  41. }
  42. return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment