View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-18-2019 , 07:35   Re: Prevent player from spawning (just ignore him)
Reply With Quote #6

Quote:
Originally Posted by JocAnis View Post
Register new round. Add there global variable (float): g_fRoundTime = get_gametime()

On spawn check if g_fRoundTime >= 40.0
That time is counted from the start of the map, not round. He can use get_gametime(), but he will need to compare the stored value with a new get_gametime() when the player joins and check if the difference between them is >= 40.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom