Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --bottomless_clip_v1
- --Created by Sunstriker7
- --Released under the Do Whatever the Fuck You Want With It license
- --DESCRIPTION: This script sets the magazine count, grenade count, and battery of the current player's weapon every second
- api_version = "1.12.0.0"
- local game_over
- function OnScriptLoad()
- register_callback(cb["EVENT_ALIVE"],"OnPlayerIsAlive")
- register_callback(cb["EVENT_GAME_END"], "OnGameEnd")
- register_callback(cb["EVENT_GAME_START"], "OnGameStart")
- game_over = true
- end
- function OnGameStart()
- game_over = false
- end
- function OnGameEnd()
- game_over = true
- end
- function OnPlayerIsAlive(...)
- if (game_over ~= true) then
- for i = 1,16 do
- if player_present(i) and player_alive(i) then
- execute_command("mag " .. i .. " 600")
- execute_command("nades " .. i .. " 4")
- execute_command("battery " .. i .. " 100")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement