Weapon Licenses/Drivers Licenses System
#1

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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)