[Include] GetPlayerAimedBodyPart - Detect Headshots, Armshots, Legshots !
#2

Pretty nice script ^_^. I have one suggestion.

Instead of modifying the include for

pawn Код:
public OnPlayerHeadshot(playerid,targetid,weaponid);
public OnPlayerLegshot(playerid,targetid,weaponid);
public OnPlayerArmshot(playerid,targetid,weaponid);
Just edit this part:

pawn Код:
case 1:OnPlayerHeadshot(issuerid,playerid,weaponid);
case 2:OnPlayerLegshot(issuerid,playerid,weaponid);
case 3:OnPlayerArmshot(issuerid,playerid,weaponid);
to

pawn Код:
case 1:CallLocalFunction("OnPlayerHeadshot", "ddd", issuerid,playerid,weaponid);
case 2:CallLocalFunction("OnPlayerLegshot", "ddd", issuerid,playerid,weaponid);
case 3:CallLocalFunction("OnPlayerArmshot", "ddd", issuerid,playerid,weaponid);
So, the callback is called only if your FS/GM has the "public".
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)