[FS] Timed help messages -
Winded - 21.03.2010
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.
Re: [FS] Timed help messages -
Lorenc_ - 23.03.2010
Very basic... but good work for a first script!
Re: [FS] Timed help messages -
Winded - 23.03.2010
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.
Re: [FS] Timed help messages -
Toga - 23.03.2010
Could you perhaps make a /rules script too? I cant seem to find on anywhere

i give you cookie!
Re: [FS] Timed help messages -
Winded - 23.03.2010
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.
Re: [FS] Timed help messages -
kamilbam - 23.03.2010
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
Re: [FS] Timed help messages -
Winded - 23.03.2010
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.
Re: [FS] Timed help messages -
Toga - 23.03.2010
all i need is
/rules
the the rules pop up in chat for THEM. It would be extremely helpfull to me.
Re: [FS] Timed help messages -
Winded - 23.03.2010
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"
Re: [FS] Timed help messages -
Toga - 23.03.2010
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..
Re: [FS] Timed help messages -
ДitisOnHuora - 24.03.2010
lawl..
Re: [FS] Timed help messages -
Lorenc_ - 24.03.2010
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