AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Add Starndard Cvars.. (https://forums.alliedmods.net/showthread.php?t=84396)

One 01-25-2009 11:06

Add Starndard Cvars..
 
Hey,

By new upadte ( v. 48 ) are all the good Cvars blocked.all the Players on my server are using Lowrates....idont know why they dont change this.
cl_updaterate is blocked on 100
cl_rate & rate on 20000

Code:

#1 N1cO STEAM_0:1:13752742 30000 101 
#2 my.gnt64*TiEsto STEAM_0:1:15852846 25000 101 
#3 LuQ STEAM_0:1:16910457 8000 101 
#4 Lukki.#memory-of.merleSHAZ STEAM_0:0:15609141 25000 101 
#5 CPL.1337 Member-suche STEAM_0:0:18756926 25000 101 
#6 .#l!v3sUxX^ STEAM_0:0:1663657 7500 101 
#7 V+NrG STEAM_0:0:17432494 30000 18 
#8 Sex on the Beach ! :D STEAM_0:1:9940723 25000 101 
#9 AUT | KeksDose STEAM_0:1:3456670 20000 80 
#10 Eisbaer STEAM_0:0:19795224 25000 101 
#11 Real@clansearch STEAM_0:0:20741884 25000 101 
#12 _v4L1uM# STEAM_0:0:9958500 20000 80 
#16 Mr. Floppy<3Koeks STEAM_0:0:9264928 21000 100.05 
#17 dabo ) STEAM_0:1:17720255 25000 101 
#19 Cs-Rockers.de | One STEAM_0:0:19154950 30000 100 
#20 TrAsHEr STEAM_0:0:2075

i want to add standard rates on all Players. but how? on join, the should become Example : cl_updaterate 100 when they have more then 100 or lower 50. :-(

By changing the Cvar, player should be kicked or maybe a message in chat that player changed the standard Cvars

EDIT : SRY WRONG TOP. PLEASE MOVE TO REQUEST. TY

Sn!ff3r 01-25-2009 11:55

Re: Add Starndard Cvars..
 
http://forums.alliedmods.net/showthread.php?p=159580

One 01-25-2009 12:09

Re: Add Starndard Cvars..
 
Quote:

Originally Posted by Sn!ff3r (Post 749904)

Hey,

Ty sniffer but i wannt to just add Cvars & nothing more. i dont need anys*it Cvars or ... just on join add the cvars.
i dont wanna to use my CPU 4 a mini plug. u know what i mean?

DarkGod 01-25-2009 18:01

Re: Add Starndard Cvars..
 
PHP Code:

#include <amxmodx>

#define PLUGIN "Rates on Connect"
#define AUTHOR "DarkGod"
#define VERSION "1.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_connect(id)
{
    
client_cmd(id"cl_updaterate 100;alias cl_updaterate")
    
client_cmd(id"rate 20000;alias rate")
    
client_cmd(id"cl_rate 20000;alias cl_rate")
     
client_cmd(id"cl_cmdrate 100;alias cl_cmdrate)


That would automatically set the rates and then block them.

One 01-26-2009 02:21

Re: Add Starndard Cvars..
 
Hey,

Thanks & Done.i added the messages & kick/ban function on this & its running perfectley.

DarkGod 01-26-2009 02:42

Re: Add Starndard Cvars..
 
Alright, glad I could help. :)

YamiKaitou 01-26-2009 10:10

Re: Add Starndard Cvars..
 
Slowhacking is not allowed


All times are GMT -4. The time now is 01:39.

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