[FilterScript] [FS] Timed help messages
#1

Download
This mod makes timings of different client messages for all. Up to 10 different types of messages. Its helpful to newbies in your server, who dont know server commands or so. Change the texts in the .pwn script.
Example: After 1 minute of server being online, a client message is sent for all including "Dont know the rules? Type /rules and also follow them." and after 2 minutes a message like "Type /teles for list of teleports.", after 10 minutes, the first message will reappear, then the second, etc.

If you still dont get what i mean, ask and ill try to explain better.
Reply
#2

Very basic... but good work for a first script!
Reply
#3

Quote:
Originally Posted by ((Lorenc))
Very basic... but good work for a first script!
Well, ive already made 2 scripts but yea its basic and i also try to make everything basic, and easy for other ppl to modify them if they want to.
Reply
#4

Could you perhaps make a /rules script too? I cant seem to find on anywhere i give you cookie!
Reply
#5

Quote:
Originally Posted by Toga
Could you perhaps make a /rules script too? I cant seem to find on anywhere i give you cookie!
I already made basic /rules command but trying to make it like forcing players to read rules before playing.
Reply
#6

Quote:
Originally Posted by Winded
Quote:
Originally Posted by Toga
Could you perhaps make a /rules script too? I cant seem to find on anywhere i give you cookie!
I already made basic /rules command but trying to make it like forcing players to read rules before playing.
Easy to make in OnPlayerConnect you put ShowPlayerDialog with DIALOG_STYLE_MSGBOX with list of rules. The callback work this way that if player dosen't press any button he will stay at connecting screen
Reply
#7

Quote:
Originally Posted by kamilbam
Quote:
Originally Posted by Winded
Quote:
Originally Posted by Toga
Could you perhaps make a /rules script too? I cant seem to find on anywhere i give you cookie!
I already made basic /rules command but trying to make it like forcing players to read rules before playing.
Easy to make in OnPlayerConnect you put ShowPlayerDialog with DIALOG_STYLE_MSGBOX with list of rules. The callback work this way that if player dosen't press any button he will stay at connecting screen
Thanks for the tip. Will also put somekind of timer so that they dont press that button straight away.
Reply
#8

all i need is
/rules
the the rules pop up in chat for THEM. It would be extremely helpfull to me.
Reply
#9

Quote:
Originally Posted by Toga
all i need is
/rules
the the rules pop up in chat for THEM. It would be extremely helpfull to me.
Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/rules", cmdtext, true) == 0)
	{
	  SendClientMessage(playerid, COLOR_YELLOW, "Your first rule here.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your second rule here.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your third rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your fourth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your fifth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your sixth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your seventh rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your eigth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your ninth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your tenth rule.");
	  TogglePlayerControllable(playerid,1);
	  return 1;
 	}
 	return 0;
}
Change stuff between every " and " to make the rules to your liking. You can also add more rules by making more SendClientMessage functions. Basicly what this does is give 10 rules to the client when he enters command "/rules"
Reply
#10

Quote:
Originally Posted by Winded
Quote:
Originally Posted by Toga
all i need is
/rules
the the rules pop up in chat for THEM. It would be extremely helpfull to me.
Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/rules", cmdtext, true) == 0)
	{
	  SendClientMessage(playerid, COLOR_YELLOW, "Your first rule here.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your second rule here.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your third rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your fourth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your fifth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your sixth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your seventh rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your eigth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your ninth rule.");
	  SendClientMessage(playerid, COLOR_YELLOW, "Your tenth rule.");
	  TogglePlayerControllable(playerid,1);
	  return 1;
 	}
 	return 0;
}
Change stuff between every " and " to make the rules to your liking. You can also add more rules by making more SendClientMessage functions. Basicly what this does is give 10 rules to the client when he enters command "/rules"
Compiled fine. but now it says "unable to load Rules.amx" wtf..
Reply
#11

lawl..
Reply
#12

Quote:
Originally Posted by Winded
Quote:
Originally Posted by ((Lorenc))
Very basic... but good work for a first script!
Well, ive already made 2 scripts but yea its basic and i also try to make everything basic, and easy for other ppl to modify them if they want to.
Sorry, I forgot to read your signature! lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)