oscar-broman / samp-weapon-config

A more consistent and responsive damage system with many new features
Apache License 2.0
93 stars 83 forks source link

how to put callback Onplayergivedamage and onplayertakedamage #262

Open KirovNoName opened 1 year ago

KirovNoName commented 1 year ago

how to enable the callback like Onplayertakedamage and onplayergivedamage without removing #incluce

mysy00 commented 1 year ago

Use OnPlayerDamage instead. You most likely don't want to access real natives since weapon-config will be responsible for handling it.

KirovNoName commented 1 year ago

Use OnPlayerDamage instead. You most likely don't want to access real natives since weapon-config will be responsible for handling it.

what if i put undefined onplayerdamage it will enable it?

NexiusTailer commented 8 months ago

Use OnPlayerDamage instead. You most likely don't want to access real natives since weapon-config will be responsible for handling it.

what if i put undefined onplayerdamage it will enable it?

It's already declared in weapon-config, so it won't be undefined when you add this public into your gamemode.