SA-MP Forums Archive
[FilterScript] Simple /updates command - 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] Simple /updates command (/showthread.php?tid=467940)



...... - smowpow - 05.10.2013

......


Re: Simple /updates command - DeathFire - 05.10.2013

very simple! gj!


Re: Simple /updates command - doreto - 05.10.2013

Quote:
Originally Posted by DeathFire
Посмотреть сообщение
very simple! gj!
I bet that you didn't even check it !

ONTOPIC:



Re: Simple /updates command - Emmet_ - 06.10.2013

It's a simple script, but I prefer to do it this way:

pawn Код:
static const gUpdateArray[][] =
{
    { "Update 1" },
    { "Update 2" },
    { "Update 3" },
    { "Update 4" },
    { "Update 5" }
};

CMD:updates( playerid, params[] ) {

    SendClientMessage( playerid, 0xFFFF00FF, "Updates:" );
   
    for ( new i = 0; i < sizeof( gUpdateArray ); i ++) {
        SendClientMessage( playerid, 0xFFFFFFFF, gUpdateArray[ i ] );
    }
    return 1;
}



Re: Simple /updates command - smowpow - 06.10.2013

Quote:
Originally Posted by doreto
Посмотреть сообщение
I bet that you didn't even check it !

ONTOPIC:
  • On line 17 you are missing one more / to make it comment or it will report it as error
  • /updates is not 10 characters long
  • why do you define soo many colors when you use only one ?
  • you didn't say anything about those includes dini utils zones yom_buttons streamer cuff foreach SII *******
  • remove code that you don't use
  • it's easy to be many and is already release many times
Like a said i have had it for a while and yes i realise its been released times before but yet when someone needs something like this they have to look pretty far for it. This is just to help out the new server starters that dont know things like this.
Also i cant remember why i included all of those color's maybe i was going to do it so updates could be different colors..


Re: Simple /updates command - xXxFerZExXx - 06.10.2013

Very Simple Script, But Good Job Keep It On.. Nice Script


Re: Simple /updates command - Superhot - 06.10.2013

What is this? is this a command with SCM or dialog?


Re: Simple /updates command - Uberanwar - 07.10.2013

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
It's a simple script, but I prefer to do it this way:

pawn Код:
static const gUpdateArray[][] =
{
    { "Update 1" },
    { "Update 2" },
    { "Update 3" },
    { "Update 4" },
    { "Update 5" }
};

CMD:updates( playerid, params[] ) {

    SendClientMessage( playerid, 0xFFFF00FF, "Updates:" );
   
    for ( new i = 0; i < sizeof( gUpdateArray ); i ++) {
        SendClientMessage( playerid, 0xFFFFFFFF, gUpdateArray[ i ] );
    }
    return 1;
}
Hey, thanks , thats useful