[Question] Revive

01/31/2010 00:03 ramix#1
hello e*pvpers users... i have a little question... i wanna know how to stop kill ppl when they rev...

for exemple when you kill some one in real co you have like 5 sec you cant kill him because he not move i wanna know how to do that in source 5165 because when you revive can kill you and that sucks :S because noob w8 for ppl rev to kill :S
01/31/2010 02:39 pro4never#2
You will want a bool to control if player is invincible or not and then do a timer when they revive/login where it's turned on. have attack/jump/any action clear the timer and set the bool to false. Then in attack code say that if the attacked client is invincible, break the attack code.

It's simple enough to do but it will require significant work just to find all the applicable places to A) Check if player IS invincible and B) remove/add invincibility based on certain conditions.