Raised This Month: $94 Target: $400
 23% 

Surf Speed Runs


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical        Approver:   Hawk552 (427)
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-05-2007 , 18:07   Surf Speed Runs
Reply With Quote #1

Current Version - 1.4
Date: August 4th, 2008


Short video of me setting the timers up and doing a speed run.

Make sure to get the zip that contains the models and sounds.

Code snippet tells all:
PHP Code:
/*    =============================================
*    - NAME:
*      + Surf Speed Runs
*
*    - DESCRIPTION:
*      + This plugin lets you add a start and end timer to a map
*      + that acts as a start and finish. The start timer will start
*      + a timer when you touch it, and the end timer will calculate the
*      + time and save it to a database.
*      + 
*      + The first time you touch the end timer it will give you the amount
*      + of points the map is worth whether you are being timed or not.
*      + 
*      + If the fastest speed run player for the map is in the game they will
*      + get a crown on their head.
*      + 
*      + This plugin is meant to compete against each other to see who can be
*      + the fastest surfer of a map. Killing is not recommended with this plugin.
*      + 
*      + You will need a database to run this plugin. If you do not have a database
*      + you can get a free one at http://www.freemysql.net - They are slow, but free...
*      + 
*      + Let me know of any suggestions you have.
*
*
*    - CREDITS:
*      + Lt. Llamas TFC Skills Mod for giving me the idea.
*      + Everyone that helped around the AM forums with any problems I had.
*      + Anyone else that might have helped that I can't remember.
*      + ceribik from the AM forums for giving ideas and error logs.
*
*    ---------------
*    Admin Commands:
*    ---------------
*    - Type in console 'amx_speedmenu' to create the speed timers.
*
*    --------------
*    User Commands:
*    --------------
*    - Type '/help' to see some help.
*    - Type '/spec' to toggle spectator mode.
*    - Type '/respawn' to respawn yourself.
*    - Type '/cancel' to cancel the timer.
*    - Type '/difficulty' to show the maps difficulty.
*    - Type '/mapstats' to show the stats of the current map.
*    - Type '/surfstats' to show the stats of the players currently in the server.
*    - Type '/clipon' to turn noclip on.
*    - Type '/clipoff' to return to where you started the noclip.
*
*    -------------
*    Server cvars:
*    -------------
*    - sv_timezone "YOUR TIME ZONE"
*     + This defaults to EST, Eastern Time.
*    
*    - sv_cliptime <seconds>
*     + This defines how long you want players to be able to stay in noclip.
*    
*    - sv_autorespawn <0/1>
*     + Setting to 0 will NOT auto=respawn you.
*     + Setting to 1 will auto=respawn you.
*    
*    - sv_giveweapons <0/1>
*     + Setting to 0 will NOT give you a scout/knife if you don't have one on spawn.
*     + Setting to 1 will give you a scout/knife if you don't have one on spawn.
*    
*    - sv_toggledamage <0/1/2/3>
*     + Setting to 0 keeps damage default.
*     + Setting to 1 removes fall damage.
*     + Setting to 2 removes player attacking damage.
*     + Setting to 3 removes both fall and player attacking damage.
*    
*    - sv_djsolid <0/1>
*     + Setting to 0 will keep players not solid while not moving + ducking.
*     + Setting to 1 will make players solid when they are not moving + ducking.
*    
*    - sv_removet <0/1>
*     + Setting to 0 will keep Terrorists.
*     + Setting to 1 will remove Terrorists.
*    
*    - sv_togglebuy <0/1>
*     + Setting to 0 will turn buying OFF.
*     + Setting to 1 will turn buying ON.
*    
*    ----------
*    Changelog:
*    ----------
*    Version 1.0 (08-15-2007)
*    -- First version made and works.
*    
*    Version 1.1 (12-27-2007)
*    -- Added auto respawning.
*    -- Removed damage.
*    -- Removed Terrorists.
*    -- Made your points show on the scoreboard and for your money.
*    -- Added your best time and the speed run time to the timer hud.
*    -- Updated to only save your best 3 speed runs.
*    -- Updated to save every player that connects in the database (mostly for future updates).
*    -- Added the /spec command to toggle you in and out of spectate.
*    -- Added the /help command to display some help about the plugin.
*    -- Gives you a scout and/or a knife if the map doesn't give you one at spawn.
*    -- Notifies first time players to type /help for help.
*    -- Changed the points from 100-1000 to 10-100.
*    -- Made players not solid when they aren't moving.
*    -- Removed the buy zone and other icons from the screen.
*    -- Removed the flashlight and round time from the hud.
*    -- Fixed some bugs that would crash the server.
*    -- Changed the display a bit in the /surfstats and /mapstats.
*    
*    Version 1.2 (12-30-2007)
*    -- Added a hud message to display users name when looking at them (also displays speed run time).
*    -- Added /clipon and /clipoff - Toggles noclip on and off but only allows to view where to go (can't cheat).
*    -- Changed how the auto respawn on death works.
*    -- Added 5 new cvars. sv_autorespawn, sv_giveweapons, sv_toggledamage, sv_removet, sv_ducksolid.
*    
*    Version 1.3 (01-08-2008)
*    -- Fixed a bug created in version 1.1 that caused the spectators to "respawn".
*    -- Blocked the message that creates a corpse when you die.
*    -- Added the cvar sv_togglebuy.
*    -- Changed cvar sv_ducksolid to sv_djsolid which now will make a user solid if they are jumping.
*    -- Changed the first time players help to green text.
*    -- Changed it so it only displays the first time player message on first spawn.
*    -- Fixed so the first map after server bootup will have SQL loaded.
*    -- Fixed players not spawning with autorespawn on and both teams enabled.
*    -- Dead players can respawn themselves now with the /respawn command.
*    -- Added a time delay between each manual respawn.
*    -- Removed certain things to prevent crash, will add back later without it crashing.
*    
*    Version 1.4 (08-04-2008)
*    -- Fixed a server crash exploit (thanks EvolDay).
*/ 
Attached Files
File Type: zip neededfiles.zip (130.3 KB, 5412 views)
File Type: zip map-coords.zip (16.6 KB, 3873 views)
File Type: sma Get Plugin or Get Source (surfspeedruns.sma - 6162 views - 83.6 KB)
File Type: amxx surfspeedruns.amxx (68.4 KB, 2237 views)

