Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- no topo do gm:
- new jogadoresOnline = 0;
- no public OnPlayerConnect(playerid):
- jogadoresOnline++;
- no public OnPlayerCommandText(playerid, cmdtext[]):
- //
- new string[256];
- if (strcmp("/online", cmdtext, true, 10) == 0)
- {
- format(string, sizeof(string), "Tem %d jogadores online", jogadoresOnline);
- SendClientMessageToAll(0x2641FEAA, string);
- return 1;
- }
- agora para finalizar no public OnPlayerDisconnect(playerid, reason):
- jogadoresOnline--;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement