Clear Chat command for admin + A special line
#1

Hi, I am producing a ceremony script for my RPG clan. I want a command so the admin can clear the chat by typing /begin-ceremony and this will clear the chat. Then the first line after clearing the line will say 'THE CEREMONY BEGINS!' Is there someway of doing such thing? Thank You.

P.S - I am stuck also with /flowers command which would give you flowers as command. My command was wrong and i deleted it somewhere. Can u help please? I would be really grateful peoples...
Reply
#2

Quote:
Originally Posted by Puzi
Hi, I am producing a ceremony script for my RPG clan. I want a command so the admin can clear the chat by typing /begin-ceremony and this will clear the chat. Then the first line after clearing the line will say 'THE CEREMONY BEGINS!' Is there someway of doing such thing? Thank You.

P.S - I am stuck also with /flowers command which would give you flowers as command. My command was wrong and i deleted it somewhere. Can u help please? I would be really grateful peoples...
Hi there,

Why would you like to copy SAP's ceremony script?

To do this, you only need SendClientMessage.

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
Reply
#3

Код:
 	if(strcmp(cmdtext, "/clearchat", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 1)
			{
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, "- THE CEREMONY BEGINS-");
				return 1;
			}
Try this, I am not sure if it works, but try it.
( I am a beginner in scripting, so don't blame me. )
Reply
#4

Quote:
Originally Posted by tehroxor
Код:
 	if(strcmp(cmdtext, "/clearchat", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 1)
			{
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, " ");
				SendClientMessageToAll(COLOR_SYSTEM, "- THE CEREMONY BEGINS-");
				return 1;
			}
Try this, I am not sure if it works, but try it.
( I am a beginner in scripting, so don't blame me. )
Hi there,

This wouldn't work like you would want it to work, unfortunately for you. Use that:

pawn Код:
for(new i=0; i<49; i++) { SendClientMessageToAll(0xFFFFFFFF, " "); }
SendClientMessageToAll(0xFFFFFFFF, "The ceremony begins.");
Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
Reply
#5

Thanks, hope this one here helps

Reply to francis: whats a SAP? i dont think i heard about this one but maybe yes :P besides, i saw some ceremonies been made on rpg servers, so i think it may fun for my clan
Reply
#6

Quote:
Originally Posted by Puzi
Reply to francis: whats a SAP? i dont think i heard about this one but maybe yes :P besides, i saw some ceremonies been made on rpg servers, so i think it may fun for my clan
Hi there,

Don't mind about it.

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
Reply
#7

Seems to be working thank you very much ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)