GMX Problem
#1

Hey guys!
I got a problem with /gmx on my server, when i do /gmx the object that are not using streamer disappear!
But if i close the cmd line and open again they appear, what the problem ?
Reply
#2

no one ?
Reply
#3

Someone please ?
Reply
#4

please show us your /gmx code.
Reply
#5

Here it is:

Код:
	if(strcmp(cmd, "/gmx", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 5)
			{
				GameTextForAll("~r~Restarting the Server: ~n~~p~Game mode Restart",12000,0);
				SendClientMessageToAll(COLOR_NICERED, "Server Restart, Please Wait!");
				SendClientMessageToAll(COLOR_YELLOW,"Restart may take a while due to file saves!");
				format(string, sizeof(string), "[ADMIN]: %s Has Restarted The Server",sendername);
				ABroadCast(COLOR_LIGHTRED,string, 5);
			    SaveAllGuns();
			    UpdateAllPlayersPosition();
				GameModeExitFunc(playerid);
				new y, m, d;
				new h,mi,s;
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Restarted the GameMode (/gmx)",d,m,y,h,mi,s,sendername);
				LoginLog(string);
				AdminLog(string);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
			}
		}
		return 1;
	}
Reply
#6

camon guys!
Reply
#7

why don't you just use the rcon command?...
Reply
#8

Try to use :
pawn Код:
GameModeExitFunc(playerid);
To

pawn Код:
SendRconCommand("gmx");
Reply
#9

because i die and spawn in a location not in LS
Reply
#10

dont work gertin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)