Help with Vehicle
#1

hello

On my server, when you enter a Police Vehicle and you are not a Police Officer, you get 4 Wanted Level Stars.

For some reason, when a player steals a cop car and then dies inside the cop car, they get another 4 Wanted Levels and a message Saying Police Vehicle Theft again.
I've tried for the past 4 hours to fix this but I haven't been able too.

It should only come up when they steal the car and not when they die. How can i fix this?

Here is a snippet of my code, it us under OnPlayerStateChange

PHP код:
    if(GetVehicleModel(vehicleid) == 596)
    {
        if(
pInfo[playerid][pCop] == 1)
        {
        
GameTextForPlayer(playerid,"Police Car LS",3000,1);
        }
        if(
pInfo[playerid][pCop] == 0)
        {
        
GameTextForPlayer(playerid,"Police Car LS",3000,1);
        
SendClientMessage(playeridCOLOR_YELLOW"** Crime Alert: {FFFFFF}Police Vehicle Theft {FFFF00}- Wanted Level {ffffff}+4.");
        
UpdateWantedLevel(playeridGetPlayerWantedLevel(playerid) + 4);
        
pInfo[playerid][pStarsAtt]+= 4;
        }
    } 
Reply


Messages In This Thread
Help with Vehicle - by tommzy09 - 13.12.2014, 07:01
Re: Help with Vehicle - by MrViolence101 - 13.12.2014, 07:19
Re: Help with Vehicle - by tommzy09 - 13.12.2014, 07:33
Re: Help with Vehicle - by Sledgehammer - 13.12.2014, 07:46
Re: Help with Vehicle - by tommzy09 - 13.12.2014, 08:11
Re: Help with Vehicle - by Dziugsas - 13.12.2014, 08:27
Re: Help with Vehicle - by tommzy09 - 13.12.2014, 08:53

Forum Jump:


Users browsing this thread: 1 Guest(s)