02.03.2014, 05:21
Quote:
That's a really good filterscript, I'll rep you if you gonna edit a bit the /fradio, you know.. showing the division name and the rank of the player in /fradio
|
pawn Код:
CMD:fradio(playerid, params[])
{
if(PlayerInfo[playerid][pFac])
{
new string[128];
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, -1, " USAGE: /fradio [text] - IC CHAT!");
if(FacInfo[PlayerInfo[playerid][pFac]][fColor] == 1) format(string, sizeof(string), "{FFFFFF}[RADIO][%s] %s %s: %s",DivisionName(playerid), RankName(playerid), GetName(playerid), params);
if(FacInfo[PlayerInfo[playerid][pFac]][fColor] == 2) format(string, sizeof(string),"{F81414}[RADIO][%s]%s %s: %s",DivisionName(playerid), RankName(playerid), GetName(playerid), params);
if(FacInfo[PlayerInfo[playerid][pFac]][fColor] == 3) format(string, sizeof(string), "{00FF22}[RADIO][%s] %s %s: %s",DivisionName(playerid), RankName(playerid), GetName(playerid), params);
if(FacInfo[PlayerInfo[playerid][pFac]][fColor] == 4) format(string, sizeof(string), "{00CED1}[RADIO][%s] %s %s: %s",DivisionName(playerid), RankName(playerid), GetName(playerid), params);
if(FacInfo[PlayerInfo[playerid][pFac]][fColor] == 5) format(string, sizeof(string), "{FF9900}[RADIO][%s] %s %s: %s",DivisionName(playerid), RankName(playerid), GetName(playerid), params);
if(FacInfo[PlayerInfo[playerid][pFac]][fColor] == 6) format(string, sizeof(string), "{FFFF99}[RADIO][%s] %s %s: %s",DivisionName(playerid), RankName(playerid), GetName(playerid), params);
if(FacInfo[PlayerInfo[playerid][pFac]][fColor] == 7) format(string, sizeof(string), "{CC0000}[RADIO][%s] %s %s: %s",DivisionName(playerid), RankName(playerid), GetName(playerid), params);
if(FacInfo[PlayerInfo[playerid][pFac]][fColor] == 0) format(string, sizeof(string), "{00CED1}[RADIO][%s] %s %s: %s",DivisionName(playerid), RankName(playerid), GetName(playerid), params);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pFac] == PlayerInfo[playerid][pFac])
{
SendClientMessage(i, -1, string);
}
}
}
else
{
SendClientMessage(playerid, -1, "You are not in a group/faction to use this command!");
return 1;
}
return 1;
}
Quote:
You should keep your work up mate Dynamic factions i have not seen one released on here yet but now i have.
|
You can open the .pwn and rename 'CMD:fhelp' to like CMD:factionhelp'