Clan chat
#7

Quote:
Originally Posted by HardRock
Посмотреть сообщение
PHP код:
stock SendClanMessage(colorstring[]) 

    foreach(
Playeri
    { 
        if(
PlayerInfo[i][pClan] >= 1)
        { 
            
SendClientMessage(icolorstring); 
        } 
    } 
    return 
1

or

PHP код:
stock SendClanMessage(colorclanidstring[]) 

    foreach(
Playeri
    { 
        if(
PlayerInfo[i][pClan] == clanid)
        { 
            
SendClientMessage(icolorstring); 
        } 
    } 
    return 
1

Above one wont work, as it will send a clan message to all clans, and not to only clan members, not sure about the second one because i can't test it atm. I think it won't work.
Reply


Messages In This Thread
Clan chat - by ThaCrypte - 19.10.2013, 00:07
Re: Clan chat - by SilentSoul - 19.10.2013, 00:10
Re: Clan chat - by ThaCrypte - 19.10.2013, 00:16
Re: Clan chat - by HardRock - 19.10.2013, 00:16
Re: Clan chat - by ThaCrypte - 19.10.2013, 00:20
Re: Clan chat - by HardRock - 19.10.2013, 00:28
Re: Clan chat - by ThaCrypte - 19.10.2013, 00:37
Re: Clan chat - by HardRock - 19.10.2013, 00:40
Re: Clan chat - by ThaCrypte - 19.10.2013, 00:47
Re: Clan chat - by TonyII - 19.10.2013, 00:48

Forum Jump:


Users browsing this thread: 1 Guest(s)