Jump to content
  • 0

Question

Posted

salut cei din mafie nu pot vorbi pe /f de ce?

 

CMD:f(playerid,params[]) {
    new string[256];
    if(PlayerInfo[playerid][pMember]) return 1;
    if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) {
        if(SpecFaction[playerid] == 0) return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1) {
        format(string, sizeof(string), "You can't talk right now! You are muted. (%d seconds)",PlayerInfo[playerid][pMuteTime]);
        SendClientMessage(playerid, COLOR_RED, string);
        return 1;
    }
    new result[250];
    if(FactionChat[PlayerInfo[playerid][pMember]] == 1 && PlayerInfo[playerid][pRank] < 6) return SCM(playerid, COLOR_RED, "Chatul factiunii a fost oprit!");
    if(sscanf(params, "s[250]",result)) return SendClientMessage(playerid, COLOR_WARNING, "Syintax: {FFFFFF}/f <text>");
    if(FaceReclama(result)) return RemoveFunction(playerid, result);
    if(FaceReclama(result)) return Reclama(playerid, result);
    if(SpecFaction[playerid] != 0) {
        format(string, sizeof(string), "* Admin %s: %s", GetName(playerid), result);
        SendFactionMessage(SpecFaction[playerid], 0x0080FFFF, string);
        ChatLog(GetName(playerid), playerid, string);            
        return 1;
    }        
    new member = PlayerInfo[playerid][pMember];
    new leader = PlayerInfo[playerid][pLeader];
    if(IsACop(playerid)) return SCM(playerid, COLOR_LGREEN, "Pentru a scrie pe chatul factiunii, foloseste comanda /r.");
    if(member == 3 || leader == 3) return SCM(playerid, COLOR_LGREEN, "Pentru a scrie pe chatul factiunii, foloseste comanda /r.");
    if(member == 14) return SCM(playerid, COLOR_LGREEN, "Pentru a scrie pe chatul factiunii, foloseste comanda /r.");
    if(PlayerInfo[playerid][pRank] >= 6) {
        format(string, sizeof(string), "(/f) %s %s: %s", GetRankName(playerid), GetName(playerid), result);
        SendFactionMessage(PlayerInfo[playerid][pMember], 0x00AAFFFF, string);
    }
    else {
        format(string, sizeof(string), "(/f) %s %s: %s", GetRankName(playerid), GetName(playerid), result);
        SendFactionMessage(PlayerInfo[playerid][pMember], 0x00D5FFFF, string);
    }    
    ChatLog(GetName(playerid), playerid, string);    
    return 1;
}

7 answers to this question

Recommended Posts

  • 0
Posted
Acum 2 minute, #Yudin a spus:

in if ai introdus fractiunii 0 iar aici 1a

FactionChat[PlayerInfo[playerid][pMember]] == 1 

cum pot pune pentru mai multe factiuni respectiv 4, 5, 6, 10

  • 0
Posted
Acum 5 minute, #Yudin a spus:

in if ai introdus fractiunii 0 iar aici 1a

FactionChat[PlayerInfo[playerid][pMember]] == 1 

aici trebuie modificat? if(PlayerInfo[playerid][pMember] == 0

  • 0
Posted

PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pMember] == 3 ( uite asa ca exemplu )

  • 0
Posted
Acum 1 minut, #Yudin a spus:

PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pMember] == 3 ( uite asa ca exemplu )

a am inteles ms fain

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.