Raised This Month: $51 Target: $400
 12% 

Mind Reader [Game]


Post New Thread Reply   
 
Thread Tools Display Modes
alias_retaer
Member
Join Date: Jul 2009
Old 10-05-2009 , 15:10   Re: Mind Reader [Game]
Reply With Quote #11

vid?
alias_retaer is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 10-05-2009 , 15:48   Re: Mind Reader [Game]
Reply With Quote #12

WTF with this

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
    

I'd prefer something like this

PHP Code:
    new pValue get_pcvar_num(g_Cycle)
    
    switch (
pValue)
    {
        case 
8set_pcvar_num(g_Cycle50)
        case 
50set_pcvar_num(g_Cycle28)
        case 
36set_pcvar_num(g_Cycle18)
        default: 
set_pcvar_num(g_Cycle8)
    } 
But, as Exolent said, you should use a variable instead of a cvar..
__________________
IneedHelp is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-05-2009 , 16:48   Re: Mind Reader [Game]
Reply With Quote #13

I don't even understand the purpose of this plugin, seems pointless to me.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 10-05-2009 , 16:57   Re: Mind Reader [Game]
Reply With Quote #14

Update v1.1

Will add multilingual support tomorrow
__________________

Last edited by Emilioneri; 10-05-2009 at 17:02.
Emilioneri is offline
Send a message via Skype™ to Emilioneri
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 10-05-2009 , 19:48   Re: Mind Reader [Game]
Reply With Quote #15

Plugin for the lulz.

Try to variate the stuff a bit so it isn't always the same formula. Make it look a little more random between games and it would become a hint of awesome.
__________________
In Flames we trust!
Nextra is offline
Alejandro
BANNED
Join Date: Sep 2009
Old 10-06-2009 , 00:55   Re: Mind Reader [Game]
Reply With Quote #16

PHP Code:
public plugin_init()
set_task(200.0"Advertise"0""0"b"1
????????????
Alejandro is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-06-2009 , 02:03   Re: Mind Reader [Game]
Reply With Quote #17

You still have useless returns in all case 1, i think.
__________________
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^
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 10-06-2009 , 05:31   Re: Mind Reader [Game]
Reply With Quote #18

Update v1.5
__________________
Emilioneri is offline
Send a message via Skype™ to Emilioneri
MmikiM
Senior Member
Join Date: Nov 2006
Location: Poland
Old 10-06-2009 , 11:58   Re: Mind Reader [Game]
Reply With Quote #19

My dad told me about this game PEOPLE THINK!!!
__________________


Projects:
Zombie Elite - Technical: 100% Looking for models and sounds...
CS:Source Zombie -
Work in progress...
MmikiM is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-06-2009 , 12:03   Re: Mind Reader [Game]
Reply With Quote #20

PHP Code:
    if (g_Cycle == 8)
    {
        
g_Cycle 50
    
}
    if (
g_Cycle == 50)
    {
        
g_Cycle 28
    
}
    if (
g_Cycle == 28)
    {
        
g_Cycle 36
    
}
    if (
g_Cycle == 36)
    {
        
g_Cycle 18
    
}
    else
    {
        
g_Cycle 8
    

Use switch( )
__________________
xPaw is offline
Reply



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 00:36.


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