03.01.2014, 17:30
PHP код:
if(IsAnOwnableCar(vehicleid))
{
if(CarInfo[vehicleid][cOwned] == 1 || CarInfo[vehicleid][cLock] == 1)// cOwner = 1 cLock = 1... so basically if the car is locked then alarm - 0
{
SendClientMessage(playerid, COLOR_RED, "This Vehicle is Closed");//this message and alarm..
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Alarm", 1);
}
if(CarInfo[vehicleid][cOwned] == 0)
{
format(string,sizeof(string),"Intri in masina %s (%d) Proprietar: Dealership",vehicle, vehicleid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
else..............Other.