Whats wrong?
#1

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 0;
}
return 1;
}
Reply
#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
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)