Meh, wanna keep this section alive, dunno what to post 
KickAllExceptAdmins()
An example on how to use looping:
Simple Join Messages
Again, I guess it can be used as an example.
Dunno what else

KickAllExceptAdmins()
An example on how to use looping:
Code:
stock KickAllExceptAdmins()
{
for(new i = 0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i)
{
if(!IsPlayerAdmin(i))
{
Kick(i);
}
}
}
}Simple Join Messages
Again, I guess it can be used as an example.
Code:
public OnPlayerConnect(playerid)
{
new gConnectname[255],str[256];
GetPlayerName(playerid, gConnectname, 255);
format(str,256,"*** %s (ID:%d) has joined the server.",gConnectname,playerid);
SendClientMessageToAll(0xAFAFAFAA,str);
return true;
}
public OnPlayerDisconnect(playerid,reason)
{
new str[256],gConnectname[255];
GetPlayerName(playerid,gConnectname,255);
switch(reason)
{
case 0: format(str,256,"%s has Timed Out!",gConnectname);
case 1: format(str,256,"%s has left the server.",gConnectname);
case 2: format(str,256,"%s has been kicked out the server.",gConnectname);
}
SendClientMessageToAll(0xAFAFAFAA,str);
return true;
}Dunno what else