Only drive-able on duty
#3

Here is an example:

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    
// check if vehicle id is g_Vehicle and the player is not on duty
    
if(vehicleid == g_Vehicle[9] && !PlayerInfo[playerid][TaxiDuty]) {
        
// if it is, send message and return 0.
        
return 0;
    }
    
    
//else return 1
    
return 1;

Reply


Messages In This Thread
Only drive-able on duty - by jasperschellekens - 11.04.2017, 19:34
Re: Only drive-able on duty - by DarkSkull - 11.04.2017, 19:38
Re: Only drive-able on duty - by DarkSkull - 11.04.2017, 19:42
Re: Only drive-able on duty - by jasperschellekens - 11.04.2017, 21:53
Re: Only drive-able on duty - by DarkSkull - 11.04.2017, 21:58
Re: Only drive-able on duty - by jasperschellekens - 11.04.2017, 22:50
Re: Only drive-able on duty - by DarkSkull - 11.04.2017, 22:58
Re: Only drive-able on duty - by Vince - 12.04.2017, 05:40
Re: Only drive-able on duty - by DarkSkull - 12.04.2017, 05:51
Re: Only drive-able on duty - by Meller - 12.04.2017, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)