Raised This Month: $12 Target: $400
 3% 

Surf Manager by Dosyk v 1.1 [Update: 31/08/2014]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
Dosyk
Junior Member
Join Date: Oct 2010
Old 08-24-2014 , 17:48   Surf Manager by Dosyk v 1.1 [Update: 31/08/2014]
Reply With Quote #1


Surf Manager
by Dosyk

Changelog

1.1
  • Shop item "Speed" fixed
  • show_dhudmessage changed to ShowSyncHudMsg
  • Minor performance fixes

.: Description :.

Surf Manager for Counter-Strike 1.6.
What it does:
  • Allows Free For All mode
  • Creates 5 different teams [For Deathmatch] (can be disabled)
  • 5 Different player models (one for each team)
  • Includes Informer (Fully manageable)
  • Unique Surf Points system
  • Surf Shop (using surf points)
  • Applicable for Normal + Arcade maps (includes a list of Arcade maps in configs folder)
  • English+Russian language library
  • Spawn protection for 3 seconds
  • Deathmatch support (Respawn)
  • Fixes water wave height bug on all maps
  • Provides Surfing info for beginners (say /rules)
  • Disables player damage on Arcade maps
  • Gives scout on Arcade maps(no bullets)
  • Enables itself on Surf maps only

.: Further Details :.

Teams



Teams are Red, Blue, Green, Black and Loner.

You have to pick one at start:


but you can change it 5 minutes later.

Players within teams cannot damage each other. Teams scoreboard looks like this:


Informer



It shows:
  • Your speed
  • Your current team
  • Your health
  • Your score
  • Number of players online

Surf Unique Points System

You earn points by killing enemies.
1 point for kill
2 points for headshot

You can use your points to buy items in the Shop.
Admins can give points to anybody.

Surf Shop



Items:
  • JetPack
  • Health (the amount is set by you)
  • Glock
  • Minigun
  • Frost Nade
  • Speed
  • Gravity

The price of items is set by you through cvars.

.: CVARS :.

enable_teams <1|0> (Default:1) - Enables teams.
enable_deathmatch <1|0> (Default:1) - Enables Deathmatch.
enable_ffa <1|0> (Default:1) - Enables Free For All.
shop_enable <1|0> (Default:1) - Enables Shop.
jet_cost <> (Default:20) - Sets the cost of JetPack
hp_cost <> (Default:5) - Sets the cost of Health item.
hp_amount <> (Default:255) - Sets the amount of Health to buy.
glock_cost <> (Default:15) - Sets the cost of Glock.
minigun_cost <> (Default:25) - Sets the cost of Minigun.
frost_cost <> (Default:10) - Sets the cost of Forst Nade.
speed_cost <> (Default:7) - Sets the cost of Speed.
gravity_cost <> (Default:7) - Sets the cost of Gravity.
infrormer_enable <1|0> (Default:1) - Enables Informer.
show_hp <1|0> (Default:1) - Shows player's health in the Informer.
show_score <1|0> (Default:1) - Shows player's score in the Informer.
show_team <1|0> (Default:1) - Shows player's current team in the Informer.
show_players <1|0> (Default:1) - Shows the amount of online players in the Informer.

For FrostNades cvars please visit: https://forums.alliedmods.net/showthread.php?t=41126

.: COMMANDS :.

say /team - allows a player to change the team.
say /scout - gives scout.
say /respawn - spawns a player (if needed) [DM only].
say /rules - shows Surfing Rules.
say /shop - opens Surf Shop.
say /informer - toggles Informer.

give_score [name | authid] <amount> - Gives a player score points [For Admins with flag L].

.: INSTALLATION :.

Extract cstrike into your root server folder.
The list of Arcade maps is in the addons/amxmodx/configs/arcades.ini
Add all the arcade maps you have there.

.: SCPECIAL THANKS TO :.

XxAvalanchexX
Cheap_Suit
ConnorMcLeod
Small_sumo


.: UPDATES :.

