SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=409168)



Help - sscarface - 20.01.2013

Can u tell me or give link? tut where can i find

i want vip player have 2 sawf off guns or 9mm or whatever and without vip just 1 guns on hands.


Re: Help - Threshold - 20.01.2013

Example:

pawn Код:
public OnPlayerSpawn(playerid) //When a player spawns
{
    if(PlayerInfo[playerid][pVip] > 0) //If their VIP level is greater than 0 (AKA They are a VIP)
    {
        SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
    }
    else
    {
        SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 0);
        SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 0);
    }
    return 1;
}
This is an example, do not copy it completely, replace PlayerInfo[playerid][pVip] with your own VIP variables.


Re: Help - sscarface - 20.01.2013

thanx i did it before but i not work so lets try it again.