16.05.2014, 16:29
do
new IsAttached[MAX_VEHICLES];
and then in the code that i gived to you, do that :
new IsAttached[MAX_VEHICLES];
and then in the code that i gived to you, do that :
pawn Код:
if(oldstate == PLAYER_IN_FOOT && newstate == PLAYER_DRIVE)
{
if(GetVehicleModel(vehicleid) == 411)
{
if(IsAttached(vehicleid) == 0)
{
LSPDizeInfernus(vehicle);
IsAttached[vehicleid] =1;
}
}
}
if(oldstate == PLAYER_DRIVE && newstate == PLAYER_IN_FOOT)
{
if(GetVehicleModel(vehicleid) == 411)
{
if(IsAttached(vehicleid) == 1)
{
LSPDizeInfernus(vehicle);
IsAttached[vehicleid] =0;
}
}
}