12.08.2010, 00:42
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
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; }