samp faction chat
#1

PHP код:
stock SendMessageToAllFaction(message[], color)
{
    foreach(
Playeri)
    {
        if(
pInfo[i][pFaction] == pInfo[playerid][pFaction]
        {
             
SendClientMessage(icolormessage);
         }
     }
    return 
1;

PHP код:
CMD:faction(playerid,params[])
{
    new 
factionstring[257];
     if((
pInfo[playerid][pFaction] == 0)) return SendClientMessage(playerid, -1"You are not in any faction");
    {
        if(!
strlen(params))
        {
            
SendClientMessage(playerid, -1""chat" /f [mesaj]");
            return 
1;
        }
        
format(factionstringsizeof(factionstring), ""COL_FCHAT"** (( %s %s: %s ))**",GetRankName(playerid),PlayerName(playerid), params);
        
SendMessageToAllFaction(factionstring, -1);
    }
    return 
1;

How can I fix this code? I want to set for each faction, not for all faction in one chat.
Reply


Messages In This Thread
samp faction chat - by Zeus666 - 20.04.2018, 09:55
Re: samp faction chat - by jasperschellekens - 20.04.2018, 10:02
Re: samp faction chat - by Zeus666 - 20.04.2018, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)