SA-MP Forums Archive
Need Script Fix Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Script Fix Help (/showthread.php?tid=612490)



Need Script Fix Help - CarRamper - 18.07.2016

Код:
 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


Re: Need Script Fix Help - Misiur - 18.07.2016

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


Re: Need Script Fix Help - CarRamper - 18.07.2016

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


Re: Need Script Fix Help - OneDay - 18.07.2016

can you show more code of the switch?