Quote:
Originally Posted by leonardo1434
PHP код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new Float:vida,Float:x[3];
GetVehicleHealth(vehicleid,vida);
if(vida < 970)
{
RepairVehicle(vehicleid);
GetPlayerPos(playerid, x[0], x[1], x[2]);
SetPlayerPos(playerid, x[0], x[1], x[2]);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
SetPlayerArmour(playerid,0);
SetPlayerHealth(playerid,20);
SetPVarInt(playerid, "Proib", 1);
TogglePlayerControllable(playerid, 0);
}
return 1;
}
Nгo entendi muito bem o que й para fazer, mas deve funcionar.
|
Valeu, agora й difнcil bugar.
Me ensina oque vocк editou ?
>D