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



/buylic command - Jordiee - 15.11.2011

Hello,
I am looking for a /buylicense command at the PD to purchase your driving license and a /showlicense {ID} to show your license to a player!

P.S hopefully the CMD: way thanks (dunno what its called)


Re: /buylic command - Jordiee - 15.11.2011

someone please sorry for double post


Re: /buylic command - Kingunit - 15.11.2011

First of all are you saving the license? And I re-direct you to a request thread, this ain't the right location.


Re: /buylic command - Jordiee - 15.11.2011

yes saving the license so the police officer when he asks for there id they can /showid


Re: /buylic command - IceCube! - 15.11.2011

Right simple change to your code!.

pawn Код:
CMD:buylic(playerid)
{
       PlayerInfo[playerid][pMoney] = PlayerInfo[playerid][pMoney]-AMOUNT; // If you dont have a mone system use GivePlayerMoney(playerid, -AMOUNT);
        PLayerInfo[playerid][pLicense] = 1;
        SendClientMessage(Playerid, "Texthere");
        return 1;
}
[pawn] CMDhowlicneses(playerid)
{

Second thoughs I need to go like now... Sorry

Right thats very simple and should be easy for you to edit to how you like


Re: /buylic command - Jordiee - 15.11.2011

this is no help whatsoever


Re: /buylic command - IceCube! - 15.11.2011

Alright i'm back so you mean you want a nice neat dialog listing the license to buy. If yes tell me and give me 3 mins


Re: /buylic command - Jordiee - 16.11.2011

yeah please, I want it so you can go to the PD and do /buylic and a dialog comes up:
driving or Boat. THANKS (Y)
P.S I dont have a License system, Im using VX-RP2