Tak jak w temacie chciałbym graczą steam też wymusić komendy typu cl_forwardspeed..
No i zrobiłem
#include <amxmodx>
#define PLUGIN "Wymuszanie komend"
#define VERSION "1.0"
#define AUTHOR "Play"
new cvar_czas;
public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
   
	cvar_czas = register_cvar("cod_tasktime", "5.0");
}
public client_putinserver(id)
{
	set_task(get_pcvar_float(cvar_czas), "WymusKomendy", id+333, _, _, "b");
}
public client_disconnect(id)
{
	remove_task(id+333);
}
public WymusKomendy(id)
{
	id -= 333;
	if(is_user_alive(id))
	{
		cmdExecute(id, "cl_sidespeed %i", 600);
		cmdExecute(id, "cl_backspeed %i", 600);
		cmdExecute(id, "cl_forwardspeed %i", 600);
	}
}
stock cmdExecute( id , const szText[] , any:... ) {
    
    #pragma unused szText
    if ( id == 0 || is_user_connected( id ) ) {
        new szMessage[ 256 ];
        format_args( szMessage ,charsmax( szMessage ) , 1 );
        message_begin( id == 0 ? MSG_ALL : MSG_ONE, 51, _, id )
        write_byte( strlen( szMessage ) + 2 )
        write_byte( 10 )
        write_string( szMessage )
        message_end()
    }
}
no ale niestety nie działa ;/
Skorzystałem z http://amxx.pl/topic...ad/#entry664806


 Forum
 
Forum
 Użytkownicy
 
Użytkownicy
 Kalendarz
 
Kalendarz
 Dodatki SourceMod
 
Dodatki SourceMod



 
	 
					


 
				
				







