1. Because it has only been 1 day and most of us have lives outside of this forum.
2. Your post is very vague on what you want, you said you wanted a spawn protect mod, which you posted 3 of them, 1 of them you said doesn't work the way you wanted but didn't say how it is different. The second one all you said was had bugs but nothing about them. And then you mentioned you liked the one in admin pro, so why don't you just it, it doesn't need to be split from the rest.
You could always use the search bar.
If you want a spawn protect mod suited to how you want it, then I suggest making your own, with the reborns spawn event it makes it so much easier, just register the event with your script, apply no damage to the player and add a light. Have a while loop with timer and if it expires or thr player shoots then disable the protection(set player take damage) and your done.
When I get home from work I might consider making a very simple one like the one I outlined about, but it's a good learning curve to atleast attempt it yourself first.
Try this:
Save as whatever you like just remember to change it in the script below where i mentioned to change it.
And add it to your dmprecache.scr
And turn on my cvar spawn_protect # // number of seconds it will last for, 0 to turn mod off
main:
if(level.spawn_protect)
end
level.spawn_protect = 1;
if(int(getcvar("spawn_protect"))){
local.spawn = registerev "spawn" test.scr::spawn /// <<<< CHANGE THIS LINE TO THE NAME AND PATH OF YOUR SCRIPT
if(local.spawn)
println("~~[SPAWN-PROTECT]~~ Error registering spawn event, Error code " + local.spawn)
else
println("~~[SPAWN-PROTECT]~~ Successfully registered spawn event")
}
end
spawn local.player:
// Wait until player has fully spawned, ie got a weapon
while((local.player getactiveweap 0) == NULL)
waitframe
// Get the time to wait
local.time = int(getcvar("spawn_protect"))
// If time is not 0
if(local.time){
// Set nodamage and light on
if(local.player){
local.player nodamage
local.player light 1 0 1 100 /// You can change colour of the light, it is light R G B Size, so its purple atm
local.player iprint("You are spawnprotected") /// You can adjust the message
}
// Loop through the time
while(local.time > 0){
// If player has shot their weapon, then exit out
if(local.player.fireheld || local.player.secfireheld)
break
local.time -= 0.1
wait 0.1
}
// Set damage on and light off
if(local.player){
local.player takedamage
local.player light 0 0 0 0
local.player iprint("You are no longer protected") /// You can adjust the message
}
}
end
Or use my eventhandler and only copy the spawn local.player thread into its own script and it in the autoload folders. :P