Removing the drivers license script thingy
#1

Hi, I looked at the drivers license bit from my mates rp script,
And it has RemovePlayerFromVehicle on the car bit
It also has a message, You dont know how to drive yet,
So i changed that message to: You do not have a drivers license, So drive carefully otherwise the cops will notice.
And removed the RemovePlayerFromVehicle

But he still gets removed ingame?
Reply
#2

Find every accourance of RemovePlayerFromVehicle, and if it has a connection with pCarLic (im assuming you use Godfather, or an edit) change that and it should be fine.
Reply
#3

Im not understanding
Reply
#4

He's saying that you should remove 'RemovePlayerFromVehicle' in every part of your script, like it might occur more than once.

The simplest way to do so is when you are in the pawno editor, hold down CTRL + F and type in 'RemovePlayerFromVehicle' without ' marks. Delete or comment these lines where 'RemovePlayerFromVehicle' occurs.
Reply
#5

That would let people drive cop cars and everything though
Reply
#6

Quote:
Originally Posted by JoeDaDude
That would let people drive cop cars and everything though
Just delete the ones that are associated with what you use to track if a player has a license.
Reply
#7

I hate godfather, And LARP, But i love moderntopia,
So i tried it on there:

Before:
pawn Код:
else
        {
            if(PlayerInfo[playerid][pCarLic] < 1)
            {
              if(PlayerDrunk[playerid] >= 5)
                {
                  WantedPoints[playerid] += 1;
                    SetPlayerCriminal(playerid,255, "Drunk Driving");
                }
                if(TakingLesson[playerid] != 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "You don't know how to Drive yet, So drive carefully otherwise the cops will notice");
                    if (PlayerInfo[playerid][pLinked] == 0) SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You will not be able to do any license tests before you link your character to a website account. Use /li for more information.");
RemovePlayerFromVehicle();
                    return 1;
                }
            }
        }
After:
pawn Код:
else
        {
            if(PlayerInfo[playerid][pCarLic] < 1)
            {
              if(PlayerDrunk[playerid] >= 5)
                {
                  WantedPoints[playerid] += 1;
                    SetPlayerCriminal(playerid,255, "Drunk Driving");
                }
                if(TakingLesson[playerid] != 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "You don't know how to Drive yet, So drive carefully otherwise the cops will notice");
                    if (PlayerInfo[playerid][pLinked] == 0) SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You will not be able to do any license tests before you link your character to a website account. Use /li for more information.");
                    return 1;
                }
            }
        }
I only had to do it once and then it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)