Thread: [Solved] Player bool
View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-05-2018 , 18:07   Re: Player bool
Reply With Quote #15

It doesn't matter how many slots you have. The player id can range from 1 to 32 and you should always use [33] when using player variables. Loop all players like this:

PHP Code:
new iPlayers[32], iPnum
get_players
(iPlayersiPnum)

for(new 
iPlayeriiPnumi++)
{
    
iPlayer iPlayers[i]
    
    
// iPlayer is the player id

You can also add filtering flags if you want only alive players, only CTs, etc.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom