Problem : Enter the car at death
#6

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 
0MAX_VEHICLESi++)
         {
             
SetVehicleParamsForPlayer(iplayerid01);
         }
     }
     return 
1;

or lock only the car player died in

PHP код:
public OnPlayerDeath(playerid)
{
     if(
IsPlayerInAnyVehicle(playerid))
     {
          
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), playerid01);
     }
     return 
1;

It is normal, when death is still enter the car next door.
Is there any other solution?
Reply


Messages In This Thread
Problem : Enter the car at death - by wilking - 11.06.2017, 08:08
Re: Problem : Enter the car at death - by Kane - 11.06.2017, 08:11
Re: Problem : Enter the car at death - by wilking - 11.06.2017, 08:17
Re: Problem : Enter the car at death - by wilking - 11.06.2017, 16:14
Re: Problem : Enter the car at death - by Whatname - 11.06.2017, 16:21
Re: Problem : Enter the car at death - by wilking - 11.06.2017, 18:26
Re: Problem : Enter the car at death - by Dokins - 11.06.2017, 23:57
Re: Problem : Enter the car at death - by Private200 - 12.06.2017, 00:17

Forum Jump:


Users browsing this thread: 1 Guest(s)