Jump to content
  • 0

Cum fac un timer fara sa se opreasca


Question

Posted

Cum fac un timer fara sa se opreasca , adica am facut licentele sa expire si cand iesi dupa server , timeru sa nu se opreasca cat timp srv e on si timeru sa fie activ

3 answers to this question

Recommended Posts

Posted

http://wiki.sa-mp.com/wiki/SetTimer

forwarnd TimerulMeu();
SetTimer("TimerulMeu", 1000,  false); //1000 = 1 Secunda
public TimerulMeu()
{
    //Codul...
}
Ultimul parametru al Timerului il pui "false" daca vrei ca el sa ruleze doar o singura data functia respectiva.
forwarnd TimerulMeu();
SetTimer("TimerulMeu", 1000,  true); //1000 = 1 Secunda
public TimerulMeu()
{
    //Codul...
}

Sau "true" daca vrei ca timer-ul respectiv sa ruleze o anumita functie la fiecare Secunda in cazul exemplului de mai sus...

3r4AlPA.png

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.