A mod elejére new players;
OnPlayerConnect alá: players++;
OnPlayerDisconnect alá: players--;
És így :
#include <a_samp>
new players;
public OnPlayerConnect(playerid)
{
players++;
new str[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),\"%s Csatlakozott a szerverre || Playerek [%d / 30 ]\",name,players);
SendClientMessageToAll(-1,str);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
players--;
new str[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),\"%s Le Csatlakozott a szerverrõl || Playerek [%d / 30 ]\",name,players);
SendClientMessageToAll(-1,str);
return 1;
}
Remélem jó lesz mert siettem