/removedlic command
#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


Messages In This Thread
/removedlic command - by spaty2 - 26.07.2011, 20:01
Re: /removedlic command - by Desertsoulz - 26.07.2011, 20:05
Re: /removedlic command - by spaty2 - 26.07.2011, 20:18
Re: /removedlic command - by spaty2 - 26.07.2011, 21:53

Forum Jump:


Users browsing this thread: 1 Guest(s)