06.09.2012, 16:36
Change This:
To This:
EDIT: and delete
pawn Код:
public DamageUpdate(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
new Float:nhp;
nhp = GetVehicleHealth(vehicleid, nhp);
if(nhp != dhp[playerid]) SendClientMessage(playerid,-1,"{FFFFFF}Damage"), dhp[playerid] = nhp;
}
pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
new Float:nhp;
nhp = GetVehicleHealth(vehicleid, nhp);
if(nhp != dhp[playerid]) SendClientMessage(playerid,-1,"{FFFFFF}Damage"), dhp[playerid] = nhp;
return 1;
}
pawn Код:
forward DamageUpdate(playerid);