Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEvent('onClientMapStarting', true)
- addEventHandler('onClientMapStarting', getRootElement(),
- function(mapinfo)
- vgRespawnOnMapStart(mapinfo)
- end
- )
- addEvent('onClientMapStopping', true)
- addEventHandler('onClientMapStopping', getRootElement(),
- function()
- respawnEnabled = false
- end
- )
- function string.findIgnoreCase(haystack,needle)
- return string.find(string.lower(haystack),string.lower(needle),1,true)
- end
- function vgRespawnOnMapStart(mapinfo)
- if string.findIgnoreCase(mapinfo.name,"[DM]") then
- respawnEnabled = true
- end
- if string.findIgnoreCase(mapinfo.name,"[DD]") then
- respawnEnabled = false
- end
- if string.findIgnoreCase(mapinfo.name,"[HUNTER]") then
- respawnEnabled = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement