get timer
#1

hello i've made a command to mute players with Settimer in minuts,
i want if the player was muted he get message you will be unmuted after blala minutes how to get the timer to format it and send message to player?
Reply
#2

Using the function SetTimerEx wich allow you to use an "playerid" parameter.

Example:
SetTimerEx("yourtimername", time*1000*60, repeat, "i", playerid);

"yourtimerhere" = your timer name, choose whatever you want.
time * 1000 * 60 = where time = the amount of time the admin choose to mute him for (in minutes).
repeat = true or false
"i" = integrer, since playerid is an number.
playerid = we tell the computer that the i=integrer from above, we want it to recognize this i as the id of the player that has been mued.

Hope you understand, im not gonna give you the code cause is big and it will pretty much confuse you even more.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)