Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onPlayerSpawn( pPlayer, Spawned )
- {
- if ( pPlayer.Ping > 800 )
- {
- EchoMessage( ICOL_PINK + pPlayer.Name + " has been auto-kicked by lolmortuary!:D (Reason: High ping)" );
- Message( pPlayer.Name + " has been auto-kicked by lolmortuary!:D (Reason: High ping)", Colour( 255, 255, 0 ) );
- MessagePlayer( "*PM* Your ping is too high to join this server. Please stop downloading", pPlayer, Colour( 0, 255, 0 ) );
- KickPlayer( pPlayer );
- }
- FadeCamera( pPlayer, 0.0, true, 0, 0, 0 );
- pPlayer.Armour = 100;
- pPlayer.SetWeapon( 12, 1 );
- pPlayer.SetWeapon( 11, 9999 );
- pPlayer.SetWeapon( 10, 9999 );
- pPlayer.SetWeapon( 9, 9999 );
- pPlayer.SetWeapon( 8, 9999 );
- pPlayer.SetWeapon( 7, 9999 );
- pPlayer.SetWeapon( 6, 9999 );
- pPlayer.SetWeapon( 5, 9999 );
- pPlayer.SetWeapon( 4, 9999 );
- pPlayer.SetWeapon( 3, 9999 );
- pPlayer.SetWeapon( 2, 9999 );
- pPlayer.SetWeapon( 1 );
- pPlayer.SetWeapon( 0 );
- local pos = pPlayer.Pos;
- local szDistrict = GetDistrictName( pos.x, pos.y );
- MessagePlayer( "*PM* You spawned at: " + szDistrict + " (Skin: " + pPlayer.Skin + ")", pPlayer, Colour( 0, 255, 0 ) );
- }
- ERROR:
- <17/01/2013 - 23:40:42>
- AN ERROR HAS OCCURED ['self' is not an instance of Player]
- <17/01/2013 - 23:40:42>
- CALLSTACK
- <17/01/2013 - 23:40:42> *FUNCTION [onPlayerSpawn()] Scripts/lm/lm.nut line [397]
- <17/01/2013 - 23:40:42>
- LOCALS
- <17/01/2013 - 23:40:42> [szDistrict] "Francis International Airport"
- <17/01/2013 - 23:40:42> [pos] INSTANCE
- <17/01/2013 - 23:40:42> [Spawned] INSTANCE
- <17/01/2013 - 23:40:42> [pPlayer] INSTANCE
- <17/01/2013 - 23:40:42> [this] TABLE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement