Need Script Fix Help
#1

Код:
 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(4) < 1)
                {
                    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
                }
                format(string, sizeof(string), "*CRIME* Vehicle Theft - Wanted Level %d", GetPlayerWantedLevel(playerid));
                SendClientMessage(playerid, red, string);
            }
I Am Having The Problem In This Code That Is When Ever I Enter A Vehicle It Shows Me Message That CRIME* Vehicle Theft - Wanted Level 0.Even If i Am Not Wanted.Please Help Me I Want This Message To Come Up Only When I Enter Vehicle And Get Wanted
Reply
#2

pawn Код:
if(random(4) < 1)
{
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
    format(string, sizeof(string), "*CRIME* Vehicle Theft - Wanted Level %d", GetPlayerWantedLevel(playerid));
    SendClientMessage(playerid, red, string);
}
Simple as that
Reply
#3

Not Helped I Am having A Error That Where Every I Sit In A Vehicle It Gives With Wanted Message Even If I Am Not In Wanted Vehicle
Reply
#4

can you show more code of the switch?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)