Make a vehicle theft wanted system
#7

Quote:
Originally Posted by davve95
Посмотреть сообщение
Hmm won't it happen to every vehicle then?

If I steal some vehicle and I dump it, then steal another vehicle won't I get a
wanted level then?..

Because I just want it if you steal a vehicle you get wanted
and then when you enter it again I don't want to get a wanted level again..

(Like it is in singleplayer)
You are allowed to take same car again after you stole it if you have it for a while..

Do you know how they have done on other servers?
You could check the player's wanted level, if he has more than or 1 wanted level, return it by 0

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vParked[vehicleid] == 1)
        return vParked[vehicleid] = 0, SetPlayerWantedLevel(playerid, 1);
   
    if(GetPlayerWantedLevel(playerid) >= 1 && vParked[vehicleid] == 1) return 0;
    return 1;
}
Reply


Messages In This Thread
Make a wanted system when stealing a veh - by davve95 - 11.11.2013, 16:01
Re: Make a vehicle theft wanted system - by DanishHaq - 11.11.2013, 16:05
Re: Make a vehicle theft wanted system - by davve95 - 11.11.2013, 20:08
Re: Make a vehicle theft wanted system - by Biesmen - 14.11.2013, 15:13
Re: Make a vehicle theft wanted system - by davve95 - 14.11.2013, 15:30
Re: Make a vehicle theft wanted system - by Biesmen - 14.11.2013, 15:34
Re: Make a vehicle theft wanted system - by Patrick - 14.11.2013, 15:36
Re: Make a vehicle theft wanted system - by Biesmen - 14.11.2013, 15:43
Re: Make a vehicle theft wanted system - by Patrick - 14.11.2013, 15:43

Forum Jump:


Users browsing this thread: 2 Guest(s)