daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Aug 18th, 2010 163 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //In cima
  2. new Text:players;
  3. new Playerconnessi = 0;
  4.  
  5.  
  6. //OnGamemodeInit
  7. players= TextDrawCreate(x, y, "Giocatori connessi: 0");//al posto di x e y mettete la posizione della textdraw nello schermo
  8. TextDrawColor(players, colore);//al posto di colore mettete il colore
  9. //Se volete una textdraw piĆ¹ precisa e decorata, utilizzate un editor
  10.  
  11.  
  12. //OnPlayerConnect
  13. new string[50];
  14. Playerconnessi ++;
  15. format(string,"Giocatori connessi: %d",Playerconnessi);
  16. TextDrawSetString(players,string);
  17.  
  18.  
  19. //OnPlayerDisconnect
  20. new string[50];
  21. Playerconnessi --;
  22. format(string,"Giocatori connessi: %d",Playerconnessi);
  23. TextDrawSetString(players,string);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top