AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   HNS Nade Selector 1.31 (https://forums.alliedmods.net/showthread.php?t=120645)

Legend 03-06-2010 21:16

HNS Nade Selector 1.31
 
1 Attachment(s)
HNS Nade Selector
Version 1.31
By Legend



- Description -

This plugin is mainly for Hide'N'Seek but it is also possible to use it in normal mod (With FrostNade!) This was requested by a friend of mine. This plugin gives the opportunity to choose a Frostnade, 2 Flashbangs and 150 hp or 1 he grenade with 175 hp. You have 10 seconds to choose! Ill add more features if someone request it. Thanks to Backstabnoob and wrecked.
NOTE: If you want to use this plugin please follow the "How to Install" guide very carefully!

- Features -
  • Type /grenades to show the menu!
  • You have 10 seconds to choose the item!
  • The menu will show auto for terrorist
  • Only terrorist can see use the menu!
  • FrostNade - Gives one frostnade
  • 2 Flashbangs and 150 hp - Gives 2 flashbangs and 150 hp
  • He grenade - Gives one he grenade and 175 hp
  • Its only possible to choose one item each round
- How to install -
1. Download the plugin (nadeselector.amxx)
2. Put nadeselector.amxx in addons/amxmodx/plugins
3. Add "nadeselector.amxx" (without "") in plugins.ini lowest. File exists in: addons/amxmodx/configs
4. Now open hidenseek.cfg in addons/amxmodx/configs
5. Find these: hns_hiders_smokegren 1, hns_hiders_flashbangs 2 and hns_hiders_grenades 1
6. Change it to: hns_hiders_smokegren 0, hns_hiders_flashbangs 0 and
hns_hiders_grenades 0
7. Your done!
NOTE: If you found a bug please contact me, if u got any ideas contact me also :P

- Cvars -
nades_frostnade_on <1 = on| 0 = off> (Default: 1)
nades_flashbang_on <1 = on| 0 = off> (Default: 1)
nades_he_on <1 = on| 0 = off> (Default: 1)
nades_autoshow <1 = on| 0 = off> (Default: 1)

NOTE: More cvars will be added soon!



- Screenshots -
[IMG]http://img408.**************/img408/2774/nade3.png[/IMG]
[IMG]http://img693.**************/img693/9349/nade2f.png[/IMG]

- To do -

The ability to change the cvars on health.
Maybe a admin menu with some special abilitys :P

- Changelog -

<1.0> First release
<1.1> Removed Gravity and speed added flashbangs and he grenades.
<1.2> Added cvars that gives the admin ability to turn flashbangs, he grenades or/and frostnade off. All warnings are fixed!

---------------
Version 1.3
---------------

- Menu will now show automatic for terrorists (Possible to remove with cvar)
- Added a little more layout to the menu.
- Added so only people there are alive can use the menu.

---------------
Version 1.31
---------------
- Added time to choose item. You got 10 seconds to choose what item you want!

NOTE: I uploaded the .amxx cuz theres a problem with the compiler!

fR4gn0tiX! 03-07-2010 05:28

Re: HNS Item Selector 1.0
 
already made http://forums.alliedmods.net/showthread.php?t=75468

Legend 03-07-2010 05:37

Re: HNS Item Selector 1.0
 
Quote:

Originally Posted by fR4gn0tiX! (Post 1110496)

That shop dont have the same concept at this plugin

fR4gn0tiX! 03-07-2010 05:42

Re: HNS Item Selector 1.0
 
Ok.

Suggestion: Add invisibility and item_longjump

lazarev 03-07-2010 05:49

Re: HNS Item Selector 1.0
 
stop making plugins like that.

Legend 03-07-2010 05:58

Re: HNS Item Selector 1.0
 
Im changing the hole plugin now I miss understood my friend :S so ill soon update this

SpILL 03-07-2010 06:39

Re: HNS Item Selector 1.0
 
Quote:

Originally Posted by Legend (Post 1110210)
HNS Item Selector
Version 1.0
By Legend



- Description -

This plugin is made for Hide'N'Seek but it is also possible to use it in normal mod (With FrostNade!) This was requested by a friend of mine. This plugin gives the opportunity to choose a Frostnade, speed or gravity. Ill add more if someone request it :) ill also add cvars if people request it. This is my second plugin. Thanks to Backstabnoob and wrecked.
NOTE: If you want to use this plugin please follow the "How to Install" guide very carefully!

- Features -
  • Type /items to show the menu!
  • FrostNade - Gives one frostnade
  • Speed - Gives 300 speed the hole round
  • Gravity - Gives 700 gravity the hole round
  • Its only possible to choose one item every round
