Raised This Month: $ Target: $400
 0% 

Help With FPS Menu -- Menu Won't Show


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 02-24-2009 , 12:03   Help With FPS Menu -- Menu Won't Show
Reply With Quote #1

Hey, made this script, except I'm not sure what I've done wrong. If someone could help me out

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "FPS Menu"
#define VERSION "1.0"
#define AUTHOR "shadow.hk"
new fpsmenu
public plugin_init()
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_clcmd("say /fps","showFPSmenu",0,"Brings up an FPS menu")
 
fpsmenu register_cvar("amx_allowfps","1")
}
public 
showFPSmenu(id)
{
 if (
get_pcvar_num(fpsmenu) == 1)
 {
  new 
menu menu_create("\yCombatZone FPS Menu","menu_handler")
  
menu_addblank(menu)
  
menu_additem(menu,"\wDeveloper ON/OFF","1",0)
  
menu_additem(menu,"\wShow/Hide FPS","2",0)
  
menu_additem(menu,"\wFPS 101","3",0)
  
menu_additem(menu,"\wFPS 131","4",0)
  
menu_additem(menu,"\wFPS 150","5",0)
  
menu_additem(menu,"\wFPS 200","6",0)
  
menu_additem(menu,"\wFPS 250","7",0)
  
menu_additem(menu,"\wFPS 300","8",0)
  
menu_addblank(menu)
  
menu_additem(menu,"\wExit","0",0)
  
menu_setprop(menuMPROP_EXITMEXIT_ALL)
  
menu_display(idmenu0)
 }
}
public 
menu_handler(id,menu,item)
{
  if (
item == MENU_EXIT)
  {
   
menu_destroy(menu)
   return 
PLUGIN_HANDLED
  
}
 
  new 
data[6], iName[64]
  new 
accesscallback
 
  menu_item_getinfo
(menuitemaccessdata,5iName63callback)
 
  new 
key str_to_num(data)
 
  switch(
key)
  {
   case 
1:{
    
client_cmd(id,"developer on")
   }
   case 
2:{
    
client_cmd(id,"net_graph 3")
   }
   case 
3:{
    
client_cmd(id,"fps_max 101")
   }
   case 
4:{
    
client_cmd(id,"fps_max 131")
   }
   case 
5:{
    
client_cmd(id,"fps_max 150")
   }
   case 
6:{
    
client_cmd(id,"fps_max 200")
   }
   case 
7:{
    
client_cmd(id,"fps_max 250")
   }
   case 
8:{
    
client_cmd(id,"fps_max 300")
   }
   case 
0:{
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED
   
}
  }
  
menu_destroy(menu)
  return 
PLUGIN_HANDLED


Last edited by shadow.hk; 02-24-2009 at 12:16.
shadow.hk is offline
Send a message via MSN to shadow.hk
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-24-2009 , 12:05   Re: [HELP] FPS Menu!!!
Reply With Quote #2

Before you post again, edit your first post to fix the topic title to be more descriptive.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 04-06-2013 , 16:34   Re: Help With FPS Menu -- Menu Won't Show
Reply With Quote #3

EDIT:pfff Whatever..
I will fix tomorrow cause now i must dc...
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science

Last edited by oxygen935; 04-06-2013 at 16:40.
oxygen935 is offline
Send a message via Skype™ to oxygen935
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 04-06-2013 , 17:26   Re: Help With FPS Menu -- Menu Won't Show
Reply With Quote #4

Quote:
Originally Posted by oxygen935 View Post
EDIT:pfff Whatever..
I will fix tomorrow cause now i must dc...
what are you doing
EpicMonkey is offline
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 04-06-2013 , 17:36   Re: Help With FPS Menu -- Menu Won't Show
Reply With Quote #5

developer command no longer supported in client to raise fps up to 100+, use fps_override 1 in each command.
seriousspot is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-06-2013 , 22:44   Re: Help With FPS Menu -- Menu Won't Show
Reply With Quote #6

Quote:
Originally Posted by oxygen935 View Post
EDIT:pfff Whatever..
I will fix tomorrow cause now i must dc...
Quote:
Originally Posted by seriousspot View Post
developer command no longer supported in client to raise fps up to 100+, use fps_override 1 in each command.
You are aware of the date of this thread, right?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 04-07-2013 , 16:04   Re: Help With FPS Menu -- Menu Won't Show
Reply With Quote #7

Quote:
Originally Posted by hornet View Post
You are aware of the date of this thread, right?
nah, i am just freelancer digger
seriousspot is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 04-14-2013 , 15:00   Re: Help With FPS Menu -- Menu Won't Show
Reply With Quote #8

sorry i forgot... i was busy...
P.S dc = disconnect

Code, untested:
PHP Code:
#include <amxmodx>

#define PLUGIN "FPS Menu"
#define VERSION "1.0"
#define AUTHOR "shadow.hk"

new fpsmenu
new menu

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /fps","showFPSmenu",0,"Brings up an FPS menu")
    
fpsmenu register_cvar("amx_allowfps","1")
}

