[FilterScript] Random Messages Script !
#1

Hi Guys Its My First Filterscripts In My Life,
Hope You All Like It,
Im Compress It Without Error,
Im Newbie ! So Teach Me To Be Like You All


Download Here :

http://www.uploadmb.com/dw.php?id=1365408441
Reply
#2

nice +1
Reply
#3

Thanks #Xport6050
Reply
#4

Maybe If You Stop Writing Like This.
Reply
#5

Like What?
Reply
#6

You can use pastebin for short scripts like this.
Also :
Did you compile this ? ( the .pwn file of your script )
pawn Код:
//Credits To Giroud12//

#include <a_samp>

forward Servermessage();
public OnGameModeInit
SetTimer("Servermessage",1800000,1);
public Servernachricht()()
{
new rand = random(2);
 return 1;
}
switch(rand)
{
case 0: //If random select case 0
{
SendClientMessageToAll(-1,"[Bot]:Welcome To YourServerName 0.3x !");
}
case 1: //If Random select case 1
{
 SendClientMessageToAll(-1,"[Bot]:Play Fair And Follow Server Rules !");
}
case 1: //If Random select case 2
{
 SendClientMessageToAll(-1,"[Bot]:Use /report To Report Hackers !");
}
case 0: //If random select case 3
{
SendClientMessageToAll(-1,"[Bot]:Use /admins To See How Many Admins Online !");
}


//Then Add More If U Wanna Add More Messages ;)
//Its My First Script So Please Correct My Mistakes 0_0
What's that? Weird piece of code. When I compile that, my pawno crashes.
Rewritten code :
pawn Код:
#include < a_samp >

new
    g_szRandomMessages[ ][ ] = {
        "[Bot]: Welcome to my server ( 0.3x ) !",
        "[Bot]: Play fair and follow the server rules !",
        "[Bot]: Use /report to report hackers !",
        "[Bot]: Use /admins to see the list of online admins !"
    };
   
public OnFilterScriptInit( ) {
    SetTimer( "ServerMessage", 1000 * 60 /* 1 minutes */, true );
    return true;
}

forward ServerMessage( );
public ServerMessage( ) {
    new
        i = random( sizeof g_szRandomMessages );
    SendClientMessageToAll( -1, g_szRandomMessages[ i ] );
    return true;
}
I hope this helped, and don't give up on scripting! Try to make more things.
Reply
#7

Want to learn something? Add more life to your presentations, this will attract more people to your post and even download it.
Reply
#8

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
Like What?
Like you are doing right now. Typing every word with a capital letter makes you look like a child who tries to be mature. You start a sentence with a capitel letter, you write names with a capital letter, etc etc.. but not every word.

Writing Like This Hurts My Eyes, I Am Pretty Sure I Am Not The Only One. Wow, I Can Not Even Type Like This! It Is Difficult As Hell.

Anyway, your thread should be more detailed about your script as well. And pastebin is a very important detail you forgot.
Reply
#9

First of all create paste for short script as everyone dont like to download and then take a look at your script.And dont make a script complicated.Btw its your first FS, so good work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)