AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cmd (https://forums.alliedmods.net/showthread.php?t=144222)

rrduna 11-30-2010 17:33

cmd
 
what is the full line of command that is used to run settings on clients?

fysiks 11-30-2010 18:20

Re: cmd
 
Quote:

Originally Posted by rrduna (Post 1360447)
what is the full line of command that is used to run settings on clients?

What are you trying to do?

rrduna 11-30-2010 18:43

Re: cmd
 
something more or less so.
I want to make the sky map change for everyone, but do not want anything like that
with those plugin customization file. cfg
I want everything inside the script.

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Plugin Name"
#define VERSION "1.0"
#define AUTHOR "AMXX-Studio"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}

public 
precache_sky(){
    
    
client_cmd(0"sv_skycolor_b 0")
    
client_cmd(0"sv_skycolor_g 0")
    
client_cmd(0"sv_skycolor_r 0")
    
    
client_cmd(0"sv_skyname space")
    
    
client_cmd(0"sv_skyvec_x 0.365677")
    
client_cmd(0"sv_skyvec_y 0.340999")
    
client_cmd(0"sv_skyvec_z -0.896025")



Exolent[jNr] 11-30-2010 18:53

Re: cmd
 
You don't need to change the client settings for that, only the server.

rrduna 11-30-2010 18:57

Re: cmd
 
But I want to change the settings with a plugin.
Driving the cvars of toggles and if possible, make a precache the sky for customer.


All times are GMT -4. The time now is 11:19.

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