public 
showFPSmenu(id)
{
    if (
get_pcvar_num(fpsmenu) == 1)
    {
        
menu menu_create("\yCombatZone FPS Menu","menu_handler")
        
menu_additem(menu,"\wDeveloper ON/OFF","1",0)
        
menu_additem(menu,"\wShow/Hide FPS","2",0)
        
menu_additem(menu,"\wFPS 101","3",0)
        
menu_additem(menu,"\wFPS 131","4",0)
        
menu_additem(menu,"\wFPS 150","5",0)
        
menu_additem(menu,"\wFPS 200","6",0)
        
menu_additem(menu,"\wFPS 250","7",0)
        
menu_additem(menu,"\wFPS 300","8",0)
        
menu_setprop(menuMPROP_EXITMEXIT_ALL)
        
menu_display(idmenu0)
    }
}
public 
menu_handler(id,menu,item)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    new 
data[6], iName[64]
    new 
accesscallback
    menu_item_getinfo
(menuitemaccessdata,5iName63callback)
    new 
key str_to_num(data)
    switch(
key)
    {
        case 
1:
        {
            
client_cmd(id,"developer on")
        }
        case 
2:
        {
            
client_cmd(id,"net_graph 3")
        }
        case 
3:
        {
            
client_cmd(id,"fps_max 101")
        }
        case 
4:
        {
            
client_cmd(id,"fps_max 131")
        }
        case 
5:
        {
            
client_cmd(id,"fps_max 150")
        }
        case 
6:
        {
            
client_cmd(id,"fps_max 200")
        }
        case 
7:
        {
            
client_cmd(id,"fps_max 250")
        }
        case 
8:
        {
            
client_cmd(id,"fps_max 300")
        }
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED
}

public 
client_putinserver(id)
{
    
menu_display(idmenu0)

__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science

Last edited by oxygen935; 04-14-2013 at 15:21.
oxygen935 is offline
Send a message via Skype™ to oxygen935
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-14-2013 , 15:04   Re: Help With FPS Menu -- Menu Won't Show
Reply With Quote #9

Quote:
Originally Posted by oxygen935 View Post
sorry i forgot... i was busy...
P.S dc = disconnect

Code, untested:
PHP Code:
#include <amxmodx>

#define PLUGIN "FPS Menu"
#define VERSION "1.0"
#define AUTHOR "shadow.hk"

new fpsmenu
new menu

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /fps","showFPSmenu",0,"Brings up an FPS menu")
    
fpsmenu register_cvar("amx_allowfps","1")
}

public 
showFPSmenu(id)
{
    if (
get_pcvar_num(fpsmenu) == 1)
    {
        
menu menu_create("\yCombatZone FPS Menu","menu_handler")
        
menu_additem(menu,"\wDeveloper ON/OFF","1",0)
        
menu_additem(menu,"\wShow/Hide FPS","2",0)
        
menu_additem(menu,"\wFPS 101","3",0)
        
menu_additem(menu,"\wFPS 131","4",0)
        
menu_additem(menu,"\wFPS 150","5",0)
        
menu_additem(menu,"\wFPS 200","6",0)
        
menu_additem(menu,"\wFPS 250","7",0)
        
menu_additem(menu,"\wFPS 300","8",0)
        
menu_setprop(menuMPROP_EXITMEXIT_ALL)
        
menu_display(idmenu0)
    }
}
public 
menu_handler(id,menu,item)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    new 
data[6], iName[64]
    new 
accesscallback
    menu_item_getinfo
(menuitemaccessdata,5iName63callback)
    new 
key str_to_num(data)
    switch(
key)
    {
        case 
1:
        {
            
client_cmd(id,"developer on")
        }
        case 
2:
        {
            
client_cmd(id,"net_graph 3")
        }
        case 
3:
        {
            
client_cmd(id,"fps_max 101")
        }
        case 
4:
        {
            
client_cmd(id,"fps_max 131")
        }
        case 
5:
        {
            
client_cmd(id,"fps_max 150")
        }
        case 
6:
        {
            
client_cmd(id,"fps_max 200")
        }
        case 
7:
        {
            
client_cmd(id,"fps_max 250")
        }
        case 
8:
        {
            
client_cmd(id,"fps_max 300")
        }
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED

4 years... I think it's very late to post now.

Last edited by baneado; 04-14-2013 at 15:06.
baneado is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 04-14-2013 , 15:06   Re: Help With FPS Menu -- Menu Won't Show
Reply With Quote #10

Quote:
Originally Posted by baneado View Post
3 years... I think it's very late to post now.
Man in school i have a lot of homework to do and we have a lot of tests(i cannot remember all the time everything)...
This guy reminded it to me on steam...
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Reply


Thread Tools
Display Modes

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 17:07.


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