How to change Hostname in pawno - 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: How to change Hostname in pawno (
/showthread.php?tid=586239)
How to change Hostname in pawno -
VipperGamming - 20.08.2015
Hi all , why i cant use this is
where i can put this is
Quote:
SendRconCommand("mapname Los Santos");
SendRconCommand("gamemodetext AG:RP INDO");
SendRconCommand("language INDONESIA");
|
Re: How to change Hostname in pawno -
Abagail - 20.08.2015
Put it wherever you want it to set. If you want it to set when the gamemode starts I suggest adding it under OnGameModeInit Or OnFilterScriptInit(depending on the script type you are placing it in).
Re: How to change Hostname in pawno -
Mariciuc223 - 20.08.2015
Or if you want to make it on a command :
OnPlayerCommandText:
Код HTML:
#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext[16], "/server_configs", true))
{
if(!IsPlayerAdmin(playerid)) return 1;
SendRconCommand("mapname Los Santos");
SendRconCommand("gamemodetext AG:RP INDO");
SendRconCommand("language INDONESIA");
return 1;
}
return 0;
}
ZCMD
Код HTML:
#include <a_samp>
#include <zcmd>
CMD:server_configs(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
SendRconCommand("mapname Los Santos");
SendRconCommand("gamemodetext AG:RP INDO");
SendRconCommand("language INDONESIA");
return 1;
}