View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-30-2018 , 13:22   Re: Freeday menu show all alive terrorists does not work
Reply With Quote #2

Here basic loop all player indexs
PHP Code:
for(int i 1<= MaxClientsi++)
{
    if(!
IsClientInGame(i)) continue; // skip indexs where no client and not connected fully in game

    
if(GetClientTeam(i) != || !IsPlayerAlive(i)) continue; // skip client in any other team than team index 2 and when client is dead

    // Do your stuff
    //
    // PrintToChatAll("Player(%i) name %N", i, i);

__________________
Do not Private Message @me

Last edited by Bacardi; 12-30-2018 at 13:24.
Bacardi is offline