Quote:
Originally Posted by the_chaoz
you can do something like this:
pawn Код:
new Time[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/timetogetpay", true)) { new str[40] format(str, 40, "Time to get your pay: %i seconds", (Time[playerid]-GetTickCount())/1000); SendClientMessage(playerid, -1, str); return 1; } return 0; }
forward MyTimer(playerid); public MyTimer(playerid) { //Supose the timer interval to be 10000ms Time[playerid] = GetTickCount()+10000; //do something here }
|
Yeah, thanks, i think i will use this one