14.01.2015, 20:46
there is it but ... this is working on other cmd-s / scripts
for example :
format(mes, sizeof(mes), "(POLICE RADIO) %s[%d] BlaBla Text Hidden.", Name2(playerid),tmp);
DepartmentChat(CINFO,mes);
==============
BTW THERE IS IT ========
stock DepartmentChat(color,mess[],Medic = 1,DOD = 1, DOI = 1, FBI = 1,Mayor = 1)
{
for(new idxf=0, i=0; idxf<cvector_size(players); idxf++)
{
i = cvector_get(players, idxf);
if(!IsPlayerConnected(i) || !pData[i][pFraction] || pData[i][pJail]) continue;
new fraction = pData[i][pFraction];
if(Medic && fraction == 2 || DOD && fraction == 8 || DOI && fraction == 9 || FBI && fraction == 11 || Mayor && fraction == 15)
{
SendClientMessage(i,color,mess);
}
}
}
for example :
format(mes, sizeof(mes), "(POLICE RADIO) %s[%d] BlaBla Text Hidden.", Name2(playerid),tmp);
DepartmentChat(CINFO,mes);
==============
BTW THERE IS IT ========
stock DepartmentChat(color,mess[],Medic = 1,DOD = 1, DOI = 1, FBI = 1,Mayor = 1)
{
for(new idxf=0, i=0; idxf<cvector_size(players); idxf++)
{
i = cvector_get(players, idxf);
if(!IsPlayerConnected(i) || !pData[i][pFraction] || pData[i][pJail]) continue;
new fraction = pData[i][pFraction];
if(Medic && fraction == 2 || DOD && fraction == 8 || DOI && fraction == 9 || FBI && fraction == 11 || Mayor && fraction == 15)
{
SendClientMessage(i,color,mess);
}
}
}