MuhammadZeeshan

sad

Dec 8th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. else if ( cmd == "joingungame" )
  2. {
  3. if ( status[ player.ID ].gungame == true ) ErrorMessage( "You're already in gungame, do /exitgungame to leave.", player );
  4. else if ( status[ player.ID ].Duel == true ) ErrorMessage( "You cannot use this command while in gungame.", player );
  5. else if ( LMSS[ player.ID ].IsLMS == true ) ErrorMessage("You cannot use this command while in gungame.", player );
  6. else if ( !player.IsSpawned ) ErrorMessage( "You haven't spawned yet.", player );
  7. else {
  8. local pos = player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z;
  9. status[ player.ID ].Lastpos = pos;
  10. 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);
  11. status[ player.ID ].lastwep = g_w0 + " " + g_w1 + " " + g_w2 + " " + g_w3 + " " + g_w4 + " " + g_w5 + " " + g_w6 + " " + g_w7 + " " + g_w8;
  12. ServerMessage( "[GUNGAME]: "+RED+"" + player + " "+WHITE+"has joined the Gun Game Battle! Use "+RED+"/gungame "+WHITE+"to join" );
  13. SendMessage("Welcome to the GUN GAME MODE BATTLE here you get random weapons on each spawn.", player );
  14. gungamefuncs( player );
  15. player.Disarm();
  16. gungamerandomweps( player );
  17. status[ player.ID ].gungame = true;
  18. }
  19. }
Add Comment
Please, Sign In to add comment