Subdomain Posts
C++ | 430 days ago
None | 431 days ago
Recent Posts
None | 6 sec ago
None | 25 sec ago
Java | 30 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
Pic 16 | 2 min ago
None | 2 min ago
None | 2 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By MaRcOsWeB on the 20th of Sep 2008 04:45:28 AM Download | Raw | Embed | Report
  1. //----------------------------------------------------------------------------//
  2. #include <a_samp>
  3. //----------------------------------------------------------------------------//
  4. #if defined FILTERSCRIPT
  5. #define GRIS 0xAFAFAFAA
  6. //----------------------------------------------------------------------------//
  7. public OnFilterScriptInit()
  8. {
  9.         print("\n--------------------------------------");
  10.         print(" [TUTORIAL]Mensajes de estado (al entrar y salir)");
  11.         print("--------------------------------------\n");
  12.         return 1;
  13. }
  14. //----------------------------------------------------------------------------//
  15. public OnFilterScriptExit()
  16. {
  17.         return 1;
  18. }
  19. //----------------------------------------------------------------------------//
  20. #else
  21. //----------------------------------------------------------------------------//
  22. main()
  23. {
  24.         print("\n----------------------------------");
  25.         print(" [TUTORIAL]Mensajes de estado (al entrar y salir)");
  26.         print("----------------------------------\n");
  27. }
  28. //----------------------------------------------------------------------------//
  29. #endif
  30. //----------------------------------------------------------------------------//
  31. public OnPlayerConnect(playerid) {
  32.    new string[256];
  33.    new JugadorN[MAX_PLAYER_NAME];
  34.    format(string, sizeof(string), "%s Se ha conectado al servidor",JugadorN);
  35.    SendClientMessageToAll(GRIS,string);
  36.    return 1; }
  37. //----------------------------------------------------------------------------//
  38. public OnPlayerDisconnect(playerid, reason){
  39.    new string[256];
  40.    new Jnombre[MAX_PLAYER_NAME];
  41.    GetPlayerName(playerid,Jnombre,256);
  42.    format(string, sizeof(string), "%s Se ha desconectado del servidor",Jnombre);
  43.    SendClientMessageToAll(GRIS,string);
  44.    return 1;}
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: