Help!!! !!! !!!
#5

Код:
	if(!strcmp(cmd, "/ann", true) && PlayerAdminLevel[playerid] == 1337)
	{
		new msg[256], seconds;
		seconds = strval(strtok(cmdtext,idx));
		if(seconds == 0)
		{
			SendClientMessage(playerid, CWARN," Server: /announce [time] [text]");
			SendClientMessage(playerid, CWARN, " Server: Colors for the text can be viewed at /aacolors");
			return 1;
		}
		msg = strrest(cmdtext,idx);
		format(tmp,sizeof(tmp),"~w~%s",msg);
		seconds = seconds * 1000;
		GameTextForAll(tmp,seconds,0);
		ToLog("announces", "%s: %s", PlayerName(playerid), msg);
		return 1;
	}

if(!strcmp(cmd, "/announce", true) && PlayerAdminLevel[playerid] == 1337)
	{
		new msg[256], seconds;
		seconds = strval(strtok(cmdtext,idx));
		if(seconds == 0)
		{
			SendClientMessage(playerid, CWARN," Server: /ann [time] [text]");
			SendClientMessage(playerid, CWARN, " Server: Colors for the text can be viewed at /aacolors");
			return 1;
		}
		msg = strrest(cmdtext,idx);
		format(tmp,sizeof(tmp),"~w~%s",msg);
		seconds = seconds * 1000;
		GameTextForAll(tmp,seconds,0);
		ToLog("announces", "%s: %s", PlayerName(playerid), msg);
		return 1;
	}
Reply


Messages In This Thread
Help!!! !!! !!! - by Joe2009 - 25.06.2009, 11:21
Re: Help!!! !!! !!! - by abhinavdabral - 25.06.2009, 11:25
Re: Help!!! !!! !!! - by gytisx - 25.06.2009, 11:29
Re: Help!!! !!! !!! - by Joe2009 - 25.06.2009, 11:37
Re: Help!!! !!! !!! - by abhinavdabral - 25.06.2009, 11:45

Forum Jump:


Users browsing this thread: 3 Guest(s)