23.01.2013, 14:06
So I want to make an /ad command, but I want it so only 1 advertisement every 60seconds can be send.
I know how to code the command, but I don't really understand timers. Can somebody make a timer for me so it works?
My cmd:
I know how to code the command, but I don't really understand timers. Can somebody make a timer for me so it works?
My cmd:
Код:
CMD:ad(playerid, params[]) { if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ad [chat]"); { new s[100]; format(s,sizeof(s), "Advertisement: %s, Name: %s, Ph: %s", params, GetName(playerid), PlayerInfo[playerid][pPhone]); SendClientMessageToAll(COLOR_GREEN, s); } return 1; }