31.01.2014, 14:39
I've made a topic about this, but i still didn't understand stuff..
I want to try to make an command, which shows for how long the player has been online.
But i never got to understand how gettime works.
I'm thinking about this kind of stuff:
And of-course this is just a random example command..
Would something like that work, or no?
I want to try to make an command, which shows for how long the player has been online.
But i never got to understand how gettime works.
I'm thinking about this kind of stuff:
pawn Код:
CMD:onlinetime(playerid, params[]) {
new string[64], Minutes;
Minutes = gettime(minute);
format(string, sizeof(string), "[NOTE] - You've been online for %d minutes!", Minutes);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
Would something like that work, or no?