announcement problem
#1

i made a annoucement from the wiki.sa-mp and it didn't work... can someone show me how to make it work? i did everything that it told me to. and no i don't get any errors, it just don't show my texts.

Код:
like this example:
Saw an player that cheats/hacking? report at: <site> or write /report [ID] [Reason]
Respect the rules! If you don't you WILL be banned!
If you break to many rules you will get an perm ban.
Do what the other administrators or moderators tells you! if not, you will be kicked/banned from the server.
you don't know the commands? write /help!
plz help ((
Reply
#2

Defines:
pawn Код:
/* ANNOUNCEMESGS */
#define ANNOUNCEMSG1    "Saw an player that cheats/hacking? report at: <site> or write /report [ID] [Reason]"
#define ANNOUNCEMSG2    "Respect the rules! If you don't you WILL be banned!"
#define ANNOUNCEMSG3    "If you break to many rules you will get an perm ban."
#define ANNOUNCEMSG4    "Do what the other administrators or moderators tells you! if not, you will be kicked/banned from the server."
#define ANNOUNCEMSG5    "You don't know the commands? write /help!"
OnGameModeInit:
pawn Код:
SetTimer("RandomMessages", 60 * 1000, 1);
Somewhere button on your script:
pawn Код:
forward RandomMessages();
public RandomMessages()
{
    switch(random(5))
    {
        case 0: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG1);
        case 1: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG2);
        case 2: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG3);
        case 3: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG4);
        case 4: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG5);

    }
}
This should work.
Reply
#3

Quote:
Originally Posted by FreshDoubleX
Посмотреть сообщение
Defines:
pawn Код:
/* ANNOUNCEMESGS */
#define ANNOUNCEMSG1    "Saw an player that cheats/hacking? report at: <site> or write /report [ID] [Reason]"
#define ANNOUNCEMSG2    "Respect the rules! If you don't you WILL be banned!"
#define ANNOUNCEMSG3    "If you break to many rules you will get an perm ban."
#define ANNOUNCEMSG4    "Do what the other administrators or moderators tells you! if not, you will be kicked/banned from the server."
#define ANNOUNCEMSG5    "You don't know the commands? write /help!"
OnGameModeInit:
pawn Код:
SetTimer("RandomMessages", 60 * 1000, 1);
Somewhere button on your script:
pawn Код:
forward RandomMessages();
public RandomMessages()
{
    switch(random(5))
    {
        case 0: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG1);
        case 1: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG2);
        case 2: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG3);
        case 3: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG4);
        case 4: SendClientMessageToAll(COLOR_RED, ANNOUNCEMSG5);

    }
}
This should work.
it works 100%! thanks! (you are going to our credits) thank you soooooo mutch!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)