Command timer
#1

Hi, i want that the Command can be write all 2 Minutes.. but how?

Код:
	if(strcmp(cmd, "/askq", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /askq [text]");
				return 1;
			}
			format(string, sizeof(string), "Frage von %s: %s", sendername, (result));
			ABroadCast(COLOR_ASKQ,string,1);
			SendClientMessage(playerid, COLOR_ASKQ, "Deine Frage wurde an alle Online Admins verschickt.");
	  }
	  return 1;
	}
Reply


Messages In This Thread
Command timer - by DauerDicht - 12.09.2009, 22:55
Re: Command timer - by [HiC]TheKiller - 13.09.2009, 01:12
Re: Command timer - by DauerDicht - 13.09.2009, 11:17
Re: Command timer - by Calgon - 13.09.2009, 12:01

Forum Jump:


Users browsing this thread: 1 Guest(s)