04.04.2012, 10:30
Quote:
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 ...
|
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;
}