UltimateSurf
by
tonykaram1993
Description
Top
This is a plugin that aims into adding a more controllable and suitable environment for surfers. It is supposed to have the most important and useful plugins grouped into one. For a more general idea of what this plugin does, check out the
Plugins Included below.
NOTE: I am aware that there is another plugin out there that does this. But I do
think that the one I made has more features and better coded.
NOTE2: This plugin is still in beta. You have been warned.
Plugins Included
Top
Code:
PLUGIN_NAME PLUGIN_AUTHOR
Respawn with delay tonykaram1993
Spawn protection with timer tonykaram1993
Weapons respawn with delay ConnorMcLeod
Remove dropped weapons ConnorMcLeod
Unlimited bp ammo New-Era
Semiclip coderiz
Strip on player spawn tonykaram1993
Buy zone damage blocker ConnorMcLeod
I aim good XxAvalanchexX
Player trail jim_yang
Speedometer AcidoX
Commands:
Top
Client Commands:
NOTE: all chat commands are applicable through 'say' and 'say_team'
Code:
COMMAND COMMAND_DESCRIPTION
/respawn - Revives dead players that were not revived automatically
/speed - Enables or disables speed and velocity display for each player
/version - Prints the name and version of the plugin
Admin Commands:
Format:
Code:
[ ] : optional
< > : obligatory
| : or
# : number
@T : Terrorists
@CT : Counter-Terrorists
@ALL : All
@SPEC : Spectators
COMMAND COMMAND_DESCRIPTION
COMMAND_EXAMPLES
amx_reloadcvars - Reload all cvars
amx_reloadcvars - Reloads all cvars and changes take place immediately
CVARs
Top
NOTE: after changing the cvar, you will need to execute 'amx_reloadcvars' in the console for changes to take place, or wait for a new round.
Code:
// UltimateSurf Configuration File
// ---------------------------------
// Author: "tonykaram1993"
// Version: "0.0.1b"
// Plugin: "UltimateSurf"
// Note: 0:Disable | 1:Enable
// Enable or disable automatic respawning
// Values: 0 | 1
// Default: 1
us_respawn "1"
// Set the delay to automatic respawn
// Note: us_respawn must be 1 for this to take effect
// Default: 3.0
us_respawn_delay "3.0"
// Enable or disable spawn protection
// Values: 0 | 1
// Default: 1
us_sp "1"
// Set the time for spawn protection
// Note: us_sp must be 1 for this to take effect
// Default: 3.0
us_sp_time "3.0"
// Enable or disable spawn protection glow
// Values: 0 | 1
// Default: 1
us_sp_glow "1"
// Enable or disable weapons respawning
// Values: 0 | 1
// Default: 1
us_respawnweapons "1"
// Set the delay to automatic weapon respawn
// Note: us_respawnweapons must be 1 for this to take effect
// Default: 3.0
us_respawnweapons_delay "3.0"
// Enable or disable to delete weapons after they are dropped
// Values: 0 | 1
// Default: 1
us_deleteweapons "1"
// Set the delay to delete dropped weapons
// Note: us_deleteweapons must be 1 for this to take effect
// Default: 3.0
us_deleteweapons_delay "0.0"
// Enable or disable ammo refill
// Values: 0 | 1
// Default: 1
us_ammorefill "1"
// Enable or disable semiclip (teammate go right through each others)
// Values: 0 | 1
// Default: 1
us_semiclip "1"
// Enable or disable semiclip transparancy
// Values: 0 | 1
// Default: 1
us_semiclip_transparency "1"
// Enable or disable accurate bullets while in the air
// Values: 0 | 1
// Default: 1
us_aim "1"
// Enable or disable colored trail behind player while flying
// Values: 0 | 1
// Default: 1
us_trail "1"
// Set the prefix for ingame messages
// Default: [US]
us_prefix "[US]"
// Set the time of the advertisement message (or disable it)
// Default: 10
// Note: type 0 to disable it
us_advertisement "10"
// Other essentiel cvars
sv_airaccelerate "100" // This is a must in all surf servers
mp_freezetime "0" // This is recommended but not obligated
mp_buytime "99" // This is recommended but not obligated
Customizable Defines
Top
NOTE: these are the defines that you can customize to your liking. After editing them, you will need to recompile the plugin for it to take effect (you need to edit these in the source file a.k.a. '.sma')
Code:
/*
Below is the section where normal people can safely edit
its values.
Please if you don't know how to code, refrain from editing
anything outside the safety zone.
Experienced coders are free to edit what they want, but I
will not reply to any private messages nor emails about hel-
ping you with it.
SAFETY ZONE STARTS HERE
*/
/*
Set this to your maximum number of players your server can
hold.
*/
#define MAX_PLAYERS 32
/*
This is where you can specify what is the delay between two thinks
of the player trail task. Also you can specify the life of the beam
in seconds.
*/
#define TRAIL_FREQUENCY Float:0.1
#define BEAM_LIFE 1
/*
This is where you stop. Editing anything below this point
might lead to some serious errors, and you will not get any
support if you do.
SAFETY ZONE ENDS HERE
*/
Installation Instructions
Top
Note: it is recommended to use the latest version of this plugin, using an older version is not supported.
- First you need to download a copy of the following files: 'UltimateSurf.amxx', 'UltimateSurf.cfg' & 'UltimateSurf.txt'
- To get those files simply click on them. As for the 'UltimateSurf.amxx', just click on 'Get Plugin' below.
- Navigate to and open 'addons/amxmodx/configs/plugins.ini' on your server.
- Write at the very bottom of the file: 'UltimateSurf.amxx' (whitout quotes).
- Place the 'UltimateSurf.cfg' file inside the 'addons/amxmodx/configs' folder.
- Place the 'UltimateSurf.txt' file inside the 'addons/amxmodx/data/lang' folder.
- Restart or change the map on your server in order to load the plugin.
Known Bugs:
Top
None found yet
Notes
Top
Credits
Top
None at the moment
To-Do:
Top
- Multilingual (DONE)
Multilingual is done, ready and working. It did not take me a lot of time since there are just a handful of messages to convert, so I figured better do it now before a lot of messages will need to be convrerted.
Download
Top
Code also available on Github: