Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Untitled

By: a guest on Feb 9th, 2010  |  syntax: None  |  size: 1.38 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse
This paste has a previous version, view the difference. Copied
  1. #include <a_samp>
  2.  
  3. #define WHITE 0xFFFFFFFF
  4. #define COLOR_GRAD1 0xB4B5B7FF
  5. #define COLOR_GRAD2 0xBFC0C2FF
  6. #define COLOR_GRAD3 0xCBCCCEFF
  7. #define COLOR_GRAD4 0xD8D8D8FF
  8. #define COLOR_GRAD5 0xE3E3E3FF
  9. #define COLOR_GRAD6 0xF0F0F0FF
  10. #define COLOR_GREY 0xAFAFAFAA
  11. #define COLOR_ORANGE    0xF97804FF
  12. #define COLOR_GREEN 0x33AA33AA
  13. #define COLOR_RED 0xAA3333AA  // current used code and i used // for a comment
  14. #define COLOR_LIGHTRED 0xFF6347AA
  15. #define COLOR_LIGHTBLUE 0x33CCFFAA
  16. #define COLOR_LIGHTGREEN 0x9ACD32AA
  17. #define COLOR_YELLOW 0xFFFF00AA
  18. #define COLOR_YELLOW2 0xF5DEB3AA
  19. #define COLOR_WHITE 0xFFFFFFAA
  20. #define COLOR_FADE1 0xE6E6E6E6
  21. #define COLOR_FADE2 0xC8C8C8C8
  22. #define COLOR_FADE3 0xAAAAAAAA
  23. #define COLOR_FADE4 0x8C8C8C8C
  24. #define COLOR_FADE5 0x6E6E6E6E
  25. #define COLOR_PURPLE 0xC2A2DAAA
  26. #define COLOR_DBLUE 0x2641FEAA
  27. #define COLOR_ALLDEPT 0xFF8282AA
  28. #define COLOR_NEWS 0xFFA500AA
  29. #define COLOR_OOC 0xE0FFFFAA
  30.  
  31. public OnPlayerConnect(playerid)
  32. {
  33.         SendClientMessage(playerid,COLOR_RED,"Hai.") // so the player who connected (its OnPlayerConnect(playerid) ) will see this message Hai there welcome to my server in red color
  34.         SendClientMessage(playerid,COLOR_BLACK,"Welcome to my server")
  35.         SendClientMessage(playerid,COLOR_GREEN,"By: WooTh")    
  36.         return 1; //code is ended so no need for further looking so u end with this
  37. } //BRACKETS ARE REALY NESSESCARY + TABS ARE TOO