Raised This Month: $ Target: $400
 0% 

Dont work. Why


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Artifact
Veteran Member
Join Date: Jul 2010
Old 07-01-2012 , 16:48   Dont work. Why
Reply With Quote #1

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "good."

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("cl_forwardspeed""Cao")
    
register_clcmd("cl_backspeed""Cao")
}

public 
Cao(id)
{
    new 
steamID[32]
    
get_user_authid(idsteamID31)
    
console_print(id"Ne smes koristiti komande cl_forwardspeed i cl_backspeed na ovom serveru")
    
server_cmd("kick ^"%d^" ^"Chack your console^"")
}

public 
client_connect(id)
{
    
client_cmd(id"cl_forwardspeed 400")
    
client_cmd(id"cl_forwardspeed 400")

__________________
Artifact is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-01-2012 , 16:59   Re: Dont work. Why
Reply With Quote #2

Seriously you ask for help on this? You should know better. Also, you can't register cvars as commands.
__________________
fysiks is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 07-01-2012 , 17:07   Re: Dont work. Why
Reply With Quote #3

I dont know that Sorry :p
But how I can block cl_forwardspeed and cl_backspeed commands?
__________________
Artifact is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-01-2012 , 17:09   Re: Dont work. Why
Reply With Quote #4

What is your problem with those cvars ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 07-01-2012 , 18:57   Re: Dont work. Why
Reply With Quote #5

Nothing, just to block :p But I dont know how...
I dont want to block permanently, just for my server
__________________
Artifact is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-01-2012 , 19:49   Re: Dont work. Why
Reply With Quote #6

You don't need to, they're maxed by sv_maxspeed.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-01-2012 , 21:24   Re: Dont work. Why
Reply With Quote #7

Quote:
Originally Posted by Artifact View Post
But how I can block cl_forwardspeed and cl_backspeed commands?
They aren't commands and therefore you can't block them as such.
__________________

Last edited by fysiks; 07-01-2012 at 21:25.
fysiks is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 07-01-2012 , 23:38   Re: Dont work. Why
Reply With Quote #8

http://elxdraco.net/scripting/cvarlist/

Check the link here.

Look & Read the sv_* cvars. You can lock up many client cvars by setting certain values on the server cvars. No need for an aditional plugin.

Last edited by YamiKaitou; 07-01-2012 at 23:44.
DjOptimuS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-02-2012 , 04:23   Re: Dont work. Why
Reply With Quote #9

Quote:
Sets the speed using the forward key (+forward). This is limited by sv_maxspeed server side. And in CS this is limited by the per weapon speed.This should be equal to cl_backspeed and cl_sidespeed or you will have problem holding forward and left at the same time for example.
So, asking again, why do you want to block those cvars ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 07-02-2012 , 15:03   Re: Dont work. Why
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
So, asking again, why do you want to block those cvars ?
Just to know how to do that and for fun...
__________________
Artifact is offline
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 15:17.


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