Problem with teamchat!
#5

PHP код:
if(gTeam[playerid] == YOUR_TEAM && PlayerInfo[playerid][pRank] == 1// pRank OR pTeam
        
{
            if(
gTeam[playerid] == YOUR_TEAM)
              {
                
format(stringsizeof(string), "[GROUP-CHAT]%s Says:,"PlayerName[playerid], text);
                
SendTeamMessage(YOUR_TEAMCOLOR_BLUEstring);
            } 

// #define YOUR_TEAM 2
// #define YOUR_TEAM 0x0259EAAA
// #define YOURTEAM_COLOR 0x0259EAAA

PHP код:
   else if(gTeam[playerid] == YOUR_TEAM)
    {
        if(
PlayerInfo[playerid][pRank] == 1)
         {
            
SetPlayerColor(playeridYOURTEAM_COLOR);
        }
        else
        {
             
SetPlayerColor(playeridTEAMCOLOR_NORMAL);
        }
    } 
Maybe u can something use like this ?:P


// by the way pTeam , pRank

enum pInfo
{
pRank,
pTeam
}

I could make mistakes :P
Reply


Messages In This Thread
Problem with teamchat! - by Twisted_Insane - 31.03.2012, 13:10
Re: Problem with teamchat! - by vyper - 31.03.2012, 14:18
Re: Problem with teamchat! - by sjvt - 31.03.2012, 14:31
Re: Problem with teamchat! - by Twisted_Insane - 31.03.2012, 14:59
Re: Problem with teamchat! - by Randyy - 31.03.2012, 15:02
Re: Problem with teamchat! - by Twisted_Insane - 31.03.2012, 15:08
Re: Problem with teamchat! - by Randyy - 31.03.2012, 15:14
AW: Problem with teamchat! - by Nero_3D - 31.03.2012, 15:16
Re: Problem with teamchat! - by Randyy - 31.03.2012, 15:19
Re: Problem with teamchat! - by Twisted_Insane - 31.03.2012, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)