Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "joingungame" )
- {
- if ( status[ player.ID ].gungame == true ) ErrorMessage( "You're already in gungame, do /exitgungame to leave.", player );
- else if ( status[ player.ID ].Duel == true ) ErrorMessage( "You cannot use this command while in gungame.", player );
- else if ( LMSS[ player.ID ].IsLMS == true ) ErrorMessage("You cannot use this command while in gungame.", player );
- else if ( !player.IsSpawned ) ErrorMessage( "You haven't spawned yet.", player );
- else {
- local pos = player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z;
- status[ player.ID ].Lastpos = 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( "[GUNGAME]: "+RED+"" + player + " "+WHITE+"has joined the Gun Game Battle! Use "+RED+"/gungame "+WHITE+"to join" );
- SendMessage("Welcome to the GUN GAME MODE BATTLE here you get random weapons on each spawn.", player );
- gungamefuncs( player );
- player.Disarm();
- gungamerandomweps( player );
- status[ player.ID ].gungame = true;
- }
- }
Add Comment
Please, Sign In to add comment