View Single Post
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-05-2009 , 10:49   Re: Mind Reader [Game]
Reply With Quote #5

o.O

PHP Code:
public Advertise(id)
{
    
client_print(0print_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.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^