[FilterScript] Simple Host Name & Mapname Gamemode text changer
#1

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:
Reply
#2

not Bad +Rep
Reply
#3

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);
}
Reply
#4

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>");
Reply
#5

Nice FS.
Reply
#6

It's very easy to make :/ .
Reply
#7

Thanks Guys!
Reply
#8

Nice FS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)