Whats wrong?
#2

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/help", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid, COLOR_ORANGE, "/commands");
		return 1;
	}
	if (strcmp("/commands", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid, COLOR_ORANGE, "here are the commands");
		return 1;
	}
	if(strcmp(cmdtext,"/cd",true)==0)
	{
		cd_sec = 5;
		cd_timer = SetTimer("countdown", 999, 1);
		return 1;
	}
	return 1;
}
Reply


Messages In This Thread
Whats wrong? - by shoru93 - 27.11.2009, 21:35
Re: Whats wrong? - by Adamus - 27.11.2009, 21:37
Re: Whats wrong? - by shoru93 - 27.11.2009, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)