31.12.2012, 12:57
Pretty nice script ^_^. I have one suggestion.
Instead of modifying the include for
Just edit this part:
to
So, the callback is called only if your FS/GM has the "public".
Instead of modifying the include for
pawn Код:
public OnPlayerHeadshot(playerid,targetid,weaponid);
public OnPlayerLegshot(playerid,targetid,weaponid);
public OnPlayerArmshot(playerid,targetid,weaponid);
pawn Код:
case 1:OnPlayerHeadshot(issuerid,playerid,weaponid);
case 2:OnPlayerLegshot(issuerid,playerid,weaponid);
case 3:OnPlayerArmshot(issuerid,playerid,weaponid);
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);