05.12.2010, 14:18
add Engine to your enum then you should add something like vehicleinfo[vehicleid][Engine] = 0;
And when a players enters a vehicle make a check like this
for(new i; i < MAX_VEHICLES; i++)
{
ifvehicleinfo[i][Engine] == 0)
{
// freeze the player here
}
else
{
unfreeze
}
}
And when a players enters a vehicle make a check like this
for(new i; i < MAX_VEHICLES; i++)
{
ifvehicleinfo[i][Engine] == 0)
{
// freeze the player here
}
else
{
unfreeze
}
}