25.02.2016, 17:25
Quote:
Okay, you can tell me, why when I get damage my script crash?
Stack But I check in OnTakeDamage Код:
base.OnTakeDamage(e); //here if (e.OtherPlayer.Id != InvalidId) { Player TakeBy = (Player)e.OtherPlayer; if (TakeBy.Attraction == AttractionTypes.Attraction_WG) TakeBy.wgDamages += e.Amount; } |
Did you Register your player class in your own PlayerController, which you replaced the GtaPlayerController with? See my previous post: http://forum.sa-mp.com/showpost.php?...&postcount=172