Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Zero Respawn Time
- -- by H® Shaft
- -- Sets players to zero respawn time
- -- don't edit --
- api_version = "1.8.0.0"
- game_started = false
- function OnScriptLoad()
- register_callback(cb['EVENT_GAME_START'], "OnNewGame")
- register_callback(cb['EVENT_GAME_END'], "OnGameEnd")
- register_callback(cb['EVENT_DIE'], "OnPlayerDeath")
- register_callback(cb['EVENT_JOIN'], "OnPlayerJoin")
- if get_var(0, "$gt") ~= "n/a" then
- game_started = true
- for i = 1, 16 do
- if player_present(i) then
- write_dword(get_player(i) + 0x2C, 0)
- end
- end
- else
- game_started = false
- end
- end
- function OnPlayerJoin(PlayerIndex)
- if game_started and player_present(PlayerIndex) then
- write_byte(get_player(PlayerIndex) + 0x20, 0)
- end
- end
- function OnPlayerDeath(PlayerIndex, KillerIndex)
- if game_started and player_present(PlayerIndex) then
- write_dword(get_player(PlayerIndex) + 0x2C, 0)
- end
- end
- function OnNewGame()
- game_started = true
- for i = 1, 16 do
- if player_present(i) then
- write_dword(get_player(i) + 0x2C, 0)
- end
- end
- end
- function OnGameEnd()
- game_started = false
- end
- -- Created by H® Shaft
- -- Visit Visit http://halorace.org/forum/index.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement