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

Surf Speed Runs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical        Approver:   Hawk552 (427)
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-05-2007 , 17: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, 5768 views)
File Type: zip map-coords.zip (16.6 KB, 4170 views)
File Type: sma Get Plugin or Get Source (surfspeedruns.sma - 6923 views - 83.6 KB)
File Type: amxx surfspeedruns.amxx (68.4 KB, 2625 views)

Last edited by hlstriker; 08-04-2008 at 18:54.
hlstriker is offline
 



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 19:56.


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