18.07.2017, 18:02
If I understand, You want to reset all the weapon skills for the player then set the one chosen in the command..
If that you can use a loop like this whenever the command is used:
Then set the player skill level to the one chosen with the command.
Or better is to save the last chosen skill on that player and only reset it without resetting the rest >> [This is more effective]
If that you can use a loop like this whenever the command is used:
PHP код:
for(new i; i <= 10; i++) SetPlayerSkillLevel(playerid, i, 0); //According to samp wiki from 0 to 10 all the skills
Or better is to save the last chosen skill on that player and only reset it without resetting the rest >> [This is more effective]