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 , 09:45   Re: server cvar and printing them
Reply With Quote #7

new g_fRate,g_fUpdate,g_fC4timer,g_fRTime,g_sHost name

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_sHostname=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 szHostname[64]
new float:fRate=get_pcvar_float(g_fRate)
new float:fUpdate=get_pcvar_float(g_fUpdate)
new float:fC4timer=get_pcvar_float(g_fC4timer)
new float:fRTime=get_pcvar_float(g_fRTime)
get_pcvar_string(g_sHostname, szHostname, charsmax(szHostname))
server_cmd("say rate : %0.f , Updaterate : %.0f , C4Timer : %.0f , RoundTime : %.0f , Hostname : %s ",fRate,fUpdate,fC4timer,fRTime,szHostnam e)
}
[/CODE]

Now I am getting argument type mismatch error
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