SA-MP Forums Archive
[FilterScript] Random Message System - 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)
+--- Thread: [FilterScript] Random Message System (/showthread.php?tid=532174)



Random Message System - SkillNasr - 16.08.2014

Random Message System


What That?
This Filterscript say to all player a random message , you can edit the message

Bugs?
PM me or Reply Here !

Download :

Pastebin



Re: Random Message System - Kaperstone - 16.08.2014

pawn Код:
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define COLOR_DARKBLUE 0x00008BFF
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
 
public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print("Random Message System By SkillNasr      ");
        print("--------------------------------------\n");
        SetTimer("message1",30000,false);
        return 1;
}
#endif
The "define" "if defined" is useless, also if you don't define it, the compiler will return errors for the colors because you define them only if FILTERSCRIPT is defined


Nevertheless, why not pack it into one repeating timer ?


Re: Random Message System - SkillNasr - 16.08.2014

sorry i have do it fast ty wait i fix em

-Edited : Link are edited , Ty So much


Re: Random Message System - Team_PRO - 16.08.2014

Put it into one timer only.


Re: Random Message System - Kaperstone - 17.08.2014

you left the #endif in it


Re: Random Message System - iNiko - 17.08.2014

It's simple
Anyways nice as a newbie scripter


Re: Random Message System - SkillNasr - 17.08.2014

Quote:
Originally Posted by Team_PRO
Посмотреть сообщение
Put it into one timer only.
Change time to what you want
SetTimer("message1",30000,false);
The 30000 are time you can edit to 1
SetTimer("message1",1,false);


Re: Random Message System - ScRipTerZ - 18.08.2014

Dude 30000ms = 30 sec it is too long change by 5000 or 3000
and 1 is too fast and not work


Re: Random Message System - SkillNasr - 18.08.2014

Quote:
Originally Posted by ScRipTerZ
Посмотреть сообщение
Dude 30000ms = 30 sec it is too long change by 5000 or 3000
and 1 is too fast and not work
x)) you can change it
PHP код:
SetTimer("message1",5000,false); 



Re: Random Message System - Biesmen - 18.08.2014

I... don't like it. It's bad and poorly programmed.


Re: Random Message System - SkillNasr - 18.08.2014

Quote:
Originally Posted by Biesmen
View Post
I... don't like it. It's bad and poorly programmed.
Sorry it my First FilterScript