09.06.2012, 09:41
Hey,
my /team command won't work, it only shows the -------------------------------------
but not the members
my /team command won't work, it only shows the -------------------------------------
but not the members
pawn Код:
command(team, playerid, params[])
{
#pragma unused params
if(Player[playerid][Group] >= 1)
{
new string[128];
SendClientMessage(playerid, WHITE, "------------------------------------------------------------");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnectedEx(i) && Player[i][Group] == Player[playerid][Group] && Player[i][AdminDuty] < 1)
{
format(string, sizeof(string), "Name: %s | Rank: %d.", GetName(i), Player[i][GroupRank]);
SendClientMessage(playerid, WHITE, string);
}
}
SendClientMessage(playerid, WHITE, "------------------------------------------------------------");
}
return 1;
}