Weapon Skill? - 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)
+--- Thread: Weapon Skill? (
/showthread.php?tid=328927)
Weapon Skill? -
Gooday - 26.03.2012
Hello I made a command /tec9 it basically gives a tec 9 but I want that the player can use one not 2 :8 How can i set the "skill" so let him shoot with just one?
Re: Weapon Skill? -
Mauzen - 26.03.2012
Take a look at this function:
https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel
Re: Weapon Skill? -
arman'as - 26.03.2012
on call back OnPlayerSpawn(playerid) put this code:
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
Re: Weapon Skill? -
sniperwars - 26.03.2012
Add this to your script:
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
return 1;
}
You can refer
here for the skill levels.
You can refer
here for more info.
Hope this helped. Please rep if it does work.