11.05.2016, 09:37
Hello,
i have this command (/fon)
this is what it looks like:
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?
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;
}
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?