SendClientMessage for Dialogue
#3

Try this:
pawn Код:
if(!strcmp(cmd, "/sought", true))
    {
        if(!IsAMilitares(playerid)) return SendClientMessage(playerid, COLOR_GRAD1, "ERROR: Restricted access only to military.");
        if(OnDuty[playerid] != 1 && GetPlayerOrg(playerid) != 2) return SendClientMessage(playerid, COLOR_GRAD1, "ERROR: You do not hit your card.");
        new fstr[1000], tmpstr[50];
        strcat(fstr, "{FFFF00}Wanted Government:{FFFFFF}\n");
        for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            if(!AccountData[i][pWantedLevel]) continue;
            format(tmpstr, sizeof(tmpstr), "\n%s - Search Level: %d", GetPlayerNameRP(i), AccountData[i][pWantedLevel]);
            if(strcat(fstr, tmpstr) >= sizeof(fstr)) break;
        }
        return 1;
    }
Reply


Messages In This Thread
SendClientMessage for Dialogue - by JoshNudock - 26.08.2015, 11:48
Re: SendClientMessage for Dialogue - by jlalt - 26.08.2015, 12:01
Re: SendClientMessage for Dialogue - by Threshold - 26.08.2015, 12:37

Forum Jump:


Users browsing this thread: 2 Guest(s)