Raised This Month: $ Target: $400
 0% 

Jailbreak Last Request v1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
rubee
Senior Member
Join Date: Oct 2009
Location: party rocking
Old 02-06-2010 , 19:18   Jailbreak Last Request v1.6
Reply With Quote #1

Jailbreak Last Request
v1.6


Description :

This plugin allows the last terrorist access a menu to challenge a duel
the counter-terrorist that he want.

Commands :

  • If the last terrorist write /lr or !lr in chat
Cvars:
  • jb_grenade_bpammo // amount grenades on duel - default is 10
  • jb_scout_bpammo // amount bpammo scout on duel - default is 10
  • jb_effect // effects, 0 = glow , 1 = beacon, 2 = glow n' beacon - default is 2
Credits :
  • Emp` (New AMXX Menu System)
  • MouseSplash! (Some ideas and test)
  • cikjam (how to optimize my submenu all in one)
  • GangSteRZitoH! (test)
ML :
  • ES = Me
  • EN = Me ( if can someone fix it, is better)
Changelog :
  • v1.6: Optimized duel's menu ( all in one) and set glow with fun
  • v1.5: Added teleport for every single duel (currently only the map some1s_jailbreak)
  • v1.4: Added ML.
  • v1.3: Block the menu until the TE kills the CT that he challenge.
  • v1.2: Add shot for shot on deagle duel.
  • v1.1: Unable touch weapons during the duel.
  • v1.0: First release.

PD: I write bad in english, so please correct me if I wrong.

Attached Files
File Type: txt jailbreak_last_request.txt (1.3 KB, 4742 views)
File Type: sma Get Plugin or Get Source (jailbreak_last_request.sma - 8026 views - 14.6 KB)
__________________



Last edited by rubee; 03-22-2010 at 13:58. Reason: add beacon n' fixed deaths can write lr
rubee is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-06-2010 , 19:56   Re: Jailbreak Last Request
Reply With Quote #2

Quote:
jb_granadas_bpammo
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 02-06-2010 , 21:06   Re: Jailbreak Last Request
Reply With Quote #3

Well coded. About time the original user posts it.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
izzle
Senior Member
Join Date: Aug 2009
Old 02-06-2010 , 22:17   Re: Jailbreak Last Request
Reply With Quote #4

Quote:
Originally Posted by DruGzOG View Post
Well coded. About time the original user posts it.
__________________
izzle is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 02-07-2010 , 05:35   Re: Jailbreak Last Request
Reply With Quote #5

use set_user_rendering from <fun>, please ^^
lazarev is offline
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 02-07-2010 , 05:55   Re: Jailbreak Last Request
Reply With Quote #6

Its not well coded.
You make so many menus when you don't have too.

This is something what I did. Just use bool.

PHP Code:
    switch (Key)
    {
        case 
1:
        {
            
g_bKnifeFight[id] = true;
            
Player_Menu(id);
        }
        case 
2
        {
            
g_bShot4Shot[id] = true;
            
Player_Menu(id);
        }
    } 
Player_Menu is same as your menu(id) and menu2(id) so on.

Then like this or something:
PHP Code:
public Player_Handler(idmenuitem)
{
   if( 
item == MENU_EXIT )
   {
       
menu_destroy(menu);
       return 
PLUGIN_HANDLED;
   }

   new 
data[6], iName[64];
   new 
accesscallback;
   
menu_item_getinfo(menuitemaccessdata,5iName63callback);

   new 
tempid str_to_num(data);
 
   new 
szName[32], szName2[32];
   
get_user_name(idszName31);
   
get_user_name(tempidszName231);

   
strip_user_weapons(tempid);
   
strip_user_weapons(id);
   
set_user_health(tempid100);
   
set_user_health(id100);
   
   if( 
g_bKnifeFight[id] )
   {
       
//....
   
}

   else if( 
g_bShot4Shot[id] )
   {
       
//....
   
}
   
   
g_bLastRequest[id] = true;
    
   
menu_destroy(menu);
   return 
PLUGIN_HANDLED;

Player_Handler is like your submenu
__________________
R.I.P Aziz 'Zyzz' Sergeyevich Shavershian
cikjam is offline
ScriptMafia
BANNED
Join Date: Feb 2010
Old 02-07-2010 , 06:08   Re: Jailbreak Last Request
Reply With Quote #7

Nice work man!
ScriptMafia is offline
MouseSplash!
Veteran Member
Join Date: Dec 2009
Location: En Tu Mente!
Old 02-07-2010 , 08:53   Re: Jailbreak Last Request
Reply With Quote #8

change the killed for takedamage... its better !

cikjam thx for the date

Last edited by MouseSplash!; 02-07-2010 at 10:30.
MouseSplash! is offline
ScriptMafia
BANNED
Join Date: Feb 2010
Old 02-07-2010 , 17:35   Re: Jailbreak Last Request
Reply With Quote #9

Its not good... Its stopping terrorists and cts from picking up weapon from gunroom... Thats bad
ScriptMafia is offline
rubee
Senior Member
Join Date: Oct 2009
Location: party rocking
Old 02-07-2010 , 19:36   Re: Jailbreak Last Request
Reply With Quote #10

Quote:
Originally Posted by lazarev View Post
use set_user_rendering from <fun>, please ^^
okz, I was reading that set_user_rendering from fun is better than fm_set_user_rendering from fakemeta_util

in the update I'll change it, thnx

Quote:
Originally Posted by cikjam View Post
Its not well coded.
You make so many menus when you don't have too.

This is something what I did. Just use bool.

PHP Code:
    switch (Key)
    {
        case 
1:
        {
            
g_bKnifeFight[id] = true;
            
Player_Menu(id);
        }
        case 
2
        {
            
g_bShot4Shot[id] = true;
            
Player_Menu(id);
        }
    } 
Player_Menu is same as your menu(id) and menu2(id) so on.

Then like this or something:
PHP Code:
public Player_Handler(idmenuitem)
{
   if( 
item == MENU_EXIT )
   {
       
menu_destroy(menu);
       return 
PLUGIN_HANDLED;
   }

   new 
data[6], iName[64];
   new 
accesscallback;
   
menu_item_getinfo(menuitemaccessdata,5iName63callback);

   new 
tempid str_to_num(data);
 
   new 
szName[32], szName2[32];
   
get_user_name(idszName31);
   
get_user_name(tempidszName231);

   
strip_user_weapons(tempid);
   
strip_user_weapons(id);
   
set_user_health(tempid100);
   
set_user_health(id100);
   
   if( 
g_bKnifeFight[id] )
   {
       
//....
   
}

   else if( 
g_bShot4Shot[id] )
   {
       
//....
   
}
   
   
g_bLastRequest[id] = true;
    
   
menu_destroy(menu);
   return 
PLUGIN_HANDLED;

Player_Handler is like your submenu
thnx, I'm still learning...
is my first plugin that I post in this section

Quote:
Originally Posted by ScriptMafia View Post
Its not good... Its stopping terrorists and cts from picking up weapon from gunroom... Thats bad
only can't pick up weapons while they are in duel
__________________



Last edited by rubee; 02-07-2010 at 23:33.
rubee is offline
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 20:09.


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