/buylicense - 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: /buylicense (
/showthread.php?tid=315434)
/buylicense -
James Coral - 03.02.2012
How do i make /buylicense
with cordinates ? i have /licenses system
with: that
pawn Код:
PlayerInfo[playerid][pCarLic]
PlayerInfo[playerid][pFlyLic]
But i need /buylicense too
Re: /buylicense -
James Coral - 03.02.2012
Enyone?
Re: /buylicense -
-CaRRoT - 03.02.2012
Which Script are you using ? You also have to Show us your License system code
Re: /buylicense -
James Coral - 03.02.2012
Sure
pawn Код:
dcmd_licenses(playerid,params[])
{
#pragma unused params
if(IsPlayerConnected(playerid))
{
new text1[20];
new text4[20];
new string[128];
if(PlayerInfo[playerid][pCarLic]) { text1 = "Passed"; } else if(PlayerInfo[playerid][pFakeDriving]) { text1 = "Passed (fake)"; } else { text1 = "Not Passed"; }
if(PlayerInfo[playerid][pFlyLic]) { text4 = "Passed"; } else if(PlayerInfo[playerid][pFakeFlying]) { text4 = "Passed (fake)"; } else { text4 = "Not Passed"; }
SendClientMessage(playerid, COLOR_YELLOW, "|__________________ Licenses __________________|");
format(string, sizeof(string), "** Drivers License: %s.", text1);
SendClientMessage(playerid, COLOR_ADMIN, string);
format(string, sizeof(string), "** Flying License: %s.", text4);
SendClientMessage(playerid, COLOR_ADMIN, string);
SendClientMessage(playerid, COLOR_YELLOW, "|______________________________________________|");
}
return 1;
}