SA-MP Forums Archive
[Include] HelpBox - Stop flood in Chatbox ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] HelpBox - Stop flood in Chatbox ! (/showthread.php?tid=542733)



HelpBox - Stop flood in Chatbox ! - Wallegi - 21.10.2014

Hi !

Today, I share a simply include very usefull !

Credits:
Wallegi: Idea for include and creation
Papawy: Hook + upgrade
Matnix: Function fix_caracter

This include has six functions:
- SendHelpBoxMessage(playerid, color, text[]);
- SendAllHelpBoxMessage(color, text[]);
- ShowHelpBoxForPlayer(playerid);
- HideHelpBoxForPlayer(playerid);
- SetHideKeyForPlayer(playerid, key);
- SetHideKeyForAll(key);

A key is assigned in this include: the key Y (default). It can be changed later with the functions above, but there is no backup at a restart.
This key is for show/hide the HelpBox for the player.

This can be used to send help message rather than flood it the chatlog



(Sorry for my bad english, i'm french.)



Respuesta: HelpBox - Stop flood in Chatbox ! - JustBored - 21.10.2014

Can you show us an image about how is the messagebox?.


Re : HelpBox - Stop flood in Chatbox ! - Wallegi - 21.10.2014

Yeah

You can change the text color:




Re: HelpBox - Stop flood in Chatbox ! - IDarkness - 22.10.2014

Nice one rep4u


Re: HelpBox - Stop flood in Chatbox ! - TakeiT - 22.10.2014

Actually, that's a good idea. However, if it's spamming, you're gonna miss people's questions, so it's not a very good solution, that I can see. +1 for the effort though, it's great for things like sending info or debug messages


Re: HelpBox - Stop flood in Chatbox ! - Crayder - 22.10.2014

Actually it's a pretty good idea I'd say... I might use this, I hardly ever use other people's work... REP4U