SA-MP Forums Archive
[FilterScript] Simple Host Name & Mapname Gamemode text changer - 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 Host Name & Mapname Gamemode text changer (/showthread.php?tid=514108)



Simple Host Name & Mapname Gamemode text changer - satafinix - 19.05.2014

Hey guys

this is my new script: Simple Host Name & Mapname Gamemodetext changer!


Код:
#include <a_samp>
Let s start on public OnFilterScriptInit

Код:
}

public OnFilterScriptInit()
{
    SetTimer("RandomsSET",100, true);
    return 1;
}

forward RandomsSET();
public RandomsSET()
{
   switch (random(2)) ///SERVER HOSTNAME
   {
     case 0: SendRconCommand("hostname Welcom to my server(0.3z)");
     case 1: SendRconCommand("hostname Filterscript By SkulleR");
     case 2: SendRconCommand("hostname Visit my website");
     case 3: SendRconCommand("hostname Added  this server to you favorite");
     case 4: SendRconCommand("hostname put something here :l");
   }

   switch (random(2)) /////SERVER GAMEMODE TEXT NAME
   {
     case 0: SendRconCommand("gamemodetext put something here :l");
     case 1: SendRconCommand("gamemodetext put something here :l");
     case 2: SendRconCommand("gamemodetext put something here :l");
     case 3: SendRconCommand("gamemodetext put something here :l");
   }
   switch (random(2)) /////SERVER MAP NAME
   {
     case 0: SendRconCommand("mapname put something here :l");
     case 1: SendRconCommand("mapname put something here :l");
     case 2: SendRconCommand("mapname put something here :l");
     case 3: SendRconCommand("mapname put something here :l");
   }

   return 1;
}
Credits: SkulleR
+Rep if i helped you

Download: Amx - Pwn:



Re : Simple Host Name & Mapname Gamemode text changer - Younes44 - 19.05.2014

not Bad +Rep


Re: Simple Host Name & Mapname Gamemode text changer - iFarbod - 20.05.2014

Have these functions (by me).

pawn Код:
stock SetHostName(string[])
{
    new
        command[128];
   
    format(command, sizeof command, "hostname %s", string);
   
    SendRconCommand(command);
}

stock SetMapName(string[])
{
    new
        command[128];
   
    format(command, sizeof command, "mapname %s", string);
   
    SendRconCommand(command);
}

stock SetGMText(string[])
{
    new
        command[128];
   
    format(command, sizeof command, "gamemodetext %s", string);
   
    SendRconCommand(command);
}



Re: Simple Host Name & Mapname Gamemode text changer - Hwang - 20.05.2014

Quote:
Originally Posted by iFarbod
Посмотреть сообщение
pawn Код:
stock SetHostName(string[])
{
    new
        command[128];
   
    format(command, sizeof command, "hostname %s", string);
   
    SendRconCommand(command);
}

stock SetMapName(string[])
{
    new
        command[128];
   
    format(command, sizeof command, "mapname %s", string);
   
    SendRconCommand(command);
}

stock SetGMText(string[])
{
    new
        command[128];
   
    format(command, sizeof command, "gamemodetext %s", string);
   
    SendRconCommand(command);
}
Needless to say, Why should we do such a thing while the other one

SendRconCommand("hostname <hostname>");
SendRconCommand("gamemodetext <text>");
SendRconCommand("mapname <map name>");


Re : Simple Host Name & Mapname Gamemode text changer - Ke_NiReM - 20.05.2014

Nice FS.


Re: Simple Host Name & Mapname Gamemode text changer - Rocky1993 - 20.05.2014

It's very easy to make :/ .


Re: Simple Host Name & Mapname Gamemode text changer - satafinix - 27.05.2014

Thanks Guys!


Re: Simple Host Name & Mapname Gamemode text changer - MetalHeadz - 04.09.2014

Nice FS