how to lock this vehicle
#3

if you want to lock do this:

PHP код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,lights,alarm,0,bonnet,boot,objective); 
But if you don't want to let player enter the vehicle...

PHP код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    if(
newstate == 2)
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 425 && GetPlayerScore(playerid) < 150)
        {
            
SendClientMessage(playeridCOLOR_RED"You need to be a Colonel to ride a Hunter! [/Rankstats & /Myrank]");
            
RemovePlayerFromVehicle(playerid);
        }
    }
    return 
1;

Reply


Messages In This Thread
how to lock this vehicle - by handerson - 01.07.2011, 07:47
Re: how to lock this vehicle - by PrawkC - 01.07.2011, 07:49
Re: how to lock this vehicle - by Shadoww5 - 01.07.2011, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)