Advertisement
Guest User

Untitled

a guest
Jan 20th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. function onPlayerSpawn( pPlayer, Spawned )
  2. {
  3. if ( pPlayer.Ping > 800 )
  4. {
  5. EchoMessage( ICOL_PINK + pPlayer.Name + " has been auto-kicked by lolmortuary!:D (Reason: High ping)" );
  6. Message( pPlayer.Name + " has been auto-kicked by lolmortuary!:D (Reason: High ping)", Colour( 255, 255, 0 ) );
  7. MessagePlayer( "*PM* Your ping is too high to join this server. Please stop downloading", pPlayer, Colour( 0, 255, 0 ) );
  8. KickPlayer( pPlayer );
  9. }
  10. FadeCamera( pPlayer, 0.0, true, 0, 0, 0 );
  11. pPlayer.Armour = 100;
  12. pPlayer.SetWeapon( 12, 1 );
  13. pPlayer.SetWeapon( 11, 9999 );
  14. pPlayer.SetWeapon( 10, 9999 );
  15. pPlayer.SetWeapon( 9, 9999 );
  16. pPlayer.SetWeapon( 8, 9999 );
  17. pPlayer.SetWeapon( 7, 9999 );
  18. pPlayer.SetWeapon( 6, 9999 );
  19. pPlayer.SetWeapon( 5, 9999 );
  20. pPlayer.SetWeapon( 4, 9999 );
  21. pPlayer.SetWeapon( 3, 9999 );
  22. pPlayer.SetWeapon( 2, 9999 );
  23. pPlayer.SetWeapon( 1 );
  24. pPlayer.SetWeapon( 0 );
  25. local pos = pPlayer.Pos;
  26. local szDistrict = GetDistrictName( pos.x, pos.y );
  27. MessagePlayer( "*PM* You spawned at: " + szDistrict + " (Skin: " + pPlayer.Skin + ")", pPlayer, Colour( 0, 255, 0 ) );
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. ERROR:
  39.  
  40. <17/01/2013 - 23:40:42>
  41. AN ERROR HAS OCCURED ['self' is not an instance of Player]
  42.  
  43. <17/01/2013 - 23:40:42>
  44. CALLSTACK
  45.  
  46. <17/01/2013 - 23:40:42> *FUNCTION [onPlayerSpawn()] Scripts/lm/lm.nut line [397]
  47.  
  48. <17/01/2013 - 23:40:42>
  49. LOCALS
  50.  
  51. <17/01/2013 - 23:40:42> [szDistrict] "Francis International Airport"
  52.  
  53. <17/01/2013 - 23:40:42> [pos] INSTANCE
  54.  
  55. <17/01/2013 - 23:40:42> [Spawned] INSTANCE
  56.  
  57. <17/01/2013 - 23:40:42> [pPlayer] INSTANCE
  58.  
  59. <17/01/2013 - 23:40:42> [this] TABLE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement