Raised This Month: $ Target: $400
 0% 

Prevent player from spawning (just ignore him)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode