Question
#6

Quote:
Originally Posted by Georgelopez1
Посмотреть сообщение
Just edit the "color" to a specific color id ( 0xFFFF00AA )
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/commands", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid, color,"Commands text here");
		return 1;
	}
	if (strcmp("/cmds", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid, color,"Commands text here");
		return 1;
	}
	return 0;
}
You can do that, or add:


pawn Код:
if(strcmp(cmd, "/commands", true) == 0 || strcmp(cmd, "/cmds", true) == 0)
{
SendClientMessage(playerid, COLOR_HERE, "The server commands are /kill and /tele");
// Other SendClientMessage things + other functions here.
}
return 1;
}
Pretty much same thing from comfycouch, but my codes sorta different where the CMD's are defined.
Reply


Messages In This Thread
Question - by zack3021 - 13.10.2010, 01:12
Re: Question - by Georgelopez1 - 13.10.2010, 01:23
Re: Question - by bigcomfycouch - 13.10.2010, 01:25
Re: Question - by Georgelopez1 - 13.10.2010, 01:27
Re: Question - by zack3021 - 13.10.2010, 01:27
Re: Question - by Las Venturas CNR - 13.10.2010, 01:29
Re: Question - by Georgelopez1 - 13.10.2010, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)