SA-MP Forums Archive
Vehicle randomly becomes "registered to police officers" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Vehicle randomly becomes "registered to police officers" (/showthread.php?tid=430428)



Vehicle randomly becomes "registered to police officers" - Spose - 13.04.2013

Hi there. The title basically says it all. Randomly when someone respawns their car it turns into "cop car" aka, "registered to police officers only", nothing appears to be wrong with the script

Код:
    if (IsACopCar(vehicleid) && !ispassenger && !(IsAnFbiCar(vehicleid)&&PlayerInfo[playerid][pMember]==2))
    {
        if(PlayerInfo[playerid][pMember] != 1)
        {
            ApplyAnimationEx(playerid, "ped", "CAR_doorlocked_LHS", 3.0, 0, 0, 0, 0, 0);
            SetVehicleParamsForPlayer(vehicleid,playerid,0,1);
            new Float:cx, Float:cy, Float:cz;
		    GetPlayerPos(playerid, cx, cy, cz);
		    DOO_SetPlayerPos(playerid, cx,  cy, cz);
		    SendClientMessage(playerid,COLOR_GREY," This vehicle is reserved for Police Officers only !");
		    LockCar[playerid][0] = 3;
		    LockCar[playerid][1] = vehicleid;
		    ApplyAnimationEx(playerid, "ped", "CAR_doorlocked_LHS", 3.0, 0, 0, 0, 0, 0);
		}
So, what can be wrong?
Thanks in Advance,
Spose.