- 0
Bug comanda /f
-
Similar Content
-
- 2 replies
- 2.003 views
-
- 1 answer
- 449 views
-
- 7 replies
- 638 views
-
- 10 answers
- 3.221 views
-
- 2 answers
- 1.041 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
caltabos
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now