14.02.2013, 22:29
O incidente persiste ainda, eu bato o carro, vem alguйm curar, quando eu entro no carro volta para o /morrer, quando й socorrido pela 2 vez, entro no carro normalmente.
CODE:
CODE:
pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new Float:vida,veiculo;
new Float:X, Float:Y, Float:Z, Float:A;
veiculo = GetPlayerVehicleID(playerid);
GetVehicleHealth(veiculo,vida);
if(vida <970)
{
RepairVehicle(vehicleid);
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid,X+0,Y+4,Z+0);
GetPlayerFacingAngle(playerid, A);
SetPVarInt(playerid, "Proib", 1);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
SetPlayerArmour(playerid,0);
SetPlayerHealth(playerid,20);
TogglePlayerControllable(playerid, 0);
}
return 1;
}