View Single Post
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 02-01-2008 , 15:25   Re: Buy Menu v1.2 [UPDATED]
Reply With Quote #6

just print it on the log event for round start instead of removing it completely.....
And can you tell me what this is good for? dosent make eny sense-.-
PHP Code:
public showUsage(id) {
 if ( !
get_cvar_num("buy_menu") || !get_cvar_num("buy_showusage") )
  return 
PLUGIN_HANDLED
 
if ( !get_cvar_num("buy_menu") ) {
  
client_print(idprint_chat"[BUY] Type /buy to open up the buy menu!")
 } else {
  
client_print(idprint_chat"[BUY] Type /buy to open up the buy menu!")
 }
 return 
PLUGIN_HANDLED

cheek this once before the switch instead of doing it in every case
Quote:
if(get_cvar_num("buy_menu") == 0)
{
client_print(id, print_chat, "[Buy] This Plugin Is Disabled.")
return PLUGIN_HANDLED
}
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 02-01-2008 at 15:29.
fxfighter is offline
Send a message via MSN to fxfighter