[pawn]new cvar; a gm tetejére
public onplayer connect(playerid)
{
cvar++;
new str[256];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,128,\"%s csatlakozot a szerverhezz [Online:%i/Slot:%i]\",cvar,GetMaxPlayers());
SendClientMessageToAll(szin,str);
return 1;
}
public onplayerdisconnect(playerid,reason)
{
cvar--;
return 1;
}
[/pawn]