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



Weapon Skills desync? - Aerotactics - 10.12.2015

Yes, I know how to set weapon skills.

No, I have never had this occur before.

I set a player's weapon skills to 1 (for all weapons), yet they could dual wield weapons still (this appears client-side). If someone looks at them while holding a dual-wielded weapon, that player's weapon appears to be single-handed.

The issue I'm having is that these weapons should not be different for server-side/client-side, but they are. I did a search in these forums, and 1 other person had the same results, only they had the issue in 2010.


Re: Weapon Skills desync? - Aerotactics - 11.12.2015

Bump


Re: Weapon Skills desync? - Aerotactics - 13.12.2015

Bump


Re: Weapon Skills desync? - SoFahim - 13.12.2015

Use

PHP код:
SetPlayerSkillLevel(playeridWEAPONSKILL_(Weapon_name) , 999); 
It will give that player Max skill on the weapon skill and also It won't appear any bug ( maybe)
Also try with right format and right function

And also maybe this problem with scripting, that's why it happening.


Re: Weapon Skills desync? - Aerotactics - 13.12.2015

pawn Код:
//Setting weapon skills
    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);