MuhammadZeeshan

fgafasfasff

Jun 7th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. else if ( cmd == "fight" )
  2. {
  3. if ( status[ player.ID ].gungame == true ) ErrorMessage( "You cannot use this command while in fight.", player );
  4. else if ( status[ player.ID ].Duel == true ) ErrorMessage( "You cannot use this command while in fight.", player );
  5. else if ( !player.IsSpawned ) ErrorMessage( "You haven't spawned yet.", player );
  6. else if ( !text ) ErrorMessage( "Syntax - /"+cmd+" <Weapon Fight Name>, use /fights for available weapon fights", player );
  7. else{
  8. switch( text.tolower() )
  9. {
  10. case "python":
  11. if ( status[ player.ID ].python == true ) ErrorMessage( "You're already in python fight, do /exitfight to leave.", player );
  12. else if ( status[ player.ID ].python2 == true ) ErrorMessage( "You cannot use this cmd while in python2, do /exitfight to leave.", player );
  13. else{
  14. local pos = player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z;
  15. status[ player.ID ].Lastpos = pos;
  16. local g_w0 = player.GetWeaponAtSlot(0), g_w1 = player.GetWeaponAtSlot(1), g_w2 = player.GetWeaponAtSlot(2), g_w3 = player.GetWeaponAtSlot(3), g_w4 = player.GetWeaponAtSlot(4), g_w5 = player.GetWeaponAtSlot(5), g_w6 = player.GetWeaponAtSlot(6), g_w7 = player.GetWeaponAtSlot(7), g_w8 = player.GetWeaponAtSlot(8);
  17. status[ player.ID ].lastwep = g_w0 + " " + g_w1 + " " + g_w2 + " " + g_w3 + " " + g_w4 + " " + g_w5 + " " + g_w6 + " " + g_w7 + " " + g_w8;
  18. ServerMessage( LOWRED+"[PYTHON-FIGHT]: " + player + " has joined PYTHON FIGHT! /fight python" );
  19. player.Disarm();
  20. player.GiveWeapon( 18, 999 );
  21. Fightlocs( player );
  22. player.World = 100;
  23. status[ player.ID ].python = true;
  24. player.Pos = Vector(-877.271, -185.832, 10.8607);
  25. }
  26. break;
  27.  
  28. case "python2":
  29. if ( status[ player.ID ].python2 == true ) ErrorMessage( "You're already in python2 fight, do /exitfight to leave.", player );
  30. else{
  31. local pos = player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z;
  32. status[ player.ID ].Lastpos = pos;
  33. local g_w0 = player.GetWeaponAtSlot(0), g_w1 = player.GetWeaponAtSlot(1), g_w2 = player.GetWeaponAtSlot(2), g_w3 = player.GetWeaponAtSlot(3), g_w4 = player.GetWeaponAtSlot(4), g_w5 = player.GetWeaponAtSlot(5), g_w6 = player.GetWeaponAtSlot(6), g_w7 = player.GetWeaponAtSlot(7), g_w8 = player.GetWeaponAtSlot(8);
  34. status[ player.ID ].lastwep = g_w0 + " " + g_w1 + " " + g_w2 + " " + g_w3 + " " + g_w4 + " " + g_w5 + " " + g_w6 + " " + g_w7 + " " + g_w8;
  35. ServerMessage( LOWRED+"[PYTHON2-FIGHT]: " + player + " has joined PYTHON2 FIGHT! /fight python2" );
  36. player.Disarm();
  37. player.GiveWeapon( 18, 999 );
  38. Fightlocs( player );
  39. player.World = 100;
  40. status[ player.ID ].python2 = true;
  41. }
  42. break;
  43. }
  44. }
  45. }
Add Comment
Please, Sign In to add comment