17.03.2011, 08:33
(
Последний раз редактировалось Haydz; 02.08.2011 в 11:47.
)
.....
//create the group
new RegisteredPlayers = Group_Create("registeredplayers");
COMMAND:register(playerid, params[])
{
//blahbloodyblah
//set the player to the group
Group_SetPlayer( RegisteredPlayers, playerid, true );
return 1;
}
//then where you need the loop
foreach( Group( RegisteredPlayers ), i )
{
//will only loop through players in the
//"registered players" group
}