/removedlic command - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /removedlic command (
/showthread.php?tid=272009)
/removedlic command -
spaty2 - 26.07.2011
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...
Re: /removedlic command -
Desertsoulz - 26.07.2011
What is the Player License variable and the Player Cop variable?
ex. Player[playerid][pLicense] <- something like that. -> Player[playerid][pIsCop]
Re: /removedlic command -
spaty2 - 26.07.2011
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...
Re: /removedlic command -
spaty2 - 26.07.2011
bump