Jump to content
  • 0

probleme mici cu KillTimer


Sfinx_17

Question

2 answers to this question

Recommended Posts

faci o variabila,globala


new Timer_NoMoney;
//pui cand intra in masina,sau la ce te refereai tu
Timer_NoMoney=SetTimerEx("GiveSomeMoney",1000,1,"i",playerid);

//functia
forward GiveSomeMoney(playerid);
public GiveSomeMoney(playerid)
{
GivePlayerMoney(playerid,100);//$100
return 1;
}
//si cand iese din masina
//la OnPlayerStateChange
if (newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER)
{
KillTimer(Timer_NoMoney);
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.