Weapon skills
#1

How to add weapons skill?
For example some weapons like Sawnoff shotgun be 100?
Reply
#2

How do You mean with 100 ? Do You mean score 100? Then first check if the player is 100 or lower by this code:
PHP код:
if (GetPlayerScore (playerid) < 100) return SendClientMessage (playeridCOLOR_RED"bla bla"); 
Is this what you mean?
Reply
#3

https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel
Reply
#4

E.x this maybe willhelp you
public OnPlayerConnect(playerid)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 400);
// When player connect if he have lower than 100 score hes shooting skill will be low he will shoot like Cj in san andreas when you start playing for the first time with missions
return 1;
}
public OnPlayerSpawn(playerid)
{
if(GetPlayerScore(playerid) > 100) return SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
// if player score is more than 100 his skill gona be normal
return 1;
}
// sorry for my low english if i helped you +rep me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)