mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-08 20:12:11 +00:00
Misc fixes
- Prevent players from falling through the barrier before the match starts - Prevent the server from crashing if you try to start a non-existant map
This commit is contained in:
parent
1b4903fe22
commit
2c09090a91
4 changed files with 61 additions and 32 deletions
|
|
@ -13,7 +13,12 @@ core.register_chatcommand("start", {
|
|||
return false, "-!- Match is already in progress!"
|
||||
end
|
||||
|
||||
start_match(param)
|
||||
local sucess = start_match(param)
|
||||
|
||||
if map_data == "nope :(" then
|
||||
return false, "-!- Map not found!"
|
||||
end
|
||||
|
||||
return true, "-!- Match started!"
|
||||
end
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue