SA-MP Forums Archive
Guns = Hands - 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: Guns = Hands (/showthread.php?tid=140722)



Guns = Hands - Mechscape - 10.04.2010

Usually TEC or MAC or 9mm Pistol are 2 hands, but how do make it only 1 hands?


Re: Guns = Hands - ZeRo_HUN - 10.04.2010

Use the SetPlayerSkillLevel function.

( https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel )


Re: Guns = Hands - Mechscape - 10.04.2010

So?
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 1);
return 1;
}
That all makes 2 hands guns to use 1 hand?



Re: Guns = Hands - thiaZ_ - 10.04.2010

Yeah, thats right.


Re: Guns = Hands - Joe_ - 10.04.2010

Yes, remember it also decreases the accuracy of the gun, and the damage caused.


Re: Guns = Hands - Mechscape - 11.04.2010

SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 2);

That makes to use shotgun with 2 hands?


Re: Guns = Hands - GloomY - 11.04.2010

Shotgun is allways two hands.


Re: Guns = Hands - Mechscape - 11.04.2010

Quote:
Originally Posted by GloomY™
Shotgun is allways two hands.
Nope, my server only 1 hands, can it make to use 2 hands?


Re: Guns = Hands - aircombat - 11.04.2010

there are 3 shotguns in samp :
Combat Shotgun
Shotgun
Sawn-off Shotgun
which one u mean?


Re: Guns = Hands - Mechscape - 11.04.2010

Quote:
Originally Posted by Vampire_4ever
there are 3 shotguns in samp :
Combat Shotgun
Shotgun
Sawn-off Shotgun
which one u mean?
See