License to use - 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: License to use (
/showthread.php?tid=113937)
License to use -
whitedragon - 16.12.2009
Is and how is possible to do that you need license(order on leader give with cmd) to drive car
Re: License to use -
DeathOnaStick - 16.12.2009
Creat a Account-System and add to PlayerInfo bool:"License". Turn it "true" or "false". False, if you dont have license, true, if you have. Save it as value into the file aswell. OnPlayerEnterVehicle, or smth like this, should check the license. If false, then it ejects the player again. That's all.
Cheers.
Re: License to use -
whitedragon - 16.12.2009
like this?
Код:
if(LicencedriveHSPDcar == true)
{}
else
{RemovePlayerFromVehicle(playerid)}
Re: License to use -
DeathOnaStick - 16.12.2009
Yup.
Re: License to use -
Mike Garber - 17.12.2009
Quote:
Originally Posted by whitedragon
like this?
Код:
if(LicencedriveHSPDcar == true)
{}
else
{RemovePlayerFromVehicle(playerid)}
|
Nope.
pawn Код:
if(LicensedriveHSPDcar == true){
// Something
}else{
RemovePlayerFromVehicle(playerid);
return 1;
}}
If you call your functon for LicensedriveHSPDcar == true/false