License to use
#1

Is and how is possible to do that you need license(order on leader give with cmd) to drive car
Reply
#2

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.
Reply
#3

like this?
Код:
if(LicencedriveHSPDcar == true)
{}
else 
{RemovePlayerFromVehicle(playerid)}
Reply
#4

Yup.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)