restart server
#1

By restarting the server through the command /gmx, filterscripts removed

Код:
if(strcmp(cmd, "/gmx", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 1337)
			{
				GameModeExit();
			}
		}
		return 1;
	}
Reply
#2

Is this a tutorial or what?
Really I don't know what's the problem/what you meant but
look here a better idea of this script :
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 1337)
            {
                SendRconCommand(gmx);
            }
            else SendClientMessage(playerid,anycolor,"you are not an admin!");
        }
        return 1;
}
*NOT TESTED*

-jNkk
Reply
#3

wrong:
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)
{
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 1337)
            {
                SendRconCommand("gmx");
            }
            else SendClientMessage(playerid,anycolor,"you are not an admin!");
        }
        return 1;
}
Reply
#4

Yeap xDeadlyBoy , thanks for correcting me, I was sure I
didn't write ok on that line , I also learnt something new xD

-jNkk
Reply
#5

Umm, what do you check by the playerid?
IsPlayerConnected? Omgf if you type this command, you are connected.

I don't really see the point.

And I think "cmd" is "cmdtext".

Have fun.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)