Watch out for updates! They are coming soon!
Attached Files
File Type: inc nvault.inc (1.6 KB, 296 views)
File Type: sma Get Plugin or Get Source (Surf_Manager.sma - 1141 views - 74.0 KB)
File Type: zip Surf_Manager.zip (4.69 MB, 726 views)

Last edited by Dosyk; 08-31-2014 at 01:55.
Dosyk is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-24-2014 , 18:55   Re: Surf Manager by Dosyk v 1.0 [25/08/2014]
Reply With Quote #2

Remove the AMXX file from the archive
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Dosyk
Junior Member
Join Date: Oct 2010
Old 08-24-2014 , 19:00   Re: Surf Manager by Dosyk v 1.0 [25/08/2014]
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Remove the AMXX file from the archive
done.
Dosyk is offline
ACM1PT
Member
Join Date: Feb 2014
Location: Argentina
Old 08-24-2014 , 21:54   Re: Surf Manager by Dosyk v 1.0 [25/08/2014]
Reply With Quote #4

Spanish translation:
Attached Files
File Type: zip surf_manager.zip (2.5 KB, 156 views)
ACM1PT is offline
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 08-25-2014 , 01:31   Re: Surf Manager by Dosyk v 1.0 [25/08/2014]
Reply With Quote #5

looks nice
gonna test it

EDIT: after testing the mod here is my suggestions :p
1- add cvar to control the default start weapons ( usp -> ct , glock -> t )
2- add bunnyhop , can be turned off-on by cvar
3- add top shop points motd
4- at the start of the game add vote for deathmatch mode
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه

Last edited by 5aloOod; 08-25-2014 at 01:56.
5aloOod is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-25-2014 , 07:02   Re: Surf Manager by Dosyk v 1.0 [25/08/2014]
Reply With Quote #6

1. Don't use fm_util.
2. Check if amxx version num is 1.8.3, so you won't get symbol already defined on this version.
Code:
#define Ham_Player_ResetMaxSpeed Ham_Item_PreFrame
3. Optional, instead of all bool arrays you can create bitsums.
4. Pause the plugin when you are not running a surf map.
5.
Code:
t_red = 0 t_blue = 0 t_green = 0 t_black = 0 red_score = 0 blue_score = 0 green_score = 0 black_score = 0
For me this seems to be useless, everything is initialized with 0( if another value is not specified ).
6. Dont use FM_Think, it's called too many times, use register_think from engine.
7. ResetHud is a poor way for detecting player spawn, use Ham_Spawn instead.
8. Why you are using CurrentWeapon for setting speed, when you already hooked Ham_ItemPreFrame ?
9. All your plugin messages have to be in english.
10. Indent your code.
11.
Code:
new szText[ 555 char ];     format( szText, charsmax( szText ), "%L", id, "SHOP", score[id] );     new menu = menu_create(szText, "shop_handler")     if(is_user_alive(id) && g_HasJetpack[id] == 0 && score[id]>19){              formatex( szText, charsmax( szText ), "\w%L", id, "MENU_JET", get_pcvar_num(price_jet))             menu_additem( menu, szText, "1", 0 )             }     else{         formatex( szText, charsmax( szText ), "\d%L", id, "MENU_JET", get_pcvar_num(price_jet))             menu_additem( menu, szText, "1", 0 )             }     if(is_user_alive(id) && shop_hp[id] == 0 && score[id]>4){         formatex( szText, charsmax( szText ), "\w%L", id, "MENU_HP", get_pcvar_num(hp_amount), get_pcvar_num(price_hp))             menu_additem( menu, szText, "2", 0 )             }     else{         formatex( szText, charsmax( szText ), "\d%L", id, "MENU_HP", get_pcvar_num(hp_amount), get_pcvar_num(price_hp))             menu_additem( menu, szText, "2", 0 )             }     if(is_user_alive(id) && shop_glock[id]==0 && score[id]>14 && arcade==0){         formatex( szText, charsmax( szText ), "\w%L", id, "MENU_GLOCK", get_pcvar_num(price_glock))             menu_additem( menu, szText, "3", 0 )             }     else{         formatex( szText, charsmax( szText ), "\d%L", id, "MENU_GLOCK", get_pcvar_num(price_glock))             menu_additem( menu, szText, "3", 0 )             }     if(is_user_alive(id) && shop_mgun[id]==0 && score[id]>24 && arcade==0){         formatex( szText, charsmax( szText ), "\w%L", id, "MENU_MINIGUN", get_pcvar_num(price_minigun))             menu_additem( menu, szText, "4", 0 )             }     else{         formatex( szText, charsmax( szText ), "\d%L", id, "MENU_MINIGUN", get_pcvar_num(price_minigun))             menu_additem( menu, szText, "4", 0 )             }     if(is_user_alive(id) && hasFrostNade[id]==0 && score[id]>9 && arcade==0){         formatex( szText, charsmax( szText ), "\w%L", id, "MENU_FROST", get_pcvar_num(price_frost))             menu_additem( menu, szText, "5", 0 )             }     else{         formatex( szText, charsmax( szText ), "\d%L", id, "MENU_FROST", get_pcvar_num(price_frost))             menu_additem( menu, szText, "5", 0 )             }     if(is_user_alive(id) && speed[id]==0 && score[id]>6){         formatex( szText, charsmax( szText ), "\w%L", id, "MENU_SPEED", get_pcvar_num(price_speed))             menu_additem( menu, szText, "6", 0 )             }     else{         formatex( szText, charsmax( szText ), "\d%L", id, "MENU_SPEED", get_pcvar_num(price_speed))             menu_additem( menu, szText, "6", 0 )             }     if(is_user_alive(id) && gravity[id]==0 && score[id]>6){         formatex( szText, charsmax( szText ), "\w%L", id, "MENU_GRAVITY", get_pcvar_num(price_gravity))             menu_additem( menu, szText, "7", 0 )             }     else{         formatex( szText, charsmax( szText ), "\d%L", id, "MENU_GRAVITY", get_pcvar_num(price_gravity))             menu_additem( menu, szText, "7", 0 )             }

