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

BoostSlap [v1.5]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 12-21-2011 , 05:58   BoostSlap [v1.5]
Reply With Quote #1

BoostSlap.
This is just a quick plugin i made for my hns server.

What it does:
If you type "Boostme" On the console you get boosted.
"amx_boost <nick or @team>" Get's boosted.

Cvars
amx_boostallow < 2 | 1 | 0 > 2=All | 1=H-Flag | 0=Noone
amx_boostmode < 1 | 2 > 1=Forward | 2=random
amx_boost_pr_round < 1-∞ > How many times pr round a player can slap\boost himself
amx_boost_prefix < "What you want" default : "[BOOST] -" >

How to install. (dedicated)
Step 1 : Download the plugin and the text file.
Step 2 : Open your file explorer in this directory Steam\steamapps\STEAMNAME\dedicated server\cstrike\addons\amxmodx
Step 3 : Drag the .amxx file (the plugin it self) in to the plugins folder.
Step 4 : Drag the .txt file to data\lang.
Step 5 : Open the Configs folder and find plugins.ini and open it.
Step 6 : Type at the bottom of the file - "Boostslap.amxx (WITHOUT QUOTES).
Step 7 : Save the file and start / restart / change map of the server.

Credits
Xalus, For help with prefix.
micapat For French translation.
Tallulah For Spanish translation.
Mordekay For German translation.
adkam12 For Polish translation.
jonnzus For Finnish translation.
AleeKz For Romanian translation.


Hope you can use this plugin well.
The boost can be used to get to areas of a map you can't go to normally, so use with caution.
Changelog now in sma.

///Ex1ne^
Attached Files
File Type: txt Boostslap_ml.txt (1.2 KB, 173 views)
File Type: sma Get Plugin or Get Source (BoostSlap.sma - 682 views - 5.3 KB)
__________________

Last edited by Ex1ne; 01-22-2012 at 13:10.
Ex1ne is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-21-2011 , 06:17   Re: HnS-VIP Boost [v0.4]
Reply With Quote #2

Required :
- Use cvar pointers is a must in plugins (At the same time make it so you can allow it for everyone).
- Make VIP flag dynamic (set the required flag in register cmd line and use cmd_access in callback).
- Make a cvar to set the per life/spawn slap limit instead of hardcoding it to 1.
- Take the habit to check internal plugin variables before cvars and flags, then you will save some natives calls, in this plugin for example it's better to check BoostUsed variable before cvar amx_allowboost and before player flags.
It doesn't make any significant difference in a command callback but it's still a good habit to have

Suggestions :
Look at this plugin : http://forums.alliedmods.net/showthread.php?p=118916
You could use the same mode system (for slap direction)
Also, you could add an extra argument so player could set the damage
Boostme 15
This is just a suggestion.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-21-2011 at 06:22.
ConnorMcLeod is offline
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 12-21-2011 , 06:27  
Reply With Quote #3

What do you mean?

Quote:
Make a cvar to set the per life slap limit.
Why would someone want to damage themselves by slap??
My opinion on that : stupid.
__________________

Last edited by Ex1ne; 12-24-2011 at 13:47.
Ex1ne is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-21-2011 , 07:36   Re: HnS-VIP Boost [v0.4]
Reply With Quote #4

The EDIT button exist.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-21-2011 , 08:33   Re: HnS-VIP Boost [v0.4]
Reply With Quote #5

Quote:
Originally Posted by Ex1ne View Post
v0.3 Made it so you can only boost once per round.
Quote:
Originally Posted by Ex1ne View Post
What do you mean?
Mean that you shouldn't hardcode it to 1 time per round, it should be configurable.


P.S.: Yes, "edit" button does exist.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-21-2011 at 08:34.
ConnorMcLeod is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 12-21-2011 , 09:11   Re: HnS-VIP Boost [v0.4]
Reply With Quote #6

A button would be cooler.

Like press "nightvision".
__________________
Retired.
Xalus is offline
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 12-21-2011 , 10:56   Re: HnS-VIP Boost [v0.4]
Reply With Quote #7

Quote:
Originally Posted by Xalus View Post
A button would be cooler.

Like press "nightvision".
But adding a console command could make it easier to bind the command to where you really want it.


********Updated Plugin To v1.2********
__________________

Last edited by Ex1ne; 12-24-2011 at 13:46.
Ex1ne is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-22-2011 , 06:13   Re: HnS-VIP Boost [v1.0]
Reply With Quote #8

cmd_access has gone from 0.8 to 1.0, also, it should be the first check you make, despite what i had told you with variables and natives, plus now you check szBoost[id] against a native.
Also, if you use hungarian notation, please rename szBoost variable.

you still don't use cvar pointers

Last, i don't understand why you use colorchat here, and prefix should be changeable because this plugin can be used in other situations than HnS servers.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 12-24-2011 , 11:38   Re: HnS-VIP Boost [v1.0]
Reply With Quote #9

Quote:
Originally Posted by ConnorMcLeod View Post
now you check szBoost[id] against a native.
Also, if you use hungarian notation, please rename szBoost variable.
What do you mean?
__________________
Ex1ne is offline
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 01-02-2012 , 19:18   Re: BoostSlap [v1.2]
Reply With Quote #10

Nice!
__________________
Groven is offline
Reply


Thread Tools
Display Modes

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 17:41.


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