Jump to content
  • 0

probleme mici cu KillTimer


Question

2 answers to this question

Recommended Posts

Posted

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);
}

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.