How to change Hostname in pawno
#1

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");

Reply
#2

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).
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)