Help ? - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help ? (
/showthread.php?tid=293961)
Help ? -
Ronaldo_raul™ - 30.10.2011
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 ..?
Re: Help ? -
Gamer_Z - 30.10.2011
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
Re: Help ? -
Buzzbomb - 30.10.2011
#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);
Re: Help ? -
Ronaldo_raul™ - 30.10.2011
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..!
Re: Help ? -
Ronaldo_raul™ - 30.10.2011
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..