Help ?
#1

Hello guys..i want to know how can i make some name as a Hostname via my gm or fs...??

example -

To set the Mode of the GM we use -

pawn Код:
Top of script:
#define Game_Version "::.:|™|Mortal Stuntages|™|:.::(Mortal Gaming Group)"

public OnGameModeInit()
{
SetGameModeText(""Game_Version"");
return 1;
}
What is the code for doing it for the Hostname ..?
Reply
#2

SendRconCommand("hostname "YOU_HOSTNAME_DEFINE);
eg:
pawn Код:
SendRconCommand("hostname Drifting4Fun Server 24/7! [0.3D]");
//or
#define HOSTNAME "Drifting4Fun Server 24/7! [0.3D]"
SendRconCommand("hostname " HOSTNAME);
https://sampwiki.blast.hk/wiki/SendRconCommand
Reply
#3

#define GAMEMODE "GAMEMODENAMEHERE" // This is what the gamemode text will be set to.
#define GAMEMODE_USE_VERSION "Yes" // This shows the Server name and the version in Gamemode text, if set to "No" it will only display the gamemode name.
#define MAP_NAME "MAPNAMEHERE" // This is what the map name will be set to.
#define SERVER_NAME "SERVERNAMEHERE" // This is what the hostname/servername will be set to.
#define WEBSITE "http://www.sa-mp.com" // This is what the website will be set to.
#define VERSION "VERSIONHERE" // Script Version
#define DEVELOPER "YOURNAMEHERE" // Developer Name.
#define PASSWORD "" // Server Password
#define SCRIPT_LINES NUMBERSHERE // For printing the script lines amount, unfortunately it has to be updated manually.

pawn Код:
printf(" %s - %s loaded.", GAMEMODE,MAP_NAME);
    printf(" %s - %s by %s loaded.", GAMEMODE,MAP_NAME,DEVELOPER);
    printf(" Server Name: %s", SERVER_NAME);
    if (!strcmp("Yes", GAMEMODE_USE_VERSION, true)) {
    printf(" Gamemode: %s ", GAMEMODE); } else {
    printf(" Gamemode: %s", GAMEMODE); }
    printf(" Version: %s", VERSION);
    printf(" Map: %s", MAP_NAME);
    printf(" Website: %s", WEBSITE);
    printf(" Developer: %s", DEVELOPER);
Reply
#4

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
SendRconCommand("hostname "YOU_HOSTNAME_DEFINE);
eg:
pawn Код:
SendRconCommand("hostname Drifting4Fun Server 24/7! [0.3D]");
//or
#define HOSTNAME "Drifting4Fun Server 24/7! [0.3D]"
SendRconCommand("hostname " HOSTNAME);
https://sampwiki.blast.hk/wiki/SendRconCommand
omg thank you! so silly of me....thank you man so much ...+reped..!
Reply
#5

Quote:
Originally Posted by Buzzbomb
Посмотреть сообщение
#define GAMEMODE "GAMEMODENAMEHERE" // This is what the gamemode text will be set to.
#define GAMEMODE_USE_VERSION "Yes" // This shows the Server name and the version in Gamemode text, if set to "No" it will only display the gamemode name.
#define MAP_NAME "MAPNAMEHERE" // This is what the map name will be set to.
#define SERVER_NAME "SERVERNAMEHERE" // This is what the hostname/servername will be set to.
#define WEBSITE "http://www.sa-mp.com" // This is what the website will be set to.
#define VERSION "VERSIONHERE" // Script Version
#define DEVELOPER "YOURNAMEHERE" // Developer Name.
#define PASSWORD "" // Server Password
#define SCRIPT_LINES NUMBERSHERE // For printing the script lines amount, unfortunately it has to be updated manually.

pawn Код:
printf(" %s - %s loaded.", GAMEMODE,MAP_NAME);
    printf(" %s - %s by %s loaded.", GAMEMODE,MAP_NAME,DEVELOPER);
    printf(" Server Name: %s", SERVER_NAME);
    if (!strcmp("Yes", GAMEMODE_USE_VERSION, true)) {
    printf(" Gamemode: %s ", GAMEMODE); } else {
    printf(" Gamemode: %s", GAMEMODE); }
    printf(" Version: %s", VERSION);
    printf(" Map: %s", MAP_NAME);
    printf(" Website: %s", WEBSITE);
    printf(" Developer: %s", DEVELOPER);
Omg great information..! thank you so much..+reped you too..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)