SA-MP Forums Archive
Hit Target - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hit Target (/showthread.php?tid=244965)



Hit Target - Ondracec - 29.03.2011

Hi I have in shooting range a target and i need when somebody hit him,so add 10 weapon skill...
Thx


Re: Hit Target - HyperZ - 29.03.2011

< Removed >


Re: Hit Target - Ondracec - 29.03.2011

Quote:
Originally Posted by Clive
Посмотреть сообщение
Use it on OnPlayerDeath
https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel
Weapon type: https://sampwiki.blast.hk/wiki/Skillweapons
Like this:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerSkillLevel(killerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 10);
    return 1;
}
Oh thx but I thought the target is thing not player (/imageshack/i/fsa.png/)