SA-MP Forums Archive
Civ Cars Issue - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Civ Cars Issue (/showthread.php?tid=76958)



Civ Cars Issue - zigzag7420 - 08.05.2009

As most Scripts have, When you steal a police car, you get a wanted level. Well for some odd reason after adding cars Via Taxi stream, for my RPG server, any Civ car most any way, From bikes. to Sport Cars. U will get a wanted level and a warning for stealing a government car.



Re: Civ Cars Issue - CJ101 - 08.05.2009

make sure you are returning. that could be the problem. ( return at end of checking if in cop car code)


Re: Civ Cars Issue - yezizhu - 08.05.2009

I think his script uses vehicleid,not modelid


Re: Civ Cars Issue - zigzag7420 - 08.05.2009

}
new pname[24];
new plwl;
GetPlayerName(playerid,pname,24);
if(StoleCopCarRecent[playerid] == 0) {
plwl = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid,plwl +4);
}
new pcol = GetPlayerColor(playerid);
plwl = GetPlayerWantedLevel(playerid);
SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
format(string, sizeof(string), "(LAW ENFORCEMENT VEHICLE THEFT) Wanted Level %d",plwl);
SendClientMessage(playerid,pcol,string);
commitedcrimerecently[playerid] +=200;
if(StoleCopCarRecent[playerid] == 0) {
for(new i=0;i<MAX_PLAYERS;i++)
{
new current_zone;
current_zone = player_zone[playerid];
if(LawEnforcementRadio[i] == 1) {
format(string, sizeof(string), "DISPATCH: (LAW ENFORCEMENT VEHICLE THEFT) %s(%d) Has stolen a police vehicle. Location: %s",pname,playerid,zones[current_zone][zone_name]);
SendClientMessage(i, COLOR_ROYALBLUE, string);
}
}
}
StoleCopCarRecent[playerid] =1;
}

if it helps :\