06.02.2018, 18:26
First of all, you are using a global textdraw and value will change for everybody; I don't know if that was your intention in first place, just letting you know.
Secondly, use SetTimerEx and forward the player id through it.
You should be fine that way.
EDIT: about the random function; just search the forums before asking.
Secondly, use SetTimerEx and forward the player id through it.
PHP код:
SetTimerEx("HideTextdraw", 5000, false, "i", playerid);
EDIT: about the random function; just search the forums before asking.
PHP код:
stock randomEx(min, max)
{
//Credits to ******
new rand = random(max-min)+min;
return rand;
}
// usage
new _randVal = randomEx(5, 10); // min value is 5, max is 10; assigned to _randVal