MuhammadZeeshan

fgggggg

Jun 5th, 2017
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. function onPlayerJoin( player )
  2. {
  3.  
  4. player.PlaySound( 50009 );
  5.  
  6. //EchoMessage( "[JOIN] - "+ICOL_LBLUE+""+player.Name+" has joined the server" );
  7. //===loads the player info.========
  8.  
  9. status[ player.ID ] = PlayerStats();
  10. pinfo[ player.ID ] = PlayerInfo();
  11. playerinfo( player );
  12.  
  13. //==== Total time played ====
  14. status[ player.ID ].ptime2 = time();
  15.  
  16. //===== bstats and wstats functions =======//
  17. warray[ player.ID ] = WClass();
  18. barray[ player.ID ] = BClass();
  19. Wepstats( player );
  20. Bodystats( player );
  21.  
  22. // ===== vip functions ====
  23. VIPCheck( player );
  24.  
  25. //===== Kick players who try to use None nickname =======
  26. if ( player.Name == "None" )
  27. {
  28. SendMessage(RED+"Trying to bug abuse you noobish, get the fuck outta from here.", player );
  29. player.Kick();
  30. }
  31.  
  32. //==Annouces player info===========
  33.  
  34. local Country = geoip_country_name_by_addr(player.IP);
  35. if ( Country == null )
  36. {
  37. ServerMessage( "[JOIN] - "+RED+""+player.Name+" "+WHITE+"is connecting from [#FFFF81][ Unknown ]" );
  38. EchoMessage( ICOL_GREY+"[JOIN] "+ICOL_GREEN+"[" + player.ID + "] "+ICOL_LBLUE+"- "+player.Name+" is connecting from "+ICOL_BROWN+" [ Unknown ]" );
  39. }
  40. else
  41. {
  42. ServerMessage( "[JOIN] - "+RED+""+player.Name+" "+WHITE+"is connecting from [#FFFF81][ "+Country+" ], [" + geoip_country_code_by_addr(player.IP) + "]" );
  43. EchoMessage( ICOL_GREY+"[JOIN] "+ICOL_GREEN+"[" + player.ID + "] "+ICOL_LBLUE+"- "+player.Name+" is connecting from "+ICOL_BROWN+" [ "+Country+" ], [" + geoip_country_code_by_addr(player.IP) + "]" );
  44. }
  45.  
  46. //=== create sprite when players join===
  47. Stream.StartWrite( );
  48. Stream.WriteInt( 5 );
  49. Stream.SendStream( player );
  50.  
  51. //===loads the last join T.========
  52.  
  53. addjoin( player );
  54.  
  55. //==Creates TextDraws =============
  56.  
  57. ///CreateTextDraws( player );
  58.  
  59. //====Clan Stats Functions=========
  60.  
  61. local clan = GetTag( player.Name );
  62. if ( clan )
  63. {
  64. if ( IsClanRegister( clan.tolower() ) ) MessagePlayer( "", player );
  65. else MessagePlayer( "", player );
  66. }
  67.  
  68. //======= Alias functions ========
  69. AddAlias( player );
  70. //==== ban functions ====
  71. if ( CheckBan( player ) == 1 ) Kick( player, "Server", "banned from server" );
  72.  
  73. //========= LMS functions =======
  74. LMSS[ player.ID ] <- LMSI();
  75. }
Add Comment
Please, Sign In to add comment