Raised This Month: $32 Target: $400
 8% 

Jailbreak Last Request


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 02-15-2011 , 19:55   Jailbreak Last Request
Reply With Quote #1

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


Attached Files
File Type: sma Get Plugin or Get Source (jb_lastrequest.sma - 8338 views - 20.0 KB)
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 09-03-2011 at 18:54.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 02-15-2011 , 20:10   Re: Jailbreak Last Request
Reply With Quote #2

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

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;

Pastout is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 02-15-2011 , 20:14   Re: Jailbreak Last Request
Reply With Quote #3

Damn autoindent takes out the last brace...

Fixed. Sorry about that.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
TzK
Member
Join Date: Apr 2010
Old 02-16-2011 , 07:03   Re: Jailbreak Last Request
Reply With Quote #4

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.
TzK is offline
Send a message via Skype™ to TzK
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 02-16-2011 , 07:43   Re: Jailbreak Last Request
Reply With Quote #5

Updated installation instructions.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
kropto
Member
Join Date: Aug 2010
Location: Lithuanian
Old 02-16-2011 , 11:44   Re: Jailbreak Last Request
Reply With Quote #6

Where to find or maybe you can load models/jailbreak/lastrequest/?
kropto is offline
Send a message via Skype™ to kropto
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 02-16-2011 , 16:29   Re: Jailbreak Last Request
Reply With Quote #7

I'm sorry, when I first made it I added weapons for shot 4 shot, but decided to take them out.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
kropto
Member
Join Date: Aug 2010
Location: Lithuanian
Old 02-16-2011 , 16:53   Re: Jailbreak Last Request
Reply With Quote #8

delete register_logevent( "Event_RoundStart", 2, "1=Round_Start" );
kropto is offline
Send a message via Skype™ to kropto
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 02-16-2011 , 17:33   Re: Jailbreak Last Request
Reply With Quote #9

Deleted. Also optimized a few things.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
kropto
Member
Join Date: Aug 2010
Location: Lithuanian
Old 02-17-2011 , 08:27   Re: Jailbreak Last Request
Reply With Quote #10

adding glow remove, round end or round start.
kropto is offline
Send a message via Skype™ to kropto
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:17.


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