Advertisement
Guest User

Códigos Úteis

a guest
Sep 16th, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.49 KB | None | 0 0
  1. no topo do gm:
  2. new jogadoresOnline = 0;
  3.  
  4. no public OnPlayerConnect(playerid):
  5. jogadoresOnline++;
  6.  
  7. no public OnPlayerCommandText(playerid, cmdtext[]):
  8. //
  9.     new string[256];
  10.     if (strcmp("/online", cmdtext, true, 10) == 0)
  11.     {
  12.         format(string, sizeof(string), "Tem %d jogadores online", jogadoresOnline);
  13.         SendClientMessageToAll(0x2641FEAA, string);
  14.         return 1;
  15.     }
  16.  
  17. agora para finalizar no public OnPlayerDisconnect(playerid, reason):
  18. jogadoresOnline--;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement