Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "buywep" )
- {
- if ( !text ) ePrivMessage( "[Syntax] - /c " + cmd + " <weapon name/ID>", player );
- else if ( !IsPlayerInArea( player, "ammu1" )) || ( !IsPlayerInArea( player, "ammu2" )) || ( !IsPlayerInArea( player, "ammu3" ) )
- {
- else if ( text.tolower() == "pistol" )
- {
- if ( player.Cash < 100 ) ePrivMessage( "[Error] - You need $100 to buy weapon.", player );
- else {
- player.SetWeapon( 17, 250 );
- DecCash( player, 100 );
- ePrivMessage( " [Weapon] - You're brought a [ Pistol ] Ammo:[ 250 ] Cost [ $100 ] ", player);
- }
- }
- else if ( text.tolower() == "shotgun" )
- {
- if ( player.Cash < 400 ) ePrivMessage( "[Error] - You need $400 to buy weapon.", player );
- else {
- player.SetWeapon( 19, 250 );
- DecCash( player, 400 );
- ePrivMessage( " [Weapon] - You're brought a weapon: [ Shotgun ] Ammo:[ 250 ] Cost:[ $400 ] ", player);
- }
- }
- else if ( text.tolower() == "stubby" )
- {
- if ( player.Cash < 400 ) ePrivMessage( "[Error] - You need $400 to buy weapon.", player );
- else {
- player.SetWeapon( 21, 250 );
- DecCash( player, 400 );
- ePrivMessage( " [Weapon] - You're brought a weapon: [ Stubby ] Ammo:[ 250 ] Cost:[ $400 ] ", player);
- }
- }
- else if ( text.tolower() == "uzi" )
- {
- if ( player.Cash < 300 ) ePrivMessage( "[Error] - You need $300 to buy weapon.", player );
- else {
- player.SetWeapon( 23, 250 );
- DecCash( player, 300 );
- ePrivMessage( " [Weapon] - You're brought a weapon: [ Uzi ] Ammo:[ 250 ] Cost:[ $300 ] ", player);
- }
- }
- else if ( text.tolower() == "ingram" )
- {
- if ( player.Cash < 300 ) ePrivMessage( "[Error] - You need $300 to buy weapon.", player );
- else {
- player.SetWeapon( 24, 250 );
- DecCash( player, 300 );
- ePrivMessage( " [Weapon] - You're brought a weapon: [ Silence Ingram ] Ammo:[ 250 ] Cost:[ $300 ] ", player);
- }
- }
- else if ( text.tolower() == "mp5" )
- {
- if ( player.Cash < 300 ) ePrivMessage( "[Error] - You need $300 to buy weapon.", player );
- else {
- player.SetWeapon( 25, 250 );
- DecCash( player, 300 );
- ePrivMessage( " [Weapon] - You're brought a weapon: [ Mp5 ] Ammo:[ 250 ] Cost:[ $300 ] ", player);
- }
- }
- else if ( text.tolower() == "m4" )
- {
- if ( player.Cash < 500 ) ePrivMessage( "[Error] - You need $500 to buy weapon.", player );
- else {
- player.SetWeapon( 26, 250 );
- DecCash( player, 500 );
- ePrivMessage( " [Weapon] - You're brought a weapon: [ M4 ] Ammo:[ 250 ] Cost:[ $500 ] ", player);
- }
- }
- else if ( text.tolower() == "ruger" )
- {
- if ( player.Cash < 500 ) ePrivMessage( "[Error] - You need $500 to buy weapon.", player );
- else {
- player.SetWeapon( 27, 250 );
- DecCash( player, 500 );
- ePrivMessage( " [Weapon] - You're brought a weapon: [ Ruger ] Ammo:[ 250 ] Cost:[ $500 ] ", player);
- }
- }
- else ePrivMessage("[Error] - Invalid weapon name Use /c weplist to see avalible weapons.", player);
- else MessagePlayer( "You should be in any ammunation.", player );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement