o.O
PHP Code:
public Advertise(id)
{
client_print(0, print_chat, "[Mind Reader] To play game Mind Reader type in chat: /mindr")
return PLUGIN_HANDLED
}
The return is useless here, i think.
PHP Code:
case 1:
{
client_cmd(id, "say /mindr")
return PLUGIN_HANDLED
}
Lol?
PHP Code:
if (get_pcvar_num(g_Cycle) == 8)
{
server_cmd("amx_mindrcycle 50")
return PLUGIN_HANDLED
}
if (get_pcvar_num(g_Cycle) == 50)
{
server_cmd("amx_mindrcycle 28")
return PLUGIN_HANDLED
}
if (get_pcvar_num(g_Cycle) == 28)
{
server_cmd("amx_mindrcycle 36")
return PLUGIN_HANDLED
}
if (get_pcvar_num(g_Cycle) == 36)
{
server_cmd("amx_mindrcycle 18")
return PLUGIN_HANDLED
}
else
{
server_cmd("amx_mindrcycle 8")
return PLUGIN_HANDLED
}
Returns are useless here too.
And... why are you creating the menu's in cases? I don't think is a good method... maybe you should create menu's in the plugin_init.
Quote:
Cvars:
amx_mindrcycle - Don't change this cvar!
|
Lol?
Cvars are to change it... so, if you want to use a number that ppl don't have to change it... don't create a cvar for that.
Sry for my english.
__________________