11.08.2010, 09:12
like this:
Код:
// top #define SLOTS yourslotsfortheserver // in your command new aname[20],str[32]; for(new i=0;i<SLOTS;i++) // loops through all slots on the server { if(IsPlayerConnected(i) && Teamvar[playerid] ==TEAM_HIDER) // if player is connected and player is in team_hider // replace Teamvar with your variable for teams, like gTeam { GetPlayerName(i,aname,20); // get a name of an alive player format(string,32,"[ALIVE] %s",aname); // set str's value to "[ALIVE] aname" SendClientMessage(playerid,COLOR,str); // send str to the player, who typed the command..:D have fun! } }