SA-MP Forums Archive
Weapon Licenses/Drivers Licenses System - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weapon Licenses/Drivers Licenses System (/showthread.php?tid=78916)



Weapon Licenses/Drivers Licenses System - b0r1quajay - 24.05.2009

Hi, i have a server based off the sin city roleplay script, and its off mysql and all on a database and stuff, im wondering if anybody could send me a code that would be compatible with the sin city rp script that allows you to get a weapons license which is given to you and same with a drivers license (Not a code that you can do /buy weaponslicense) a code that makes it so you cannot purchase a weapon at a gun store unless you have a weapons license


Re: Weapon Licenses/Drivers Licenses System - Castle - 24.05.2009

just add something that checks his Weapon license on the command that opens the menu for gun purchase
E.G:
pawn Код:
if(!strcmp(cmdtext,"/buy",true))
    {
      if(PlayerInfo[playerid][WepLic]!=0)
      {
        //the rest of the code
        }
        return 1;
    }
The PlayerInfo[playerid][weplic] check whats the Variable that is used as Weapon License and change the weplic with the one you got in your script