Custom radio message problem
#2

Very hard to understand what are you saying but i think you want this

pawn Код:
CMD:dr(playerid, params[])
{
    new string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!IsACop(playerid) && !IsAGov(playerid) && !IsAHp(playerid) && !IsAFBI(playerid) && !IsALSEMS(playerid) && !IsAHSF(playerid) && !IsASWAT(playerid) && !IsASATF(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an LSPD/Government/FBI/LSEMS/HSF Officer.");
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dr [text]");
    //if(AntiAdv(playerid, params)) return 1;
    if(PlayerInfo[playerid][pFacDiv]){format(string, sizeof(string), "** Dispatch: %s", params);}
    else {format(string, sizeof(string), "** Dispatch: %s", params);}
    SendPlayerFactionMessage(playerid, 0, COLOR_RADIO, string);
    if(IsACop(playerid)) Log("logs/SAPD.log", string);
    else if(IsAGov(playerid)) Log ("logs/GOV.log", string);
    else if(IsAFBI(playerid)) Log ("logs/FBI.log", string);
    else if(IsALSEMS(playerid)) Log ("logs/LSEMS.log", string);
    else if(IsAHSF(playerid)) Log ("logs/HSF.log", string);
    else if(IsASWAT(playerid)) Log ("logs/SWAT.log", string);
    else if(IsASATF(playerid)) Log ("logs/SATF.log", string);
    return 1;
}
Reply


Messages In This Thread
Custom radio message problem - by CalvinC - 22.11.2014, 15:36
Re: Custom radio message problem - by Ryz - 22.11.2014, 15:48
Re: Custom radio message problem - by Capua - 22.11.2014, 15:50
Re: Custom radio message problem - by CalvinC - 22.11.2014, 16:09

Forum Jump:


Users browsing this thread: 2 Guest(s)