13.04.2013, 21:11
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
So, what can be wrong?
Thanks in Advance,
Spose.
Код:
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); }
Thanks in Advance,
Spose.