/removedlic command
#1

I need that police officer can do command /removedlic
and he will delete driving license to someone, that works like that
I have CarLicenses folder and there are people who passed license(names)
and if police officer do that command it will remove that name so he won't have license

If you don't know about im speaking, ask me and i will tell you...
Reply
#2

What is the Player License variable and the Player Cop variable?

ex. Player[playerid][pLicense] <- something like that. -> Player[playerid][pIsCop]
Reply
#3

I will do that cop variable... it's just
pawn Код:
PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
And car license is

pawn Код:
}
        else if(GetPVarInt(playerid, "CarLicenses") == 1)
        {
            new pname[MAX_PLAYER_NAME], string[100];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(string, sizeof(string), "CarLicenses/%s.ini", pname);
            new File:sgt_file = fopen(string, io_write);
            new day, year, month;
            getdate(year, month, day);
            format(string, sizeof(string), "%s is owning this driving license since: %d/%d/%d\r\n", pname, day, month, year);
            fwrite(sgt_file, string);
            fclose(sgt_file);
            PlayerData[playerid][Step] = 0;
            RemovePlayerFromVehicle(playerid);
            SetVehicleToRespawn(PlayerData[playerid][Vehicle]);
That is writing name in CarLicenses folder I think...
Reply
#4

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)