11.06.2017, 08:08
I want after death, enter a car next door will be disabled.
Please ask the Pro help .
Please ask the Pro help .
public OnPlayerDeath(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
SetVehicleParamsForPlayer(i, playerid, 0, 1);
}
}
return 1;
}
public OnPlayerDeath(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), playerid, 0, 1);
}
return 1;
}
Will lock all cars for player if he died in a car
PHP код:
PHP код:
|
Will lock all cars for player if he died in a car
PHP код:
PHP код:
|