30.05.2017, 13:12
I want to make sawmill job so i want to attach a tree to a dft. Attaching is not a problem, but how to make variable to see if it is or not attached, i mean how to create a variable for vehicle
CreateVehicle...
AttachObjectToVehicle..
object_attached = true;
if(object_attached == true)
{
//is attached
}
else if(object_attached == false)
{
//isn't attached
}
new bool:object_attached[MAX_PLAYERS]; //for each player
object_attached[playerid] // or whatever ID of player you are using