Raised This Month: $ Target: $400
 0% 

loop help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cigojlo
Senior Member
Join Date: May 2013
Location: Serbia / Belgrade
Old 09-18-2013 , 20:51   loop help
Reply With Quote #1

Hey guys i search all forum but cant finde, how can i loop to see is there is one ct left i want to protect respawn if one ct left,thanks in advance, here is waht im trying to do:

PHP Code:
public bla bla(id)
{
            new 
iPlayers[32], iNumid;
            new 
tdi get_players(iPlayersiNum"1""CT");
            
            
/* --| If already has item, show a damn print and return */
            
if(tdi && cs_get_user_team(id) == CS_TEAM_T && cs_get_user_team(id) == CS_TEAM_SPECTATOR)
            {
                
client_printidprint_chat"" );
                return 
PLUGIN_HANDLED;
            }
            
            
ExecuteHamBHam_CS_RoundRespawnid );
            
            return 
PLUGIN_HANDLED;

__________________
Quote:
Originally Posted by ghinghis View Post
the fuking TOP.SMA cannot be compiled moron !!!!!
Cigojlo is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-19-2013 , 01:00   loop help
Reply With Quote #2

No Steam, no help.
__________________
Black Rose is offline
Cigojlo
Senior Member
Join Date: May 2013
Location: Serbia / Belgrade
Old 09-20-2013 , 06:37   Re: loop help
Reply With Quote #3

Quote:
Originally Posted by Black Rose View Post
No Steam, no help.
What non steam, areu u drunk? Moderators can you remove this spam bot pls, he spaming all threads?!
__________________
Quote:
Originally Posted by ghinghis View Post
the fuking TOP.SMA cannot be compiled moron !!!!!

Last edited by Cigojlo; 09-20-2013 at 06:37.
Cigojlo is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 09-20-2013 , 07:11   Re: loop help
Reply With Quote #4

Use get_maxplayers() and cs_get_user_team()

or

use get_players()
mottzi is offline
Send a message via MSN to mottzi
Cigojlo
Senior Member
Join Date: May 2013
Location: Serbia / Belgrade
Old 09-20-2013 , 08:50   Re: loop help
Reply With Quote #5

thanks mottzi
__________________
Quote:
Originally Posted by ghinghis View Post
the fuking TOP.SMA cannot be compiled moron !!!!!
Cigojlo 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 18:52.


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