How to do this ?
#1

How to call this under OnPlayerTakeDamage ?
This :
pawn Код:
OnPlayerDeathEx(playerid, killerid);
I make it for give player money and score who killing.

Why i nedd call under Onplayertakedamage ?
Because cheater use OnplayerDeath for fake kill.

#sorryformybadenglish
Reply
#2

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
     // issuerid is the one who caused the damage - playerid is the "victim"
     OnPlayerDeathEx(playerid, issuerid);
     return 1;
}
Reply
#3

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
     new 
Float:health;
     
GetPlayerHealth(playeridhealth);
     if(
health==0)
     {
          
CallLocalFunction("OnPlayerDeathEx""ii"playeridissuerid);
     }
     return 
1;

Reply
#4

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
     new 
Float:health;
     
GetPlayerHealth(playeridhealth);
     if(
health==0)
     {
          
CallLocalFunction("OnPlayerDeathEx""ii"playeridissuerid);
     }
     return 
1;

This will works ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)