Raised This Month: $ Target: $400
 0% 

Increase value by one


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killergirl
Senior Member
Join Date: Jul 2010
Old 04-19-2011 , 15:00   Increase value by one
Reply With Quote #1

I'm trying to make a 'no-retry' plugin, but some players said they get kicked while they are connecting, or after they are connected.

PHP Code:
new g_Ready[33]

public 
client_putinserver(id)
{
    if(!
is_user_bot(id))
    {
        
g_Ready[id] += 1
        
        
new Name[32]
        
        
get_user_name(idName31)
        
        if(
g_Ready[id] > 2)
        {
            
server_cmd("kick %s"Name)
        }
    }
    
    return 
PLUGIN_HANDLED

killergirl is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-19-2011 , 16:35   Re: Increase value by one
Reply With Quote #2

You should use a trie to check against steam ids. What you currently do is make it so no one can join the same slot in the server.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
killergirl
Senior Member
Join Date: Jul 2010
Old 04-19-2011 , 17:48   Re: Increase value by one
Reply With Quote #3

Quote:
Originally Posted by Emp` View Post
You should use a trie to check against steam ids. What you currently do is make it so no one can join the same slot in the server.
And where can I store the steamID's? Intro a variable, vault? Where?
killergirl is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-19-2011 , 18:39   Re: Increase value by one
Reply With Quote #4

Quote:
Originally Posted by Emp` View Post
You should use a trie
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 04-19-2011 , 19:59   Re: Increase value by one
Reply With Quote #5

No-retry plugins that kick suck. You should block spawn and make players who use retry wait until next round. Like this: http://forums.alliedmods.net/showthread.php?p=555349
__________________
Impossible is Nothing
Sylwester 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 20:03.


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