Vehicle randomly becomes "registered to police officers"
#1

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)