How to make this command
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/admint", cmdtext, true, 7) == 0)
    {
        new PlayerName[MAX_PLAYER_NAME], str[128];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(str, sizeof(str), "* admin %s(%d) has restarted the server!", PlayerName, playerid);
        SendClientMessageToAll(colour, str);
        return 1;
    }
    return 0;
}
now just add a check for what level the player is and maybe set a timer to restart the server and that should work nicely
Reply


Messages In This Thread
How to make this command - by KurtKill - 20.03.2009, 18:44
Re: How to make this command - by brett7 - 20.03.2009, 19:31
Re: How to make this command - by KurtKill - 20.03.2009, 21:51
Re: How to make this command - by MenaceX^ - 20.03.2009, 22:07
Re: How to make this command - by Rks25 - 20.03.2009, 22:12
Re: How to make this command - by brett7 - 20.03.2009, 22:26
Re: How to make this command - by MenaceX^ - 20.03.2009, 22:26
Re: How to make this command - by Rks25 - 20.03.2009, 22:33
Re: How to make this command - by KurtKill - 21.03.2009, 00:47
Re: How to make this command - by brett7 - 21.03.2009, 00:52

Forum Jump:


Users browsing this thread: 2 Guest(s)