AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Jailbreak Last Request (https://forums.alliedmods.net/showthread.php?t=150179)

nikhilgupta345 02-15-2011 19:55

Jailbreak Last Request
 
4 Attachment(s)
Jailbreak Last Request

By: nikhilgupta345

Description:
This is a Last Request plugin for jailbreak mod, where the last terrorists can type /lr and is presented with a menu, which has numerous options to choose from that interact with the Counter-Terrorists.

Last Request Options:
    • Knife Battle - Fight with knives 1v1
    • Shot for Shot - Take turns shooting a deagle
    • Deagle Toss - See who can throw the deagle the farthest
    • Shotgun Battle - Fight with shotguns 1v1
    • Scout Battle - Fight with scouts 1v1
    • Grenade Toss - See who can throw the grenade the farthest
    • Race - Race across a certain part of the map
    • Spray Contest - See who can spray closest to a border (highest or lowest). Prisoner decides which.


Client Commands:
  • say/say_team
    • /lr - Opens Last Request Menu
    • !lr - Opens Last Request Menu
    • /lastrequest - Opens Last Request Menu
    • !lastrequest - Opens Last Request Menu
Installation:
    • Click 'Get Plugin' link below
    • Place jb_lastrequest.amxx in addons/amxmodx/plugins/ folder
    • Open addons/amxmodx/configs/plugins.ini
    • Add the line 'jb_lastrequest.amxx' at the bottom
    • Restart server or change map

Changelog:

Code:

February 15, 2011 - v1.0 -    Initial release
February 24, 2011 - v1.0.1 - Removed Teleporting Back To Cell due to requests.
March 05, 2011 - v1.1 - Changed way of allowing an LR.
March 26, 2011 - v1.2 - Added Multi-lingual support.
August 10, 2011 - v2.0 - Completely re-wrote plugin.


Credits:
    • Pastout - Used his thread as a layout for mine :)



Pastout 02-15-2011 20:10

Re: Jailbreak Last Request
 
PHP Code:

public swap_weaponsidid2, const weapon[] )

     if( 
is_user_aliveid2 ) )
     {
          
strip_user_weaponsid2 );
  
          new 
weapon2 give_itemid2weapon );
          
give_itemid2weapon );
  
          
cs_set_weapon_ammoweapon2);
          
cs_set_user_bpammoid2gShotForShotWeap);
  
          
strip_user_weaponsid );
  
     }
 
      return 
PLUGIN_HANDLED

:arrow:
PHP Code:

public swap_weaponsidid2, const weapon[] )

     if( 
is_user_aliveid2 ) )
     {
          
strip_user_weaponsid2 );
  
          new 
weapon2 give_itemid2weapon );
          
give_itemid2weapon );
  
          
cs_set_weapon_ammoweapon2);
          
cs_set_user_bpammoid2gShotForShotWeap);
  
          
strip_user_weaponsid );
  
     }
 
      return 
PLUGIN_HANDLED;



nikhilgupta345 02-15-2011 20:14

Re: Jailbreak Last Request
 
Damn autoindent takes out the last brace...

Fixed. Sorry about that.

TzK 02-16-2011 07:03

Re: Jailbreak Last Request
 
Quote:

/home/groups/alliedmodders/forums/files/5/9/0/3/5/82346.attach(3) : fatal error 100: cannot read from file: "colorchat"

Compilation aborted.
1 Error.

nikhilgupta345 02-16-2011 07:43

Re: Jailbreak Last Request
 
Updated installation instructions.

kropto 02-16-2011 11:44

Re: Jailbreak Last Request
 
Where to find or maybe you can load models/jailbreak/lastrequest/?

nikhilgupta345 02-16-2011 16:29

Re: Jailbreak Last Request
 
I'm sorry, when I first made it I added weapons for shot 4 shot, but decided to take them out.

kropto 02-16-2011 16:53

Re: Jailbreak Last Request
 
delete register_logevent( "Event_RoundStart", 2, "1=Round_Start" );

nikhilgupta345 02-16-2011 17:33

Re: Jailbreak Last Request
 
Deleted. Also optimized a few things.

kropto 02-17-2011 08:27

Re: Jailbreak Last Request
 
adding glow remove, round end or round start.


All times are GMT -4. The time now is 05:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.