18.01.2016, 09:40
Hey,
I have a group, long story but I want to see a list of online members. But they must only appear if they use some skins, how (multiply skins)?
Let's just say that we will use skin ID 0, 1, 2 and 3 now
I have a group, long story but I want to see a list of online members. But they must only appear if they use some skins, how (multiply skins)?
Let's just say that we will use skin ID 0, 1, 2 and 3 now
PHP код:
COMMAND:ulist(playerid, params[])
{
new str[256], name[MAX_PLAYER_NAME], count = 0;
SendClientMessage(playerid, UNITED_COLOR, "***LSPD United Members Online***");
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
if(united[i] > 0)
{
GetPlayerName(i, name, sizeof(name));
format(str, 256, "%s %s(%d)", GetUnitedFromLevel(i), name, i);
SendClientMessage(playerid, UNITED_COLOR, str);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid, UNITED_COLOR, "There are currently no LSPD United members online.");
}
return 1;
}