Last edited by hlstriker; 08-04-2008 at 19:54.
hlstriker is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 11-05-2007 , 22:13   Re: Surf Speed Runs
Reply With Quote #2

That is a freakin' sweet demo. +Karma. Good stuff dude. I love this idea/how its set up/etc.
SubStream is offline
Old 11-05-2007, 23:47
M249-M4A1
This message has been deleted by M249-M4A1. Reason: Wrong thread
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-06-2007 , 00:35   Re: Surf Speed Runs
Reply With Quote #3

Nope, I'm yet to have that question answered too ><

Also, this is not the surfboard plugin lol

Last edited by hlstriker; 11-06-2007 at 00:37.
hlstriker is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-06-2007 , 01:19   Re: Surf Speed Runs
Reply With Quote #4

Quote:
Originally Posted by hlstriker View Post
Nope, I'm yet to have that question answered too ><

Also, this is not the surfboard plugin lol
Haha, I thought it was. Two topics look so similar
__________________
M249-M4A1 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-06-2007 , 01:32   Re: Surf Speed Runs
Reply With Quote #5

Woot! Nice job, man! I like this stuff
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
samehsameh_89
New Member
Join Date: Nov 2007
Old 11-07-2007 , 15:27   Re: Surf Speed Runs
Reply With Quote #6

can u tell me how to set up a database ive got 1 of the free ones but what do i do now
samehsameh_89 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-07-2007 , 15:33   Re: Surf Speed Runs
Reply With Quote #7

#Off Topic: To get the answer regarding you'r question please go : Here , and read the rules before post a reply again. Thank you. Have a nice day now.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
svaosingle
New Member
Join Date: Dec 2006
Old 11-28-2007 , 15:05   Re: Surf Speed Runs
Reply With Quote #8

Your plug-in isn't working for some reason. I've installed it in that way:
-I've compiled .sma file and added it to plug-in folder, added proper string to a plugins.ini file
-I've copied the rest files to the same folder. When I started to connect ro server .mdl files downloaded automaticly. But plug-in is still not working for some reason.
I open amxmodmenu - pause plugin, but I can do nothing with this plug-in Surf Speed Runs. It says it'r Locked.
What's the problem?
-
Sorry, i know english so-so ... =)
svaosingle is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 12-28-2007 , 00:54   Re: Surf Speed Runs
Reply With Quote #9

Updated to version 1.1 - See the change log in the description in first post.

Added some map coords in a zip for some maps I use on my server.

Also added the .amxx file because it won't compile with the web compiler due to the hamsandwich module.

Last edited by hlstriker; 12-28-2007 at 01:04.
hlstriker is offline
Killer12201
Senior Member
Join Date: Dec 2007
Old 12-30-2007 , 04:08   Re: Surf Speed Runs
Reply With Quote #10

I like it besides the database part I don't know how to do that.
Killer12201 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 20:09.


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