Offline checking with DINI
#1

Hello,
i have this command (/fon)
this is what it looks like:
pawn Код:
COMMAND:fon(playerid)
{
    if(PlayerInfo[playerid][playerteam] == CIV || PlayerInfo[playerid][playerteam] == 0) return SendClientError(playerid, "You cannot use this as civilian.");
    format(iStr, sizeof(iStr), "Online %s members:", PlayerInfo[playerid][PTeamName]);
    SendClientMessage(playerid, COLOR_HELPEROOC, iStr);
    new runs[50], string[50];
    for(new iii = 0;iii < MAX_PLAYERS; iii++)
    {
        if(iAFKp[iii] > 3)
        {
            format(string, sizeof(string)," {ff0000}[AFK] ");
        }
        else
        {
            format(string, sizeof(string),"");
        }
        if(!IsPlayerConnected(iii)) continue;
        if(PlayerInfo[iii][playerteam] == PlayerInfo[playerid][playerteam])
        {
            if(PlayerInfo[iii][playerteam] == SDC) format(runs, sizeof(runs), "[Runs: %d]", PlayerInfo[iii][totalruns]); else myStrcpy(runs, " ");
            format(iStr, sizeof(iStr),"* %s [%d] [Rank: %s] [Tier: %d] [Payment: Ђ%s] %s%s %",RPName(iii),iii,PlayerInfo[iii][rankname],PlayerInfo[iii][ranklvl], number_format(PlayerInfo[iii][fpay]), string, runs);
            SendClientMessage(playerid,COLOR_WHITE,iStr);
        }
    }
    return 1;
}
This checks if someone is in a playerteam, but only if he is online.
I want to make a command called /foff, which checks the playerteam for ONLY the offline player.
I use dini.
Someone can help me please?
Reply


Messages In This Thread
Offline checking with DINI - by justjamie - 11.05.2016, 09:37
Re: Offline checking with DINI - by justjamie - 11.05.2016, 10:14
Re: Offline checking with DINI - by BloodyRP - 11.05.2016, 10:21
Re: Offline checking with DINI - by justjamie - 11.05.2016, 10:26
Re: Offline checking with DINI - by BloodyRP - 11.05.2016, 10:29
Re: Offline checking with DINI - by Dayrion - 11.05.2016, 10:35
Re: Offline checking with DINI - by justjamie - 11.05.2016, 10:45
Re: Offline checking with DINI - by Dayrion - 11.05.2016, 10:58
Re: Offline checking with DINI - by justjamie - 11.05.2016, 11:00
Re: Offline checking with DINI - by Hiddos - 11.05.2016, 11:14

Forum Jump:


Users browsing this thread: 1 Guest(s)