MuhammadZeeshan

ffasdfasfasasffa

Jun 7th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. else if ( cmd == "exitfight" )
  2. {
  3. if ( !player.IsSpawned ) ErrorMessage( "You haven't spawned yet.", player );
  4. player.Pos = Vector( status[ player.ID ].FightLastPos );
  5. status[ player.ID ].FightListPos = null;
  6. if ( status[ player.ID ].FightLastPos == null ) ErrorMessage( "You are not in fight zone", player );
  7. else
  8. {
  9. player.World = 1;
  10. local coord = split( status[ player.ID ].FightLastPos, " " );
  11. player.Pos = Vector( coord[0].tofloat(), coord[1].tofloat(), coord[2].tofloat() );
  12. player.Disarm();
  13. local args = split( status[ player.ID ].lastwep, " " );
  14. for (local i=0; i<8; i++)
  15. {
  16. player.GiveWeapon( args[ i ] );
  17. }
  18. if ( status[ player.ID ].python == true ) ErrorMessage( "You are not in fight zone", player );
  19. else
  20. {
  21. ServerMessage( LOWRED+"[PYTHON-FIGHT]: " + player + " has left PYTHON FIGHT! /exitfight" );
  22. status[ player.ID ].python = false;
  23. }
  24. if ( status[ player.ID ].python2 == true ) ErrorMessage( "You are not in fight zone", player );
  25. else
  26. {
  27. ServerMessage( LOWRED+"[PYTHON2-FIGHT]: " + player + " has left PYTHON2 FIGHT! /exitfight" );
  28. status[ player.ID ].python2 = false;
  29. }
  30. }
  31. }
Add Comment
Please, Sign In to add comment