caltabos Posted February 23, 2019 Report Share Posted February 23, 2019 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; } Quote Link to comment Share on other sites More sharing options...
0 khain.dev Posted February 23, 2019 Report Share Posted February 23, 2019 Chiar acum, caltabos a spus: a am inteles ms fain merit un like? 1 Quote Link to comment Share on other sites More sharing options...
0 khain.dev Posted February 23, 2019 Report Share Posted February 23, 2019 in if ai introdus fractiunii 0 iar aici 1a FactionChat[PlayerInfo[playerid][pMember]] == 1 Quote Link to comment Share on other sites More sharing options...
0 caltabos Posted February 23, 2019 Author Report Share Posted February 23, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 caltabos Posted February 23, 2019 Author Report Share Posted February 23, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 khain.dev Posted February 23, 2019 Report Share Posted February 23, 2019 PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pMember] == 3 ( uite asa ca exemplu ) Quote Link to comment Share on other sites More sharing options...
0 khain.dev Posted February 23, 2019 Report Share Posted February 23, 2019 aici pui in loc de 1 0 1 Quote Link to comment Share on other sites More sharing options...
0 caltabos Posted February 23, 2019 Author Report Share Posted February 23, 2019 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 Quote Link to comment Share on other sites More sharing options...
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;
}
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.