Weapon Skill?
#1

Hello I made a command /tec9 it basically gives a tec 9 but I want that the player can use one not 2 :8 How can i set the "skill" so let him shoot with just one?
Reply
#2

Take a look at this function: https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel
Reply
#3

on call back OnPlayerSpawn(playerid) put this code:
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
Reply
#4

Add this to your script:

pawn Код:
public OnPlayerSpawn(playerid)
{
     SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
     return 1;
}
You can refer here for the skill levels.
You can refer here for more info.

Hope this helped. Please rep if it does work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)