Key= death?
#8

Quote:
Originally Posted by Gooday
Посмотреть сообщение
Oh, Yes Without the snippet all works fine, Could u post a example if you know about "Lose health when crash" I mean I would like to synch the VehicleHealth with the PlayerHealth ...
You want the player to have the same health value as the car ?

If yes:
pawn Код:
public OnGameModeInit( )
{
    SetTimer( "vSync", 1000, true );
    return 1;
}

forward vSync( );
public vSync( )
{
    for( new i; i < MAX_PLAYERS; i ++ )
    {
        new Float:HP;
        GetVehicleHealth( GetPlayerVehicleID( i ), HP );
        SetPlayerHealth( i, HP / 10 );
    }

    return 1;
}
Reply


Messages In This Thread
Key= death? - by Gooday - 04.04.2012, 09:30
Re: Key= death? - by aRoach - 04.04.2012, 10:02
Re: Key= death? - by [HiC]TheKiller - 04.04.2012, 10:07
Re: Key= death? - by Gooday - 04.04.2012, 10:10
Re: Key= death? - by aRoach - 04.04.2012, 10:11
Re: Key= death? - by Gooday - 04.04.2012, 10:20
Re: Key= death? - by Reklez - 04.04.2012, 10:22
Re: Key= death? - by aRoach - 04.04.2012, 10:30
Re: Key= death? - by Gooday - 04.04.2012, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)