OnPlayerTakeDamage
#5

Quote:
Originally Posted by PaulDinam
Посмотреть сообщение
Set the player's team to 1 upon connecting, this way no damage will be done but the callback will still get called and the amount value still holds the damage it's given. So just simply do whatever you want with it.
I know, I've done that in my roleplay gamemode, but I have a TDM gamemode, so I want to keep the default SAMP teams instead of pTeam or something. Also for shotguns I'll need to check distance everytime player gets shot. I'll think about it, but I can still do the "amount" thing. But yeah, setting players to one team and creating custom damages would make the gamemode more enjoyable.
Reply


Messages In This Thread
OnPlayerTakeDamage - by GoldenLion - 11.09.2016, 19:09
Re: OnPlayerTakeDamage - by Logic_ - 11.09.2016, 19:26
Re: OnPlayerTakeDamage - by GoldenLion - 11.09.2016, 19:30
Re: OnPlayerTakeDamage - by PaulDinam - 11.09.2016, 21:34
Re: OnPlayerTakeDamage - by GoldenLion - 12.09.2016, 05:41

Forum Jump:


Users browsing this thread: 3 Guest(s)