Need help with OnPlayerUpdate
#1

Hello everyone, im making a Throwing knife system, i have everything done, the problem is, how can i make it damage? i cant use onplayerupdate because it lags too much
Reply
#2

Use a timer, if OnPlayerUpdate is too fast and lags?
Reply
#3

onplayerupdate doesn't make lag if you know how to use it, but there's 2 functions that can do the same which is more accessible.

https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Reply
#4

The problem is, that my knife is an object, i want to make it make damage when stop moving
Reply
#5

What are you saying here is, you want the knife to do damage when it stops moving, right? On your timer, when it stops moving, simply do a loop of players, and check if there is someone near enough the object to be damaged.
Reply
#6

it doesnt works theres a prob with the playerid, when it throws the knife, i can kill other players but they cant kill me with their knifes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)