0 and 1 Help... (License)
#1

Hello guyz i needa simple system with

haslicense = 0 -> Removeplayerfromvehicle

haslicense = 1 -> Can drive

Also i need a command that from haslicense = 0 it gives haslicense = 1

Like. /License ->Haslicense = 1

I dont know how to do :! Is basically a simple driving license system
Reply
#2

Quote:

haslicense = 0 -> Removeplayerfromvehicle

You already mentioned what you wanna do. Learn some scripting basics, you aren't gonna go far like that
Listen: You have a callback, when a player's state changes. Check if he's a driver:
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
   if(newstate == PLAYER_STATE_DRIVER)
   {
     // check if he has license
     if(!License[playerid]) RemovePlayerFromVehicle(playerid);
   }
}
Reply
#3

Ye but I need ALL the includes I dunno how to
Reply
#4

this does the check when a player tries to enter a vehicle.
so this will work for ALL vehicles.
Reply
#5

I just need the defines to add in the top and other things I donno how to use 1 and 0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)