SA-MP Forums Archive
How to Modify Weapon Skill for Every Players ! - 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: How to Modify Weapon Skill for Every Players ! (/showthread.php?tid=112455)



How to Modify Weapon Skill for Every Players ! - drawkk - 07.12.2009

Hi ! So I wanna make the gangstas spawn with a gun and a "Uzi",so They have two guns,Two uzi but I want
there to have just One Gun and One Uzi when they're Spawning.

Thanks

(Sorry for my English..I'm french)


Re: How to Modify Weapon Skill for Every Players ! - KIDUL - 07.12.2009

Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_UZI, 200); //This will make them use single-handed
add this under onplayerspawn and it should work



Re: How to Modify Weapon Skill for Every Players ! - godknightx - 07.12.2009

pawn Код:
for(new x = 0; x < MAX_PLAYERS; x++)
{
  if(!IsPlayerConnected(x) || IsPlayerNPC(x)) continue;
  SetPlayerSkillLevel(x, WEAPONSKILL_UZI, 200);
}