Raised This Month: $ Target: $400
 0% 

diseble comands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-13-2005 , 12:12  
Reply With Quote #1

What?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
beHapy
Junior Member
Join Date: Oct 2005
Old 10-13-2005 , 12:46  
Reply With Quote #2

i need to catchi thet player who is rekvestinh cl_weather ;/
beHapy is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-13-2005 , 12:46  
Reply With Quote #3

What is "rekvestinh" ?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-13-2005 , 12:50  
Reply With Quote #4

Probably means catch or input.




Just use this man.
Attached Files
File Type: sma Get Plugin or Get Source (cl_weather.sma - 339 views - 523 Bytes)
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-13-2005 , 15:18  
Reply With Quote #5

get_user_info cannot retrieve data like cl_weather, that is why we have query_client_cvar.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-13-2005 , 16:14  
Reply With Quote #6

Ok, try this:
Code:
#include <amxmodx> #include <engine> new g_iFrame[33]; new g_iCvarValue[33]; public plugin_init() {   register_plugin("cl_weather kicker","0.1","v3x"); } public client_PreThink( id ) {   if( g_iFrame[id] >= 100 )   {     query_client_cvar(id, "cl_weather", "GetCvarValue");     if( g_iCvarValue[id] != 1 )     {       server_cmd("amx_kick #%i ^"cl_weather needs to be set to 1^"", get_user_userid(id));     }     g_iFrame[id] = 0;   }   g_iFrame[id]++; } public GetCvarValue( id, const cvar[], const result[] ) {   g_iCvarValue[id] = str_to_num(result); }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 10-15-2005 , 15:07  
Reply With Quote #7

i'd change
Code:
if( g_iCvarValue[id] != 1 )
to
Code:
if( g_iCvarValue[id] != get_cvar_num("cl_weather") )
to make it check if the client's cvar fits to the server's cvar value, so the server can predefine what the clients have to use (helpful if you're checking more than one cvar)

Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
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 23:41.


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