Making faction system more than 1 faction
#8

I solved the cmd:f.

PHP код:
CMD:f(playerid,params[])
{
    new 
factionstring[257];
    if(
pInfo[i][pFaction] == pInfo[i][pFaction])
    {
        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);
    }
    else {
        
SendClientMessage(playerid,-1,"*"COL_RED" U are not in faction!");
    }
    return 
1;

Thank you. Is there a way to sort faction online members by their case rank ?

PHP код:
CMD:factionon(playeridparams[])
{
    new 
str[128], DUTY_STR[24], COLORcounter 0;
    
SendClientMessage(playerid, -1" - Membrii online - ");
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
pInfo[i][pFaction] == pInfo[i][pFaction])
            {
                if(!
pInfo[i][pPoliceDuty])
                {
                    
DUTY_STR "Off Duty";
                    
COLOR COLOR_WHITE;
                }
                else
                {
                    
DUTY_STR "ON DUTY";
                    
COLOR COLOR_RED;
                }
                
format(strsizeof(str),"%s: %s - %s",  GetRankName(i), PlayerName(i), DUTY_STR);
                
SendClientMessage(playeridCOLORstr);
                
counter++;
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 20:58
Re: Making faction system more than 1 faction - by Mugala - 15.04.2018, 21:14
Re: Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 21:15
Re: Making faction system more than 1 faction - by Mugala - 15.04.2018, 21:25
Re: Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 21:28
Re: Making faction system more than 1 faction - by Mugala - 15.04.2018, 21:42
Re: Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 22:03
Re: Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 22:36
Re: Making faction system more than 1 faction - by Mugala - 15.04.2018, 22:43
Re: Making faction system more than 1 faction - by Zeus666 - 16.04.2018, 10:10

Forum Jump:


Users browsing this thread: 2 Guest(s)