12.03.2011, 15:18
In another words, this is kinda like foreach?
BUT, good job on the plugin!!!
pawn Code:
#include <a_samp>
#include <foreach>
public OnPlayerConnect(playerid)
{
// now we add connected user into vector
Itter_Add(Player, playerid);//vector_push_back(USERS_ONLINE, playerid);
}
public OnPlayerDisconnect(playerid, reason)
{
Itter_Remove(Player, playerid);
}
stock KickAllPlayers() // with this we can kick all players (not recommended)
{
foreach(Player, i)//for (new i = 0 ; i < vector_size(USERS_ONLINE) ; i++)
{
Kick(i);
}
}