Advertisement
KingOfVC

DD

Aug 31st, 2014
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. else if ( cmd == "buywep" )
  2. {
  3. if ( !text ) ePrivMessage( "[Syntax] - /c " + cmd + " <weapon name/ID>", player );
  4. else if ( !IsPlayerInArea( player, "ammu1" )) || ( !IsPlayerInArea( player, "ammu2" )) || ( !IsPlayerInArea( player, "ammu3" ) )
  5. {
  6. else if ( text.tolower() == "pistol" )
  7. {
  8. if ( player.Cash < 100 ) ePrivMessage( "[Error] - You need $100 to buy weapon.", player );
  9. else {
  10. player.SetWeapon( 17, 250 );
  11. DecCash( player, 100 );
  12. ePrivMessage( " [Weapon] - You're brought a [ Pistol ] Ammo:[ 250 ] Cost [ $100 ] ", player);
  13. }
  14. }
  15. else if ( text.tolower() == "shotgun" )
  16. {
  17. if ( player.Cash < 400 ) ePrivMessage( "[Error] - You need $400 to buy weapon.", player );
  18. else {
  19. player.SetWeapon( 19, 250 );
  20. DecCash( player, 400 );
  21. ePrivMessage( " [Weapon] - You're brought a weapon: [ Shotgun ] Ammo:[ 250 ] Cost:[ $400 ] ", player);
  22. }
  23. }
  24. else if ( text.tolower() == "stubby" )
  25. {
  26. if ( player.Cash < 400 ) ePrivMessage( "[Error] - You need $400 to buy weapon.", player );
  27. else {
  28. player.SetWeapon( 21, 250 );
  29. DecCash( player, 400 );
  30. ePrivMessage( " [Weapon] - You're brought a weapon: [ Stubby ] Ammo:[ 250 ] Cost:[ $400 ] ", player);
  31. }
  32. }
  33. else if ( text.tolower() == "uzi" )
  34. {
  35. if ( player.Cash < 300 ) ePrivMessage( "[Error] - You need $300 to buy weapon.", player );
  36. else {
  37. player.SetWeapon( 23, 250 );
  38. DecCash( player, 300 );
  39. ePrivMessage( " [Weapon] - You're brought a weapon: [ Uzi ] Ammo:[ 250 ] Cost:[ $300 ] ", player);
  40. }
  41. }
  42. else if ( text.tolower() == "ingram" )
  43. {
  44. if ( player.Cash < 300 ) ePrivMessage( "[Error] - You need $300 to buy weapon.", player );
  45. else {
  46. player.SetWeapon( 24, 250 );
  47. DecCash( player, 300 );
  48. ePrivMessage( " [Weapon] - You're brought a weapon: [ Silence Ingram ] Ammo:[ 250 ] Cost:[ $300 ] ", player);
  49. }
  50. }
  51. else if ( text.tolower() == "mp5" )
  52. {
  53. if ( player.Cash < 300 ) ePrivMessage( "[Error] - You need $300 to buy weapon.", player );
  54. else {
  55. player.SetWeapon( 25, 250 );
  56. DecCash( player, 300 );
  57. ePrivMessage( " [Weapon] - You're brought a weapon: [ Mp5 ] Ammo:[ 250 ] Cost:[ $300 ] ", player);
  58. }
  59. }
  60. else if ( text.tolower() == "m4" )
  61. {
  62. if ( player.Cash < 500 ) ePrivMessage( "[Error] - You need $500 to buy weapon.", player );
  63. else {
  64. player.SetWeapon( 26, 250 );
  65. DecCash( player, 500 );
  66. ePrivMessage( " [Weapon] - You're brought a weapon: [ M4 ] Ammo:[ 250 ] Cost:[ $500 ] ", player);
  67. }
  68. }
  69. else if ( text.tolower() == "ruger" )
  70. {
  71. if ( player.Cash < 500 ) ePrivMessage( "[Error] - You need $500 to buy weapon.", player );
  72. else {
  73. player.SetWeapon( 27, 250 );
  74. DecCash( player, 500 );
  75. ePrivMessage( " [Weapon] - You're brought a weapon: [ Ruger ] Ammo:[ 250 ] Cost:[ $500 ] ", player);
  76. }
  77. }
  78. else ePrivMessage("[Error] - Invalid weapon name Use /c weplist to see avalible weapons.", player);
  79. else MessagePlayer( "You should be in any ammunation.", player );
  80. }
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement