Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "exitfight" )
- {
- if ( !player.IsSpawned ) ErrorMessage( "You haven't spawned yet.", player );
- player.Pos = Vector( status[ player.ID ].FightLastPos );
- status[ player.ID ].FightListPos = null;
- if ( status[ player.ID ].FightLastPos == null ) ErrorMessage( "You are not in fight zone", player );
- else
- {
- player.World = 1;
- local coord = split( status[ player.ID ].FightLastPos, " " );
- player.Pos = Vector( coord[0].tofloat(), coord[1].tofloat(), coord[2].tofloat() );
- player.Disarm();
- local args = split( status[ player.ID ].lastwep, " " );
- for (local i=0; i<8; i++)
- {
- player.GiveWeapon( args[ i ] );
- }
- if ( status[ player.ID ].python == true ) ErrorMessage( "You are not in fight zone", player );
- else
- {
- ServerMessage( LOWRED+"[PYTHON-FIGHT]: " + player + " has left PYTHON FIGHT! /exitfight" );
- status[ player.ID ].python = false;
- }
- if ( status[ player.ID ].python2 == true ) ErrorMessage( "You are not in fight zone", player );
- else
- {
- ServerMessage( LOWRED+"[PYTHON2-FIGHT]: " + player + " has left PYTHON2 FIGHT! /exitfight" );
- status[ player.ID ].python2 = false;
- }
- }
- }
Add Comment
Please, Sign In to add comment