- How to install -
1. Download the plugin (Itemselector.amxx)
2. Put Itemselector.amxx in addons/amxmodx/plugins
3. Add "Itemselector.amxx" (without "") in plugins.ini lowest. File exists in: addons/amxmodx/configs
4. Now open hidenseek.cfg in addons/amxmodx/configs
5. Find this line: hns_hiders_smokegren 1
6. Change it to: hns_hiders_smokegren 0
7. Your done!
NOTE: If you found a bug please contact me, if u got any ideas contact me also :P

- Screenshots -
[IMG]http://img696.**************/img696/1666/screen2nx.png[/IMG]
[IMG]http://img38.**************/img38/2839/screen1so.png[/IMG]

- Changelog -

<1.0> First release







Lol, AMXX Scripting Legend (Exolent)'s posting style. :D
/Copier

Arkshine 03-07-2010 06:48

Re: HNS Item Selector 1.0
 
Fix your indentation and don't mix spaces and tabs.

Legend 03-07-2010 06:57

Re: HNS Item Selector 1.0
 
Quote:

Originally Posted by SpILL (Post 1110552)
Lol, AMXX Scripting Legend (Exolent)'s posting style. :D
/Copier

Maybe I copy that :P
But I dont copy his script, that is mush worse :)

Legend 03-07-2010 07:27

Re: HNS Nade Selector 1.1
 
I released a new version, changed name to Nade selector

Arkshine 03-07-2010 07:28

Re: HNS Item Selector 1.0
 
Quote:

Originally Posted by Arkshine (Post 1110560)
Fix your indentation and don't mix spaces and tabs.


Legend 03-07-2010 07:36

Re: HNS Item Selector 1.0
 
Is it really that important?

Arkshine 03-07-2010 08:05

Re: HNS Nade Selector 1.1
 
It's important for the readability; it's a pain to read such code. I don't see how it's hard to use either tabs either space and not both at the same time.

Sensai 03-07-2010 08:56

Re: HNS Nade Selector 1.1
 
Nice i like it !
Make menu automatic please.
Than +karma :)

SpILL 03-07-2010 09:50

Re: HNS Nade Selector 1.1
 
Quote:

Originally Posted by Sensai (Post 1110677)
Nice i like it !
Make menu automatic please.
Than +karma :)

In which POW (Part of world) you are living nowadays?
Karma gone. :D

lazarev 03-07-2010 10:35

Re: HNS Nade Selector 1.1
 
1. remove .amxx
2. fix indentation
3. this kind of plugins has low chance to get approved ^^

Legend 03-07-2010 11:38

Re: HNS Nade Selector 1.1
 
Quote:

Originally Posted by lazarev (Post 1110766)
1. remove .amxx
2. fix indentation
3. this kind of plugins has low chance to get approved ^^

I added the .amxx cuz there was a problem with the compiler

Legend 03-08-2010 09:31

Re: HNS Nade Selector 1.1
 
Quote:

Originally Posted by Arkshine (Post 1110625)
It's important for the readability; it's a pain to read such code. I don't see how it's hard to use either tabs either space and not both at the same time.

New version added, glad now? :)

lazarev 03-08-2010 12:14

Re: HNS Nade Selector 1.2
 
fixed your indent..
PHP Code:

#include <amxmodx>
#include <colorchat>
#include <fun>

#define PLUGIN "NadeSelector"
#define VERSION "1.1"
#define AUTHOR "Fixed"

new bool:g_AlreadyUsed[33]
new 
Frostnade_on
new Flashbang_on
new he_on
new menu

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /grenades""cmdSelectItem")
    
register_clcmd("say_team /grenades""cmdSelectItem")
    
register_event("HLTV""EventNewRound""a""1=0""2=0")
    
register_logevent("round_start"2"1=Round_Start");
    
    
Frostnade_on register_cvar("nades_frostnade_on""1");
    
Flashbang_on register_cvar("nades_flashbang_on""1");
    
he_on         register_cvar("nades_he_on",         "1");
}

