Raised This Month: $ Target: $400
 0% 

pause / bind pause


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BIGR
Junior Member
Join Date: Aug 2008
Old 01-05-2011 , 18:47   pause / bind pause
Reply With Quote #1

Hi,
i need help with pause.

I check admincmd.sma where is a good function of pause, but it's for new cmd.
I create function for pause with some conditons, but i need optimise.
I would send cmd pause, and now run my fuction with some conditons (minimum connection time, ...).



cmd pause and run fuction OR check bind and set bind pause

1) cmd pause block
Code:
public plugin_init()
{
register_clcmd("pause","func_test")
register_clcmd("func_pause","func_test")
}

public func_test(id) 
{
client_print(id,print_chat,"It is great !")
return PLUGIN_CONTINUE
//but if I send cmd pause, this function not run
}
2) When it will not do. I need check client bind pause.
I test it with function query_client_cvar().
Every my test: Bad CVAR request



3) else if you are dont help me, i must hard send for client this and use func_pause
Code:
public client_putinserver(id)
{
set_task(15.0, "set_pause", id)
}

public set_pause(id)
{
client_cmd(id, "bind ^"pause^" ^"func_pause; pause^"")
}
But it's not good, becouse somebody don't have bind "pause" "pause".




sorry my english is bad

Thanks, BIGR.

Last edited by BIGR; 01-06-2011 at 02:06.
BIGR 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 02:12.


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