SA-MP Forums Archive
Weapon System - 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 System (/showthread.php?tid=294795)



Weapon System - vassilis - 03.11.2011

hey guys i wonder how i can put weapon skills i mean that you will be able to hold one tec9 one sawnoff etc..and when you get more than 10h in-game you will have full skills..how to do that
Regards,
Blacklisted_Bboy


Re: Weapon System - Kostas' - 03.11.2011

10 hours online, or generally 10 hours a player has played in your server?
You can make a timer OnPlayerConnect and after 10 hours to
PHP код:
  SetPlayerSkillLevel(playeridWEAPONSKILL_SAWNOFF_SHOTGUN1);
    
//This will make them use single-handed sawnoff shotguns. 
to set the Weapon Skills.
Weapon Skills:
Код:
WEAPONSKILL_PISTOL
WEAPONSKILL_PISTOL_SILENCED
WEAPONSKILL_DESERT_EAGLE
WEAPONSKILL_SHOTGUN
WEAPONSKILL_SAWNOFF_SHOTGUN
WEAPONSKILL_SPAS12_SHOTGUN
WEAPONSKILL_MICRO_UZI
WEAPONSKILL_MP5
WEAPONSKILL_AK47
WEAPONSKILL_M4
WEAPONSKILL_SNIPERRIFLE



Re: Weapon System - vassilis - 03.11.2011

ok and how i will do like this?WEAPONSKILL_SNIPERRIFLE, 10(for 10 level)or something like that?
EDIT:Iunderstand it ok thx