How to call a global timer and to randomize server side moneys (points)
#2

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.

PHP код:
SetTimerEx("HideTextdraw"5000false"i"playerid); 
You should be fine that way.

EDIT: about the random function; just search the forums before asking.

PHP код:
stock randomEx(minmax)
{    
    
//Credits to ******    
    
new rand random(max-min)+min;    
    return 
rand;
}
// usage
new _randVal randomEx(510); // min value is 5, max is 10; assigned to _randVal 
Reply


Messages In This Thread
How to call a global timer and to randomize server side moneys (points) - by wallen - 06.02.2018, 14:01
Re: How to call a global timer and to randomize server side moneys (points) - by Private200 - 06.02.2018, 18:26
Re: How to call a global timer and to randomize server side moneys (points) - by dani18 - 06.02.2018, 18:47
Re: How to call a global timer and to randomize server side moneys (points) - by Private200 - 06.02.2018, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)