Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onPlayerJoin( player )
- {
- player.PlaySound( 50009 );
- //EchoMessage( "[JOIN] - "+ICOL_LBLUE+""+player.Name+" has joined the server" );
- //===loads the player info.========
- status[ player.ID ] = PlayerStats();
- pinfo[ player.ID ] = PlayerInfo();
- playerinfo( player );
- //==== Total time played ====
- status[ player.ID ].ptime2 = time();
- //===== bstats and wstats functions =======//
- warray[ player.ID ] = WClass();
- barray[ player.ID ] = BClass();
- Wepstats( player );
- Bodystats( player );
- // ===== vip functions ====
- VIPCheck( player );
- //===== Kick players who try to use None nickname =======
- if ( player.Name == "None" )
- {
- SendMessage(RED+"Trying to bug abuse you noobish, get the fuck outta from here.", player );
- player.Kick();
- }
- //==Annouces player info===========
- local Country = geoip_country_name_by_addr(player.IP);
- if ( Country == null )
- {
- ServerMessage( "[JOIN] - "+RED+""+player.Name+" "+WHITE+"is connecting from [#FFFF81][ Unknown ]" );
- EchoMessage( ICOL_GREY+"[JOIN] "+ICOL_GREEN+"[" + player.ID + "] "+ICOL_LBLUE+"- "+player.Name+" is connecting from "+ICOL_BROWN+" [ Unknown ]" );
- }
- else
- {
- ServerMessage( "[JOIN] - "+RED+""+player.Name+" "+WHITE+"is connecting from [#FFFF81][ "+Country+" ], [" + geoip_country_code_by_addr(player.IP) + "]" );
- 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) + "]" );
- }
- //=== create sprite when players join===
- Stream.StartWrite( );
- Stream.WriteInt( 5 );
- Stream.SendStream( player );
- //===loads the last join T.========
- addjoin( player );
- //==Creates TextDraws =============
- ///CreateTextDraws( player );
- //====Clan Stats Functions=========
- local clan = GetTag( player.Name );
- if ( clan )
- {
- if ( IsClanRegister( clan.tolower() ) ) MessagePlayer( "", player );
- else MessagePlayer( "", player );
- }
- //======= Alias functions ========
- AddAlias( player );
- //==== ban functions ====
- if ( CheckBan( player ) == 1 ) Kick( player, "Server", "banned from server" );
- //========= LMS functions =======
- LMSS[ player.ID ] <- LMSI();
- }
Add Comment
Please, Sign In to add comment