[Help] SetTimerEx
#8

Код:
yourtimer[playerid] = SetTimerEx(...); // Please Change var and other things by yourself...
Код:
forward DmvPlayerDamageTimer(playerid);
public 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(yourtimer[playerid]); // Change it Please...
  }
  return 1;
}
Reply


Messages In This Thread
[Help] SetTimerEx - by Niixie - 24.02.2010, 17:30
Re: [Help] SetTimerEx - by BlackFoX - 24.02.2010, 17:33
Re: [Help] SetTimerEx - by Niixie - 24.02.2010, 18:22
Re: [Help] SetTimerEx - by BlackFoX - 24.02.2010, 18:32
Re: [Help] SetTimerEx - by Niixie - 24.02.2010, 19:07
Re: [Help] SetTimerEx - by Miguel - 25.02.2010, 03:13
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 12:12
Re: [Help] SetTimerEx - by BlackFoX - 25.02.2010, 12:50
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 13:15
Re: [Help] SetTimerEx - by smeti - 25.02.2010, 13:21
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 13:51
Re: [Help] SetTimerEx - by BlackFoX - 25.02.2010, 14:00
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 14:10
Re: [Help] SetTimerEx - by smeti - 25.02.2010, 16:53
Re: [Help] SetTimerEx - by Niixie - 26.02.2010, 14:51
Re: [Help] SetTimerEx - by smeti - 26.02.2010, 16:04
Re: [Help] SetTimerEx - by Niixie - 26.02.2010, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)