Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Each:Players[ MAX_PLAYERS ] ;
- public OnPlayerDisconnect(playerid) {
- if(!IsPlayerNPC(playerid)) EachRemove(Players, playerid );
- return true;
- }
- public OnPlayerConnect(playerid) {
- if(!IsPlayerNPC(playerid)) EachAdd(Players, playerid );
- return true;
- }
- public OnPlayerSpawn(playerid) {
- printf("Mais um jogador spawno, agora são: %d jogadores no nosso servidor", EachCount(Players));
- each(Players->new i) { // LOOP SUPER RAPIDO SOBRE TODOS JOGADORES CONECTADOS
- SendClientMessage(i, -1, "Mais um jogador entrou no nosso servidor !!!");
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement