PDA

View Full Version : [FilterScript] [FS] Announcement Messages


snipe69
02/01/2008, 05:32 AM
wow nice ;)
but there isnt already 1 ? but this is better coz dont need txt and that :-[

Alejandro
02/01/2008, 11:12 AM
wow this is nice. ive been looking for something like this.

kc
02/01/2008, 11:40 AM
nice work seif :)

ReX
02/01/2008, 12:23 PM
Nice, I need something like this :P

Rks25
02/01/2008, 12:28 PM
Seif is this also possible with textdraw??

ReX
02/01/2008, 12:44 PM
Yeah! It is possible... I can do it If you want

Rks25
02/01/2008, 12:45 PM
Please i would appreciate it.

Rksss

Grove
02/01/2008, 01:20 PM
Not a bad script, You should have made the amount of announcements Configurable though, imo.

Jashugan
02/01/2008, 01:23 PM
They are, just edit the script, you change a couple of number and add a couple of lines, nothing too complicated...

Francis[French]
02/01/2008, 09:42 PM
Simplified:


public GlobalAnnouncement()
{
SendClientMessageToAll(ANNOUNCEMENT,Announcements[Msg]);
Msg++;
if(Msg == 4) Msg =0;
return 1;
}

Antironix
02/01/2008, 09:44 PM
Francis, msg isn't increasing ;)

Francis[French]
02/01/2008, 09:46 PM
Francis, msg isn't increasing ;)
It is...

Antironix
02/01/2008, 09:50 PM
Francis ]

Francis, msg isn't increasing ;)
It is...



« Last Edit: Today at 10:45:55 pm by [SAP]Francis »
!!! you edited it :D

FuriousElf
19/01/2008, 08:53 AM
how can i make it that it says all the lines at one time ;)

Jashugan
19/01/2008, 01:04 PM
That's easy, do this:


top of your script: forward Announce();

under OnGameModeInIt: SetTimer("Announce",60000,true); (change 60000 (1 minute) to whatever you want, the true at the end means it repeats)

at the bottom of your script:

public Announce()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(i,COLOR_YOU_WANT,"1st message you want");
SendClientMessage(i,COLOR_YOU_WANT,"2nd message you want");
SendClientMessage(i,COLOR_YOU_WANT,"3rd message you want");
// add more messages if you need
}
return 1;
}

That should do it

hackers41
27/01/2008, 10:17 PM
gj thanks for this :P

Nice work bro ;)

Cheers from Poland

Pure_Devil
17/02/2008, 05:08 AM
Good Job!

:D

PinkFloydLover
17/02/2008, 06:53 AM
yes very very nice seif[P7]

Larry
19/02/2008, 12:59 PM
Nice Seif, Helpful for newbies.

Hannibal_Smith
19/02/2008, 04:01 PM
You are the MASTER :P :P

Pro
19/02/2008, 11:53 PM
Nice work, Any Screens?

STIJNtj
06/07/2008, 04:42 AM
*OPENING OLD TOPIC*
I really really need this one! But the pastebin link is broken..
Any mirrors or pastebin links plz??

zombie13333
06/07/2008, 05:03 AM
I think PasteBin is down atm >:(

[IB]Scorcher
06/07/2008, 07:10 AM
Nice nice..

Zh3r0
06/07/2008, 08:13 AM
I think PasteBin is down atm >:(

No more, you can .
seif, you got credits from me, :)
Thanks a lot for this.

Extremo
07/07/2008, 01:04 AM
All work i´ve seen from ya owns. Well we should probably making our own Studio together, We got some potential pros here tho

derrick1123
07/07/2008, 02:03 AM
I heard pastbin has been down a bit, so I got a mirror up. If you don't want it...Don't use it.
Mirror Download (http://sw337.servegame.com:8099/Mirrors/SA-MP/FS/Announcement%20Messages.pwn)

hadzx
14/10/2008, 04:20 PM
C:\Users\Administrator\Desktop\test.pwn(1) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(3) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(5) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(7) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(9) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(11) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(13) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(15) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(17) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(19) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(21) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(23) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(25) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(27) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(29) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(31) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(33) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(35) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(37) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(39) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(41) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(43) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(45) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(47) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\test.pwn(49) : error 001: expected token: ";", but found "."
C:\Users\Administrator\Desktop\test.pwn(56) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


:s Any Ideas? Befour It Worked Perfectly :mrgreen: But Then It Got Bugged I Fixed And Broke Any Ideas? :|

MenaceX^
15/10/2008, 08:34 PM
Do you have any picutres?

djdanni
19/10/2008, 07:15 PM
Can somone share this file with me?

djdanni
19/10/2008, 07:36 PM
It dose not woork for me :s

djdanni
19/10/2008, 07:43 PM
Yes this woork ,)

djdanni
19/10/2008, 07:47 PM
How is the Command?

ReV.
07/11/2008, 09:39 PM
ugh i followed what you said here

new Announcements[3][128] = { // Announcements[number of announcement messages][string lengh]
"CRL Operator: Need help always ask a admin or /help",
"CRL Operator: Use /teles for a list of commands!",
"CRL Operator: Build 71 is here!!!! Invite all of your friends New generation of UIF! :-)",
"CRL Operstor: In Order To Play you need to login",
};
//**FORWARDS**//
forward GlobalAnnouncement();
/*x---------------------------------CallBacks-------------------------------------x*/
public OnFilterScriptInit()
{
Msg = 0;
SetTimer("GlobalAnnouncement",60000,true); // Messages appears every 10 minutes
print("<|-----------------------------------------|>");
print("| .:[ - Announcement Messages FilterScript By Seif - ]:. |");
print("<|-----------------------------------------|>");
return 1;
}

public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;}
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg = 0;} //last message
}
return 1;
}



BUT get this

C:\Users\Compaq_Administrator\Desktop\samp\filters cripts\ann.pwn(27) : error 018: initialization data exceeds declared size
C:\Users\Compaq_Administrator\Desktop\samp\filters cripts\ann.pwn(29) : error 010: invalid function or declaration
C:\Users\Compaq_Administrator\Desktop\samp\filters cripts\ann.pwn(50) : error 032: array index out of bounds (variable "Announcements")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

hipy
15/12/2008, 04:05 PM
there is something wrong i see only 3 of the 8 messages i configured over and over again and not random sometimes i see like 5x 1 , 1x 2 en 123x message 3!

notec100
17/12/2008, 03:31 PM
Great Job Seif I'm loving it! Thank you! :)

Mr. M
12/01/2009, 10:20 PM
/*x---------------------------------Important-------------------------------------x*/
//**INCLUDES**//
#include <a_samp>
/*x---------------------------------Defining-------------------------------------x*/
//**COLORS*//
#define GREEN 0x21DD00FF //
#define RED 0xE60000FF ////
#define ADMIN_RED 0xFB0000FF //////
#define YELLOW 0xFFFF00FF ////////
#define ORANGE 0xF97804FF //////////
#define LIGHTRED 0xFF8080FF ////////////
#define LIGHTBLUE 0x00C2ECFF /////////////////
#define PURPLE 0xB360FDFF ///////////////////// Choice of multiple colors
#define PLAYER_COLOR 0xFFFFFFFF /////////////////
#define BLUE 0x1229FAFF ////////////
#define LIGHTGREEN 0x38FF06FF //////////
#define DARKPINK 0xE100E1FF ////////
#define DARKGREEN 0x008040FF //////
#define ANNOUNCEMENT 0x6AF7E1FF ////
#define COLOR_SYSTEM 0xEFEFF7AA ///
#define GRAY 0xCECECEFF //
//**VARIABLES**//
new Msg;
new Announcements[2][128] = { // Announcements[number of announcement messages][string lengh]
"MitchBot: Please talk English in Main Chat. For other languages use /pm.",
"MitchBot: Tired of killing? Type /jump !"
};
/*x---------------------------------CallBacks-------------------------------------x*/
public OnFilterScriptInit()
{
Msg = 0;
SetTimer("GlobalAnnouncement",600000,true); // Messages appears every 10 minutes
print("<|-----------------------------------------|>");
print("| .:[ - Announcement Messages FilterScript By Seif - ]:. |");
print("<|-----------------------------------------|>");
return 1;
}

public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg = 0;} // last message
}
return 1;
}


Error:

C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\Announ ceSeif.pwn(39) : warning 235: public function lacks forward declaration (symbol "GlobalAnnouncement")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.



Help please? :s

hamptonin
13/01/2009, 12:40 PM
Thanks sief very easy but good

Mr. M
13/01/2009, 03:20 PM
forward GlobalAnnouncement();



Where do i have to put that? :-[

notec100
14/01/2009, 01:30 AM
forward GlobalAnnouncement();



Where do i have to put that? :-[


Under your defines you would add the forward :) that's what I did and it worked.

kingdutch
05/04/2009, 10:47 AM
Just a tiny improvement so you only have to edit the size of your announcement array:

Turn
public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;}
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg = 0;} // last message
}
return 1;
}

into:

public GlobalAnnouncement()
{
SendClientMessageToAll(ANNOUNCEMENT,Announcements[Msg]);
Msg++;
if (Msg > sizeof Announcements) Msg = 0; //This line should be tested I always messup sizeof and strlen, should be good though
return 1;
}


Should work

Norn
05/04/2009, 10:50 AM
Just a tiny improvement so you only have to edit the size of your announcement array:

Turn
public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;}
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg = 0;} // last message
}
return 1;
}

into:

public GlobalAnnouncement()
{
SendClientMessageToAll(ANNOUNCEMENT,Announcements[Msg]);
Msg++;
if (Msg > sizeof Announcements) Msg = 0; //This line should be tested I always messup sizeof and strlen, should be good though
return 1;
}


Should work


Look at the last post date.

T.I.
10/04/2009, 07:54 PM
I am confused...
Where to put the messages which all the players get?I mean the advertisments...

DauerDicht
10/04/2009, 08:33 PM
how can i make more than 1 line?

example:

1 message:

#########################
blablabla
blablabla
blablabla
#########################

and this with random colours?

FranKyG70
10/04/2009, 08:44 PM
how can i make more than 1 line?

and this with random colours?

on the top

forward amsgF();


ongamemodeinit (or onfilterscriptinit)

SetTimer("amsgF", 60000, 1);
// new msg evry 60s

onpublic:
public amsgF()
{
SendClientMessageToAll(CHANGE_ME, #########################);
SendClientMessageToAll(CHANGE_ME, blablablabla);
SendClientMessageToAll(CHANGE_ME, blablablabla);
SendClientMessageToAll(CHANGE_ME, blablablabla);
SendClientMessageToAll(CHANGE_ME, #########################);
return 1;
}


the easier way....hope you dont mind

DauerDicht
10/04/2009, 08:58 PM
Ok thx and how i make more than 1 message??

is this right so

/*x---------------------------------Important-------------------------------------x*/
//**INCLUDES**//
#include <a_samp>
/*x---------------------------------Defining-------------------------------------x*/
//**COLORS*//
#define GREEN 0x21DD00FF //
#define RED 0xE60000FF ////
#define ADMIN_RED 0xFB0000FF //////
#define YELLOW 0xFFFF00FF ////////
#define ORANGE 0xF97804FF //////////
#define LIGHTRED 0xFF8080FF ////////////
#define LIGHTBLUE 0x00C2ECFF /////////////////
#define PURPLE 0xB360FDFF ///////////////////// Choice of multiple colors
#define PLAYER_COLOR 0xFFFFFFFF /////////////////
#define BLUE 0x1229FAFF ////////////
#define LIGHTGREEN 0x38FF06FF //////////
#define DARKPINK 0xE100E1FF ////////
#define DARKGREEN 0x008040FF //////
#define ANNOUNCEMENT 0x6AF7E1FF ////
#define COLOR_SYSTEM 0xEFEFF7AA ///
#define GRAY 0xCECECEFF //
//**VARIABLES**//
new Msg;
new Announcements[3][128] = { // Announcements[number of announcement messages][string lengh]
"Announcement: This filterscript is made by Seif",
"Announcement: Feel free to use it but give credit if due",
"Announcement: And edit these messages or people will think your server is weird. :-)"
};
//**FORWARDS**//
forward GlobalAnnouncement();
forward amsgF();
/*x---------------------------------CallBacks-------------------------------------x*/
public OnFilterScriptInit()
{
Msg = 0;
SetTimer("GlobalAnnouncement",600000,true); // Messages appears every 10 minutes
SetTimer("amsgF", 60000, 1);
print("<|-----------------------------------------|>");
print("| .:[ - Announcement Messages FilterScript By Seif - ]:. |");
print("<|-----------------------------------------|>");
return 1;
}

public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg = 0;} // last message
}
return 1;
}

public amsgF()
{
SendClientMessageToAll(0x38FF06FF , #####################################);
SendClientMessageToAll(0xFF8080FF, Herzlich Willkommen auf dem SanAndreasWorld Real Life Server);
SendClientMessageToAll(0xFF8080FF, Falls du Fragen, Probleme oder Beschwerden hast, dann wende dich an unser Forum oder schreibe einen Admin an (/admins);
SendClientMessageToAll(0xFF8080FF, Wir wünschen dir Viel Spaß auf SanAndreasWorld!);
SendClientMessageToAll(0x38FF06FF, ..........................another text);
SendClientMessageToAll(0x38FF06FF , #####################################);
return 1;
}

i get this errors

: error 017: undefined symbol "Herzlich"
: error 017: undefined symbol "Willkommen"
: error 017: undefined symbol "auf"
fatal error 107: too many error messages on one line

FranKyG70
10/04/2009, 09:07 PM
public amsgF()
{
SendClientMessageToAll(0x38FF06FF , "#####################################");
SendClientMessageToAll(0xFF8080FF, "Herzlich Willkommen auf dem SanAndreasWorld Real Life Server");
SendClientMessageToAll(0xFF8080FF, "Falls du Fragen, Probleme oder Beschwerden hast, dann wende dich an unser Forum oder schreibe einen Admin an (/admins)");
SendClientMessageToAll(0xFF8080FF, "Wir wünschen dir Viel Spaß auf SanAndreasWorld!");
SendClientMessageToAll(0x38FF06FF, "..........................another text");
SendClientMessageToAll(0x38FF06FF , "#####################################");
return 1;
}

u forgot the " (i forgot too)

and i really dont get it what you want. more messages/min like this??

edit:

maybe i know what you want:
(this is from my amsg fs, u can find the whole thing: Here... (http://forum.sa-mp.com/index.php?topic=97308.msg619001#msg619001))
#include <a_samp>

forward amsgF();

new amsg;

public amsgF()
{
switch (amsg)
{
case 0:
{
SendClientMessageToAll(0x38FF06FF , "#####################################");
SendClientMessageToAll(0xFF8080FF, "Herzlich Willkommen auf dem SanAndreasWorld Real Life Server");
SendClientMessageToAll(0xFF8080FF, "Falls du Fragen, Probleme oder Beschwerden hast, dann wende dich an unser Forum oder schreibe einen Admin an (/admins)");
SendClientMessageToAll(0xFF8080FF, "Wir wünschen dir Viel Spaß auf SanAndreasWorld!");
SendClientMessageToAll(0x38FF06FF, "..........................another text");
SendClientMessageToAll(0x38FF06FF , "#####################################");
}
case 1:
{
SendClientMessageToAll(0x38FF06FF , "#####################################");
SendClientMessageToAll(0xFF8080FF, "here comes the other messages");
SendClientMessageToAll(0xFF8080FF, "here comes the other messages");
SendClientMessageToAll(0xFF8080FF, "here comes the other messages");
SendClientMessageToAll(0x38FF06FF, "here comes the other messages");
SendClientMessageToAll(0x38FF06FF , "#####################################");
}
}
if (amsg == 2)
{
amsg = 0;
}
else
{
amsg++;
}
}

public OnFilterScriptInit()
{
SetTimer("amsgF", 60000, 1);
return 1;
}

this will send a NeW message/min so first its send the case0 then the case 1, and starting again. (you can add more but dont forget to change the "if (amsg == 2)" line the lines number you have.

DauerDicht
10/04/2009, 09:47 PM
thx

#include <a_samp>

forward amsgF();

new amsg;

public amsgF()
{
switch (amsg)
{
case 0:
{
SendClientMessageToAll(0x38FF06FF , "#####################################");
SendClientMessageToAll(0xFF8080FF, "Herzlich Willkommen auf dem SanAndreasWorld Real Life Server");
SendClientMessageToAll(0xFF8080FF, "Falls du Fragen, Probleme oder Beschwerden hast, dann wende dich an unser Forum oder schreibe einen Admin an (/admins)");
SendClientMessageToAll(0xFF8080FF, "Wir wünschen dir Viel Spaß auf SanAndreasWorld!");
SendClientMessageToAll(0x38FF06FF, "..........................another text");
SendClientMessageToAll(0x38FF06FF , "#####################################");
}
case 1:
{
SendClientMessageToAll(0x38FF06FF , "#####################################");
SendClientMessageToAll(0xFF8080FF, "here comes the other messages");
SendClientMessageToAll(0xFF8080FF, "here comes the other messages");
SendClientMessageToAll(0xFF8080FF, "here comes the other messages");
SendClientMessageToAll(0x38FF06FF, "here comes the other messages");
SendClientMessageToAll(0x38FF06FF , "#####################################");
}
}
if (amsg == 2)
{
amsg = 0;
}
else
{
amsg++;
}
}

public OnFilterScriptInit()
{
SetTimer("amsgF", 60000, 1);
return 1;
}

thats all the code or? nothing i need more ?

DauerDicht
10/04/2009, 09:50 PM
i take this code, compile and want load with loadfs name

but then

"Filterscript 'message.amx' load failed"

WHYYYYYY?!

FranKyG70
10/04/2009, 09:57 PM
i take this code, compile and want load with loadfs name

but then

"Filterscript 'message.amx' load failed"

WHYYYYYY?!


i tested it, and its working fine....maybe it says failed because you loaded it before (its loaded with server.. i dont know why you want to load)

DauerDicht
10/04/2009, 10:17 PM
i take this code, compile and want load with loadfs name

but then

"Filterscript 'message.amx' load failed"

WHYYYYYY?!


i tested it, and its working fine....maybe it says failed because you loaded it before (its loaded with server.. i dont know why you want to load)


what do u mean?? i load it with rcon console!

FranKyG70
10/04/2009, 10:21 PM
i take this code, compile and want load with loadfs name

but then

"Filterscript 'message.amx' load failed"

WHYYYYYY?!


i tested it, and its working fine....maybe it says failed because you loaded it before (its loaded with server.. i dont know why you want to load)


what do u mean?? i load it with rcon console!


but why? just start your server and thats it.....but dont forget to add your server.cfg (i can load it via rcon)

DauerDicht
10/04/2009, 10:27 PM
i take this code, compile and want load with loadfs name

but then

"Filterscript 'message.amx' load failed"

WHYYYYYY?!


i tested it, and its working fine....maybe it says failed because you loaded it before (its loaded with server.. i dont know why you want to load)


what do u mean?? i load it with rcon console!


but why? just start your server and thats it.....but dont forget to add your server.cfg (i can load it via rcon)


ah okay, because if i test a FS i load it with Rcon console to look if it work

(bad english^^)

FranKyG70
10/04/2009, 10:38 PM
ah okay, because if i test a FS i load it with Rcon console to look if it work

(bad english^^)


no problem, bad english here too :lol:
btw try it, i hope itll work...it should work....it have to work :P

DauerDicht
10/04/2009, 10:51 PM
omg lol i dont know why its not work... if i connect my game crash!! (if the "FS" loading!!"

:(

FranKyG70
10/04/2009, 10:59 PM
omg lol i dont know why its not work... if i connect my game crash!! (if the "FS" loading!!"

:(


its working for me, my friend and some others..... i dont know why isnt working for you

what mod are you using?

for test only i loaded it on my server (81.182.190.223:7777)

i loaded this FS (amsg.amx) and Area51 by Mike for testing, try it. The Rcon is 12345

DauerDicht
10/04/2009, 11:05 PM
do you have teamviewer??

can u add me in icq 20 80 55 2 2 2

ty :)

FranKyG70
10/04/2009, 11:07 PM
do you have teamviewer??

can u add me in icq 20 80 55 2 2 2

ty :)


sorry i dont have the "iseekyou" i only have msn and skype.

and try download the amsg script and edit that or sth, because its working for me as is said before :D

rokiz
17/04/2009, 05:20 PM
This is really Nice! Thank you.

RyDeR`
17/04/2009, 09:23 PM
Thx Seif_ Nice One :lol:

andrewgilf
23/07/2009, 12:42 AM
The link is dead.
Do you have a new one?

yuichi
23/07/2009, 01:06 AM
he added to his topic so first look http://pastebin.com/f7b43228f ...

SG_Brian
29/07/2009, 07:06 AM
/*x---------------------------------Important-------------------------------------x*/
//**INCLUDES**//
#include <a_samp>
/*x---------------------------------Defining-------------------------------------x*/
//**COLORS*//
#define GREEN 0x21DD00FF //
#define RED 0xE60000FF ////
#define ADMIN_RED 0xFB0000FF //////
#define YELLOW 0xFFFF00FF ////////
#define ORANGE 0xF97804FF //////////
#define LIGHTRED 0xFF8080FF ////////////
#define LIGHTBLUE 0x00C2ECFF /////////////////
#define PURPLE 0xB360FDFF ///////////////////// Choice of multiple colors
#define PLAYER_COLOR 0xFFFFFFFF /////////////////
#define BLUE 0x1229FAFF ////////////
#define LIGHTGREEN 0x38FF06FF //////////
#define DARKPINK 0xE100E1FF ////////
#define DARKGREEN 0x008040FF //////
#define ANNOUNCEMENT 0x6AF7E1FF ////
#define COLOR_SYSTEM 0xEFEFF7AA ///
#define GRAY 0xCECECEFF //
//**VARIABLES**//
new Msg;
new Announcements[12][128] = { // Announcements[number of announcement messages][string lengh]
"Announcement: Maybe you should check the forums?",
"Announcement: We need Donators!!!Please check out: lsrp.forumotions.com",
"Announcement: Need a job? Ask in /n What jobs are avaible",
"Announcement: Server Owned by Brian_Murphy,Co-owner: Erxaz",
"Announcement: Wanna be admin? Just ask with /askq",
"Announcement: Current GameMode: LA-RP V9.0",
"Announcement: Announcement filterscript is made by Seif",
"Announcement: Feel free to ask any questions",
"Announcement: Cheating/Hacking == Ban",
"Announcement: Scripters atm: Darren,Brian",
"Announcement: Wanna joina faction, Check the forums",
"Announcement: Use /help for avaible commands"
};
//**FORWARDS**//
forward GlobalAnnouncement();
/*x---------------------------------CallBacks-------------------------------------x*/
public OnFilterScriptInit()
{
Msg = 0;
SetTimer("GlobalAnnouncement",600000,true); // Messages appears every 10 minutes
print("<|-----------------------------------------|>");
print("| .::Announcement Messages FilterScript By Seif::. |");
print("<|-----------------------------------------|>");
return 1;
}

public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;} // first message
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg++;} // first message
case 5: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[5]); Msg++;}
case 6: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[6]); Msg++;} // first message
case 7: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[7]); Msg++;}
case 8: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[8]); Msg++;} // first message
case 9: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[9]); Msg++;}
case 10: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[10]); Msg++;} // first message
case 11: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[11]); Msg++;}
case 12: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[12]); Msg = 0;} // last message
}
return 1;
}
E:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\Announce.pwn(67) : error 032: array index out of bounds (variable "Announcements")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

xCoder
15/09/2009, 09:41 PM
can use with helpbot ! :D:D

Jeffry
28/10/2009, 10:57 AM
This is exactly what i looked for. Thank you. !!!! :D

RealCop228
24/02/2010, 03:32 PM
This is probably about the BEST Announcement script out! Thanks man!

aircombat
24/02/2010, 11:05 PM
nice one seif :D ;)
________
Body science (http://bodyscience.ws/)

Bomber
24/02/2010, 11:16 PM
new Msg;
new Announcements[12][128] = { // Announcements[number of announcement messages][string lengh]
"Announcement: Maybe you should check the forums?",
"Announcement: We need Donators!!!Please check out: lsrp.forumotions.com",
"Announcement: Need a job? Ask in /n What jobs are avaible",
"Announcement: Server Owned by Brian_Murphy,Co-owner: Erxaz",
"Announcement: Wanna be admin? Just ask with /askq",
"Announcement: Current GameMode: LA-RP V9.0",
"Announcement: Announcement filterscript is made by Seif",
"Announcement: Feel free to ask any questions",
"Announcement: Cheating/Hacking == Ban",
"Announcement: Scripters atm: Darren,Brian",
"Announcement: Wanna joina faction, Check the forums",
"Announcement: Use /help for avaible commands"
};

**************You have here 12 announcement **************





public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;} // first message
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg++;} // first message
case 5: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[5]); Msg++;}
case 6: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[6]); Msg++;} // first message
case 7: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[7]); Msg++;}
case 8: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[8]); Msg++;} // first message
case 9: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[9]); Msg++;}
case 10: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[10]); Msg++;} // first message
case 11: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[11]); Msg++;}
case 12: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[12]); Msg = 0;} // last message
}
return 1;

******* But Here you have 13 ANNOUBCEMENT ********** Remove 1 :D


Just remove 1 case from public GlobalAnnouncement()

Payder
20/03/2010, 07:52 AM
not bad

Juanxz
22/03/2010, 12:43 PM
How can I add color to the announcement?

RealCop228
22/03/2010, 01:15 PM
How can I add color to the announcement?


Easy. These lines you would be able to do that.

public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(COLOR_LIGHTGREEN,Announcem ents[0]); Msg++;}
case 1: {SendClientMessageToAll(COLOR_LIGHTGREEN,Announcem ents[1]); Msg++;}
case 2: {SendClientMessageToAll(COLOR_LIGHTGREEN,Announcem ents[2]); Msg++;}
case 3: {SendClientMessageToAll(COLOR_LIGHTGREEN,Announcem ents[3]); Msg++;}
case 4: {SendClientMessageToAll(COLOR_LIGHTGREEN,Announcem ents[4]); Msg++;}
case 5: {SendClientMessageToAll(COLOR_LIGHTGREEN,Announcem ents[5]); Msg++;}
case 6: {SendClientMessageToAll(COLOR_LIGHTGREEN,Announcem ents[6]); Msg = 0;}
}
return 1;
}

So were it says COLOR_LIGHTGREEN, you could change it to whatever color you have. :) Hope this helped. Good luck.

Juanxz
23/03/2010, 09:07 AM
Thanks a bunch NPTechStudios :)
That helped a lot.

candyboy
23/04/2010, 05:09 PM
where to paste colour number. eg(054512x5a484d) to get colour for message

BiG_bEaR
30/05/2010, 08:18 AM
How can i add more lines , cuz now are 3 how can I make them 5 or 6

candyboy
30/05/2010, 11:54 AM
How can i add more lines , cuz now are 3 how can I make them 5 or 6
Just Add More like this "Announcement: Use /help for avaible commands"

~Ricky~
30/05/2010, 12:14 PM
How can i add more lines , cuz now are 3 how can I make them 5 or 6


Example:
new Announcements[6][128] = { // Announcements[number of announcement messages][string lengh]
"Announcement: This filterscript is made by Seif",
"Announcement: Feel free to use it but give credit if due",
"Announcement: And edit these messages or people will think your server is weird. :-)",
"Announcement: Type /commands to view the list of the server commands",
"Announcement: Type /rules to read the server rules. Make sure to understand 'em!",
"Announcement: Type /rules to read the server rules. Make sure to understand 'em!"
};

Just add instead of 5 the number of massages you like to have.
And don't put a "," on the last massage.

On the public:

public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;}
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 5: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg = 0;} // last message
}
return 1;
}

one more


And nice system Seif_ :D

BiG_bEaR
30/05/2010, 02:53 PM
How can i add more lines , cuz now are 3 how can I make them 5 or 6


Example:
new Announcements[6][128] = { // Announcements[number of announcement messages][string lengh]
"Announcement: This filterscript is made by Seif",
"Announcement: Feel free to use it but give credit if due",
"Announcement: And edit these messages or people will think your server is weird. :-)",
"Announcement: Type /commands to view the list of the server commands",
"Announcement: Type /rules to read the server rules. Make sure to understand 'em!",
"Announcement: Type /rules to read the server rules. Make sure to understand 'em!"
};

Just add instead of 5 the number of massages you like to have.
And don't put a "," on the last massage.

On the public:

public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;}
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 5: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg = 0;} // last message
}
return 1;
}

one more


And nice system Seif_ :D

It worked ;) , but the message appears in 10 minutes is there a way to make it 5 ?

[FoR]EveR
24/02/2012, 05:36 PM
and where is a donwoald ?