[Y_Hooks] Problem with OnPlayerDamage
#1

I tried hooking "OnPlayerDamage" from weapon-config it didn't work, the code I used

PHP код:
hook OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart
{
    
SetPlayerHealth(playerid1.0);
    return 
1;

It also doesn't work with Pawn.CMD callback "OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)"
Reply
#2

Well I saw that Pawn.CMD was faster than y_commands that's why I use it
Reply
#3

Is this what you're looking for? I have weapon-config.inc too and.. why not learn something new right now
https://sampforum.blast.hk/showthread.php?tid=574534
Reply
#4

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
Is this what you're looking for? I have weapon-config.inc too and.. why not learn something new right now
https://sampforum.blast.hk/showthread.php?tid=574534
thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)