if player Type a Command
#1

Hey guys
Код:
if(text[0] == '/')
    {
        new str[128];
        new playername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
        format(str, sizeof(str), "{FFFFFF}[Commands]{00FF00} %s: %s", playername, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
            if(IsPlayerConnected(i) && AccountInfo[playerid][AdminLevel] >= 1)
                SendMessageToAdmins(COLOR_ORANGE, str);
        return 0;
    }
No error But does't Work IG
Reply


Messages In This Thread
if player Type a Command - by [D]ry[D]esert - 09.05.2012, 16:18
Re: if player Type a Command - by Skaizo - 09.05.2012, 16:43
Re: if player Type a Command - by sniperwars - 09.05.2012, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)