Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Score Limit Variable for SAPP
- -- by H® Shaft
- -- This is a sample script ONLY - Not a game play script!
- -- Intended for scripters who may have a need to determine what the score limit is during a game or game-type.
- -- not to be confused with the scorelimit "command": such as: execute_command("scorelimit 10") which is used to SET the score limit
- -- Score Limit Variable could be useful to announce the progress of a game and scores, such as;
- -- "H® Shaft needs 1 more kill to win the game!" (limit - score = remainder), or
- -- "Blue Team needs 1 more flag capture to win the game!"
- api_version = "1.9.0.0"
- function OnScriptLoad()
- register_callback(cb['EVENT_GAME_START'], "OnNewGame")
- network_struct = read_dword(sig_scan("F3ABA1????????BA????????C740??????????E8????????668B0D") + 3)
- end
- function OnNewGame()
- score_limit = tonumber(read_byte(network_struct + 0x164))
- for i = 1,16 do
- if player_present(i) then
- say(i, "The score limit is: " .. score_limit)
- end
- end
- cprint("The score limit is: " .. score_limit)
- end
- function OnError(Message)
- print(debug.traceback())
- end
- -- Created by H® Shaft
- -- Visit http://halorace.org/forum/index.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement