Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "fight" )
- {
- if ( status[ player.ID ].gungame == true ) ErrorMessage( "You cannot use this command while in fight.", player );
- else if ( status[ player.ID ].Duel == true ) ErrorMessage( "You cannot use this command while in fight.", player );
- else if ( !player.IsSpawned ) ErrorMessage( "You haven't spawned yet.", player );
- else if ( !text ) ErrorMessage( "Syntax - /"+cmd+" <Weapon Fight Name>, use /fights for available weapon fights", player );
- else{
- switch( text.tolower() )
- {
- case "python":
- if ( status[ player.ID ].python == true ) ErrorMessage( "You are already in a fight, do /exitfight to leave.", player );
- else if ( status[ player.ID ].python2 == true ) ErrorMessage( "You are already in a fight, do /exitfight to leave.", player );
- else{
- local pos = player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z;
- status[ player.ID ].FightLastPos = pos;
- 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);
- status[ player.ID ].lastwep = g_w0 + " " + g_w1 + " " + g_w2 + " " + g_w3 + " " + g_w4 + " " + g_w5 + " " + g_w6 + " " + g_w7 + " " + g_w8;
- ServerMessage( LOWRED+"[PYTHON-FIGHT]: " + player + " has joined PYTHON FIGHT! /fight python" );
- player.Disarm();
- player.GiveWeapon( 18, 999 );
- Fightlocs( player );
- player.World = 100;
- status[ player.ID ].python = true;
- player.Pos = Vector(-877.271, -185.832, 10.8607);
- }
- break;
- case "python2":
- if ( status[ player.ID ].python2 == true ) ErrorMessage( "You're already in python2 fight, do /exitfight to leave.", player );
- else{
- local pos = player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z;
- status[ player.ID ].FightLastPos = pos;
- 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);
- status[ player.ID ].lastwep = g_w0 + " " + g_w1 + " " + g_w2 + " " + g_w3 + " " + g_w4 + " " + g_w5 + " " + g_w6 + " " + g_w7 + " " + g_w8;
- ServerMessage( LOWRED+"[PYTHON2-FIGHT]: " + player + " has joined PYTHON2 FIGHT! /fight python2" );
- player.Disarm();
- player.GiveWeapon( 18, 999 );
- Fightlocs( player );
- player.World = 100;
- status[ player.ID ].python2 = true;
- }
- break;
- default: ErrorMessage( "Invalid arena name use /fights for available arena's.", player ); break;
- }
- }
- }
Add Comment
Please, Sign In to add comment