I'm sure you can find a better way.

12. Why you use both Ham_Killed an DeatMsg ? If you need to detect headshot in Ham_Killed you would need to hook FM_TraceLine and see what the trace hit.

I will stop here, since I can't read more of your code. It seems that all of this is copy/paste, without even uderstanding what you are doing. I doubt that this will get approver.
__________________
HamletEagle is offline
Dosyk
Junior Member
Join Date: Oct 2010
Old 08-25-2014 , 07:09   Re: Surf Manager by Dosyk v 1.0 [25/08/2014]
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
I will stop here, since I can't read more of your code. It seems that all of this is copy/paste, without even uderstanding what you are doing. I doubt that this will get approver.
It's not "all copy paste". I used some parts of other scripters codes whom I all have credited.

I will work on improving it and optimizing it.

Last edited by Dosyk; 08-25-2014 at 11:34.
Dosyk is offline
Smokey_
Junior Member
Join Date: Aug 2014
Old 09-04-2014 , 07:40   Re: Surf Manager by Dosyk v 1.1 [Update: 31/08/2014]
Reply With Quote #8

Can you give us the Arcade maps ?
__________________

Smokey_ is offline
Dosyk
Junior Member
Join Date: Oct 2010
Old 09-04-2014 , 08:07   Re: Surf Manager by Dosyk v 1.1 [Update: 31/08/2014]
Reply With Quote #9

Quote:
Originally Posted by Smokey_ View Post
Can you give us the Arcade maps ?
If you mean names, most of them are already inside the arcades.ini

Last edited by Dosyk; 09-04-2014 at 08:08.
Dosyk is offline
Smokey_
Junior Member
Join Date: Aug 2014
Old 09-04-2014 , 11:38   Re: Surf Manager by Dosyk v 1.1 [Update: 31/08/2014]
Reply With Quote #10

No I mean THE BSP FILES
__________________


Last edited by Smokey_; 09-04-2014 at 11:38.
Smokey_ 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 11:37.


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