View Single Post
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 07-03-2013 , 11:03   Re: [CS:GO] Team Limit Bypass
Reply With Quote #4

Quote:
Originally Posted by KyleS View Post
Cool! Way to take advantage of the new events in CS:GO!

Two Things: In Command_JoinTeam you don't check argc, or the return of GetCmdArg. Your team counts start at -1, so when your while loops fire, if only one spawn point is found, they'd show 0. Just things, but heh! It's a pretty simple plugin ;)
PHP Code:
{
    if(!
argc || !client || !IsClientInGame(client))
        return 
Plugin_Continue
i check if argc is zero and bail out if it is the -1 thing is true,i meant that to indicate if the counting code hasnt run yet and forgot to reset it to 0 there lmao, thanks
__________________
Taking private C++/PHP/SourcePawn requests, PM me.

Last edited by Zephyrus; 07-03-2013 at 11:06.
Zephyrus is offline