Raised This Month: $ Target: $400
 0% 

server cvar and printing them


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
gamer99
Senior Member
Join Date: Jul 2011
Old 07-25-2011 , 08:57   Re: server cvar and printing them
Reply With Quote #3

Code:
new g_fRate,g_fUpdate,g_fC4timer,g_fRTime,g_fHostname

public plugin_init()
{
	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
	g_fRate=get_cvar_pointer("sv_maxrate")
	g_fUpdate=get_cvar_pointer("sv_maxupdaterate")
	g_fC4timer=get_cvar_pointer("mp_c4timer")
	g_fRTime=get_cvar_pointer("mp_roundtime")
	g_fHostname=get_cvar_pointer("hostname")
}

public client_putinserver(id)
{
	if(is_user_bot(id))
		return PLUGIN_HANDLED
	set_task(10.0,"server_info",id)
	return PLUGIN_HANDLED		
}

public server_info(id)
{
	new iRate=get_pcvar_float("g_fRate")
	new iUpdate=get_pcvar_float("g_fUpdate")
	new iC4timer=get_pcvar_float("g_fC4timer")
	new iRTime=get_pcvar_float("g_fRTime")
	new iHostname=get_pcvar_string("g_fHostname")
	server_cmd("say rate : %0.f ,  Updaterate : %.0f , C4Timer %.0f , RoundTime %.0f , Hostname : %s ",iRate,iUpdate,iC4timer,iRTime,iHostname)
}
Not getting complied
gamer99 is offline
 



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 00:47.


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