29.01.2014, 17:21
Hello guys, i have made a code, but it's not working i don't know why, every citizen can drive the LSPD car, it's not working in any faction, i have like 12 factions and it's not working, any citizen can drive faction cars.
Under OnPlayerEnterVehicle
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { SendClientMessage(playerid, COLOR_BLUE, "Remember to wear your seatbelt so you don't get fined!(/belt).");
Код:
else if(IsLeoVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 1) { new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); SetPlayerPos(playerid, pos[0], pos[1], pos[2]); SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the LSPD.");