Driving Licence problem - 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)
+--- Thread: Driving Licence problem (
/showthread.php?tid=464603)
Driving Licence problem -
cuemur - 17.09.2013
PHP код:
if(cars == 0)
{
if(PlayerInfo[playerid][pLic][0] != 1)
{
if(GetPVarInt(playerid, "LicTest") > 0) { }
else
{
if(GetVehicleModel(vehicleid) == 462) { }
if(GetVehicleModel(vehicleid) == 481) { }
if(GetVehicleModel(vehicleid) == 509) { }
if(GetVehicleModel(vehicleid) == 510) { }
else
{
SendClientMessage(playerid, COLOR_GREY, "You don't have driving licence!");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}
I want that if your using one of these licence is not needed.
Re: Driving Licence problem -
alinategh - 18.09.2013
Explain a bit more, can't understand you. and use instead of
Re: Driving Licence problem -
DanishHaq - 18.09.2013
pawn Код:
if(cars == 0)
{
if(PlayerInfo[playerid][pLic][0] != 1)
{
if(GetPVarInt(playerid, "LicTest") > 0) { }
else
{
if(GetVehicleModel(vehicleid) == 462) { return 1; }
else if(GetVehicleModel(vehicleid) == 481) { return 1; }
else if(GetVehicleModel(vehicleid) == 509) { return 1; }
else if(GetVehicleModel(vehicleid) == 510) { return 1; }
else
{
SendClientMessage(playerid, COLOR_GREY, "You don't have driving licence!");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}