View Single Post
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-18-2019 , 10:07   Re: Prevent player from spawning (just ignore him)
Reply With Quote #10

Ops my bad, dunno why i wrote that, thanks @OciXCrom for catching it

@MihailoZ, get_gametime() at the beggining was too hard for me to undestand what it does, but its fun thing, maybe this example can help you:

Like OciX said, get_gametime() is getting the decimal time from the map start, so when you go with g_fRoundTime = get_gametime(), if round started like on the 10.0 sec of the map starting, g_fRoundTime will be that time. So if player connects (and spawn automatically) a little later, lets say on 30.0 sec of the map start, you must get his late-time from roundstarting to be 20.0 sec (easy logic)....so by putting it on player spawn:
( get_gametime() (<-its his 30.0sec on first spawn) - g_fRoundTime (<- already stored, first round on 10.0sec of map start) ) >= 40.0

i hope its easier for you
@OciXCrom, i would aprecciate if you can make any example with get_systime (how i undestood, systime must be used for like gag/ban/similar plugins)

EDIT: i think you cant go with return HAM_SUPERCEDE on POST of player spawn idk
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 09-18-2019 at 10:09.
JocAnis is offline