Raised This Month: $ Target: $400
 0% 

set user maxspeed [Solved]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 11-11-2007 , 14:43   set user maxspeed [Solved]
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

new speed_cvar

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /speed","maxspeed")
    
speed_cvar register_cvar("amx_maxspeed","500")
}


public 
maxspeed(id)
{
    
set_user_maxspeed(idfloat(get_pcvar_num(speed_cvar)))
    
server_cmd("sv_maxspeed 999999")

Any idea of it should be?
because it does not work at all.
__________________


I hate Spammers....

Last edited by vl@d; 11-11-2007 at 15:04.
vl@d is offline
Des12
Senior Member
Join Date: Jan 2005
Old 11-11-2007 , 14:51   Re: set user maxspeed
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

new speed_cvar

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /speed","maxspeed")
    
speed_cvar register_cvar("amx_maxspeed","500")
    
server_cmd("sv_maxspeed 500")
}


public 
maxspeed(id)
{
    
    
set_user_maxspeed(idfloat(get_pcvar_num(speed_cvar)))
    

Might not work but give it a shot
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 11-11-2007 , 15:04   Re: set user maxspeed
Reply With Quote #3

thx anyway..Alka did it again ;))
__________________


I hate Spammers....
vl@d is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 11-11-2007 , 19:32   Re: set user maxspeed [Solved]
Reply With Quote #4

Could you modify it so that it makes all players have default speed at all times? If someone is faster it makes his have the default.
__________________
hugz` is offline
Send a message via AIM to hugz`
Old 11-12-2007, 03:52
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 11-12-2007 , 05:09   Re: set user maxspeed [Solved]
Reply With Quote #5

Could anyone make a plugin that will make players press 9 every like 2 seconds?
__________________
hugz` is offline
Send a message via AIM to hugz`
Old 11-12-2007, 17:59
mordi
This message has been deleted by mordi.
mordi
Senior Member
Join Date: Jul 2007
Location: o rly?
Old 11-12-2007 , 18:01   Re: set user maxspeed [Solved]
Reply With Quote #6

Quote:
Originally Posted by hugz` View Post
Could anyone make a plugin that will make players press 9 every like 2 seconds?
instead of making the player press 9 every 2 seconds, you could execute something on the player every 9 seconds. This could be done like this:

Code:
blablabla..
..........
......
public plugin_init() {
   register_plugin("Blabla", "0.1", "Meh")
   [hook playerspawn (use VEN's tut)]
}

public playerspawn(id) {
     
     set_task(1.0, "loopcmd", id)

}

public loopcmd(id) {

     function or command here...

     set_task(9.0, "loopcmd", id)
}
Quote:
Originally Posted by vl@d View Post
thx anyway..Alka did it again ;))
then post the code?
__________________
Quote:
Originally Posted by Alka View Post
engine ?! 0o... *barf*

Last edited by mordi; 11-12-2007 at 18:08.
mordi is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 11-12-2007 , 18:03   Re: set user maxspeed [Solved]
Reply With Quote #7

I can't code.. not sure what to put where.
__________________
hugz` is offline
Send a message via AIM to hugz`
Reply



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 13:51.


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