31.07.2016, 13:30
hello guys i am having a problem that when ever i enter a vehicle it shows me this message *CRIME* Vehicle Theft - Wanted Level 0.Please Help Me U Show This Message Only When I Get Wanted By Sitting In Car Like *CRIME* Vehicle Theft - Wanted Level 1 ooh How i can make u understand my problem listen first when every i sit in vehicle it gives me wanted level 1 so i thought that i should install a 5 out of 1 change of getting wanted so i done it but now when every i sit in it shows me this message *CRIME* Vehicle Theft - Wanted Level 0Even If My Wanted Level Are Not Increased However It Gives Me This message *CRIME* Vehicle Theft - Wanted Level 1 and increase my wanted level by 1.i mean to say that i want this message to be shown only when my wanted level increase.
My Code In Which i Am having Problem
My Code In Which i Am having Problem
Код:
default: { SendClientMessage(playerid, yellow, "** - VEHICLE CMDS: /lock (Lock the vehicle) - /cw (Send a message to the passengers in your car) - /ej (Eject a player from your vehicle) - /ejall (Eject all passengers from your vehicle)**"); new string[64]; if(random(6) < 1) { SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1); } format(string, sizeof(string), "*CRIME* Vehicle Theft - Wanted Level %d", GetPlayerWantedLevel(playerid)); SendClientMessage(playerid, red, string); } } }