25.02.2010, 03:13
Try it:
pawn Код:
forward DmvPlayerDamageTimer(playerid)
{
new Float:vhp;
GetVehicleHealth(GetPlayerVehicleID(playerid), vhp);
if(vhp < 700) SendClientMessage(playerid, 0xFFFFFF, "Yourcar health is now around 700!");
else if(vhp < 540)
{
SendClientMessage(playerid, 0xFFFFFF, "Your car health is now under 540. You will be charged for the repairings.");
GivePlayerMoney(playerid, -1000);
KillTimer(dmvPlayerDamageTimer[playerid]);
}
return 1;
}