Guest User

Untitled

a guest
Sep 29th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. if(strcmp(cmd, "/guns", true) == 0)
  2. {
  3. ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Oruzje","USP\nDeagle\nAK47\nSniper", "Odaberi", "Odustani");
  4. return 1;
  5. }
  6.  
  7. //ONDIALOGRESPONSE
  8.  
  9. if(dialogid == 4)
  10. {
  11. if(response)
  12. {
  13. if(listitem == 0)
  14. {
  15. GivePlayerWeapon(playerid, 22, 9999);
  16. }
  17. if(listitem == 1)
  18. {
  19. GivePlayerWeapon(playerid, 24, 9999);
  20. }
  21. if(listitem == 2)
  22. {
  23. GivePlayerWeapon(playerid, 30, 9999);
  24. }
  25. if(listitem == 3)
  26. {
  27. GivePlayerWeapon(playerid, 34, 9999);
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment