Show Players On A Team problem?
#1

okay i have this script that is suppose to show the players on a team... but! instead of showing the players on TEAM_HIDER 0... the command only works for TEAM_HIDER 0 showing the names of all players (i think of all players)
here is the code someone help me fix it please
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

if(!strcmp(cmdtext, "/alive", true)) {
     for(new i = 0; i < GetMaxPlayers(); i ++ ) {
           if(!IsPlayerConnected(i)) continue;
           if(gTeam[playerid] == TEAM_HIDER) {
                 GetPlayerName(i, zzst, 24);
                 SendClientMessage(playerid, 0xFFFFFFA, zzst);
           }
     }
     return 1;
}
return 0;
}
Reply


Messages In This Thread
Show Players On A Team problem? - by lSCARl - 12.08.2010, 00:42
Re: Show Players On A Team problem? - by CyNiC - 12.08.2010, 03:14
Re: Show Players On A Team problem? - by lSCARl - 12.08.2010, 19:19
Re: Show Players On A Team problem? - by lSCARl - 12.08.2010, 20:51
Re: Show Players On A Team problem? - by wups - 12.08.2010, 20:54
Re: Show Players On A Team problem? - by lSCARl - 12.08.2010, 21:21
Re: Show Players On A Team problem? - by wups - 13.08.2010, 07:47

Forum Jump:


Users browsing this thread: 2 Guest(s)