Minigun protection
#1

Is there a way to prevent team killing with a minigun?
I tried to do it with OnPlayerTakeDamage, it works for all weapons expect the minigun.

This is what I use to prevent team killing
PHP код:
SetPlayerHealth(playeridHP+amount); 
Is there a better method, because this one is too slow to handle a minigun.
Reply
#2

SetPlayerTeam. Disables all damage, no code required.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
SetPlayerTeam. Disables all damage, no code required.
Thanks landgenoot, it works!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)