Test for Drivers License
#1

I need a drivers license test for my RP GM. Currently you can go there and just buy one, But I would like to add a test to be able to GET the drivers license if you PASS. If someone could set one up for me that would be great I will make the questions... But I am a very beginner scripter. I would like there to be 25 Questions A,B,C,D (multiple choice). Thanks so much to whoever can set this up for me.

-jakejohnsonusa

I need to add it to this:
Код:
	if(strcmp(cmd, "/buydriving", true) == 0)
	{
		if(IsPlayerConnected(playerid))
       	{
       	    if(PlayerInfo[playerid][pPassport] == 0) return SendClientMessage(playerid, COLOR_GREY,"* You need a passport before having any license!!");
			if(IsPlayerInRangeOfPoint(playerid, 3,1490.3195,1305.6976,1093.2964))
          	{
            	if(PlayerInfo[playerid][pCarLic] == 0)
				{
				    if(GetPlayerMoney(playerid) < 3500)
				    {
             			SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a driving license");
             			return 1;
					}
					else
					{
             			SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a driving License for $3, 500");
             			SafeGivePlayerMoney(playerid, - 3500);
             			PlayerInfo[playerid][pCarLic] = 1;
             			OnPlayerUpdateEx(playerid);
						new y, m, d;
						new h,mi,s;
						getdate(y,m,d);
						gettime(h,mi,s);
						format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /buydriving",d,m,y,h,mi,s,sendername);
						CommandLog(string);
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_LIGHTBLUE, " You already own a driving license");
					return 1;
				}
			}
		}
  		return 1;
	}
Reply


Messages In This Thread
Test for Drivers License - by jakejohnsonusa - 02.11.2012, 22:20
Re: Test for Drivers License - by Lorrden - 02.11.2012, 22:23
Re: Test for Drivers License - by jakejohnsonusa - 02.11.2012, 22:43
Re: Test for Drivers License - by jakejohnsonusa - 03.11.2012, 06:01
Re: Test for Drivers License - by Glad2BeHere - 03.11.2012, 06:19
Re: Test for Drivers License - by jakejohnsonusa - 03.11.2012, 07:19
Re: Test for Drivers License - by Glad2BeHere - 03.11.2012, 07:30

Forum Jump:


Users browsing this thread: 1 Guest(s)