Advertisements
#1

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:

Код:
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;
}
Reply


Messages In This Thread
Advertisements - by Da_Noob - 23.01.2013, 14:06
Re: Advertisements - by LarzI - 23.01.2013, 14:11
Re: Advertisements - by theomanking - 23.01.2013, 14:11
Re: Advertisements - by Da_Noob - 23.01.2013, 14:18
Re: Advertisements - by Xbowman - 23.01.2013, 14:46
Re: Advertisements - by DiGiTaL_AnGeL - 23.01.2013, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)