public 
EventNewRound()
{
    new 
Players[32
    new 
playerCountiplayer 
    get_players
(PlayersplayerCount
    for (
i=0i<playerCounti++) 
    {    
        
player Players[i
        
g_AlreadyUsed[player] = false
    
}
}

public 
round_start(id)
{
    
ColorChat(0RED"[NadeSelector] ^x04Type /grenades to choose your grenades!");
}    


public 
cmdSelectItem(id)
{
    
menu menu_create("\rChoose Item:""playerMenu_ShowSelectionHandler");
    
    
menu_additem(menu"Frostnade""1"0);
    
menu_additem(menu"2 Flashbangs +50 Health""2"0);
    
menu_additem(menu"HE grenade +75 Health""3"0);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
    if( 
get_user_team(id) == )
    {
        
        if(!
g_AlreadyUsed[id])
        {
            
menu_display(idmenu0);
        }
        else
        {    
            
ColorChat(idRED"[NadeSelector] ^x04You already choosed a grenade this round.")
        }
    }
    else
    {    
        
ColorChat(idRED"[NadeSelector] ^x04You need to be a hider, to choose grenades!")
    }
    return 
PLUGIN_CONTINUE;
}

public 
client_putinserver(id
{
    
g_AlreadyUsed[id] = false
}

public 
playerMenu_ShowSelectionHandler(idmenuitem)
{
    new 
accesscallbackname[64], data[6]

    
menu_item_getinfomenuitemaccessdata5name63callback )

    new 
choice str_to_numdata )

    switch( 
choice )
    {
        case 
1// FrostNade
        
{
            if( 
get_pcvar_num(Frostnade_on) == 1) {
                
ColorChat(idRED"[NadeSelector] ^x04You received a FrostNade!");
                
give_itemid"weapon_smokegrenade" 
                
g_AlreadyUsed[id] = true
            
}
            else
            
ColorChat(idRED"[NadeSelector] ^x04This option has been disabled!");
        }
        
        case 
2// FLASH
        
{
            if( 
get_pcvar_num(Flashbang_on) == 1) {
                
give_itemid"weapon_flashbang" )
                
give_itemid"weapon_flashbang" )
                
set_user_health(id150)
                
g_AlreadyUsed[id] = true
                ColorChat
(idRED"[NadeSelector] ^x04You received 2 flashbangs and 150 health");
            }
            else
                
ColorChat(idRED"[NadeSelector] ^x04This option has been disabled!");
        }
        case 
3// HE
        
{
            if( 
get_pcvar_num(he_on) == 1) {
                
give_itemid"weapon_hegrenade" )
                
set_user_healthid175)
                
g_AlreadyUsed[id] = true
                ColorChat
(idRED"[NadeSelector] ^x04You received 1 HE grenade and 175 health!");
            }
            else
                
ColorChat(idRED"[NadeSelector] ^x04This option has been disabled!");
        }
    }



Arkshine 03-08-2010 20:21

Re: HNS Nade Selector 1.2
 
You should not do that at his place, he should be able to do it.

wrecked_ 03-08-2010 20:28

Re: HNS Nade Selector 1.2
 
Check if the user is alive before giving them items.

Legend 03-09-2010 09:14

Re: HNS Nade Selector 1.2
 
Quote:

Originally Posted by wrecked_ (Post 1112288)
Check if the user is alive before giving them items.

Gotta do that now :)

Legend 03-09-2010 09:50

Re: HNS Nade Selector 1.3
 
I fixed it and added some extra things :)

Sensai 03-09-2010 10:23

Re: HNS Nade Selector 1.3
 
Awesome!

I realy going to use it for my server :D

Legend 03-09-2010 12:24

Re: HNS Nade Selector 1.31
 
I added a little new version read it got a nice new feature

crazyeffect 03-09-2010 13:03

Re: HNS Nade Selector 1.31
 
Quote:

NOTE: I uploaded the .amxx cuz theres a problem with the compiler!
A mod needs to do that :D

YamiKaitou 03-09-2010 13:07

Re: HNS Nade Selector 1.31
 
AMXX file removed, you are not authorized to upload it. The reason why the web compiler isn't working for this plugin is because you are using a non-standard include file. You will either need to include the functions into your plugin or people will need to compile it locally.

Sensai 03-10-2010 08:31

Re: HNS Nade Selector 1.31
 
please fix download, i cant download it.

papyrus_kn 03-10-2010 08:44

Re: HNS Nade Selector 1.31
 
Quote:

Originally Posted by Sensai (Post 1113545)
please fix download, i cant download it.

Download .sma and compile locally ;)

snowyledge 08-15-2010 16:38

Re: HNS Nade Selector 1.31
 
Nice plugin.

zzzzzjames 08-16-2010 01:43

Re: HNS Nade Selector 1.31
 
nice plugin i like mite try it out when i put my server back up :D

ConnorMcLeod 11-02-2010 06:56

Re: HNS Nade Selector 1.31
 
Sounds redundant and useless.

If this plugin is made to wirk with other plugins, make checks to be sure those plugins are loaded and set as the plugin needs.
Provide the colorchat include file.
Fix identation
Fix minor errors.

Unapproved.


All times are GMT -4. The time now is 01:48.

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