Quote:
Originally Posted by Whatname
Will lock all cars for player if he died in a car
PHP код:
public OnPlayerDeath(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
SetVehicleParamsForPlayer(i, playerid, 0, 1);
}
}
return 1;
}
or lock only the car player died in
PHP код:
public OnPlayerDeath(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), playerid, 0, 1);
}
return 1;
}
|
It is normal, when death is still enter the car next door.
Is there any other solution?