16.09.2013, 15:39
Alright, this brought me to a better point, but it's all reversed now so the owner can't unlock it but anyone else can, so thanks for the help I think I can handle it from here. For those who are interested in the codes.
pawn Код:
if(!strcmp(VehicleOwner[id], playername, true) == 0)
{
if(doors == 1)
{
doors = 0;
VehicleLock[id] = 0;
SendClientMessage(playerid, COLOR_GREEN, "Unlocked.");
}
else
{
doors = 1;
VehicleLock[id] = 1;
SendClientMessage(playerid, COLOR_RED, "Locked.");
}
SetVehicleParamsEx(id, engine, lights, alarm, doors, bonnet, boot, objective);
SaveVehicle(id);
}
else SendClientMessage(playerid, -1, "You do not own the closest vehicle!");
return 1;

