LuxAdmin Admin Chat?
#9

I fixed it
pawn Код:
CMD:v(playerid, params[]) {
    if(AccInfo[playerid][Level] >=1){
        new string[128]; format(string, sizeof(string), "[VIP Chat] %s: %s", PlayerName2(playerid), params[0] );
        MessageToAdmins(orange,string);
        SaveIn("AdmChatLog",string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be a VIP to use this command");
    return 1;}
CMD:o(playerid, params[]) {
    if(AccInfo[playerid][Level] >=10){
        new string[128]; format(string, sizeof(string), "[Owner Chat] %s: %s", PlayerName2(playerid), params[0] );
        MessageToAdmins(orange,string);
        SaveIn("AdmChatLog",string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be a level 10 to use this command");
    return 1;}
CMD:a(playerid, params[]) {
    if(AccInfo[playerid][Level] >=4){
        new string[128]; format(string, sizeof(string), "[Admin Chat] %s: %s", PlayerName2(playerid), params[0] );
        MessageToAdmins(orange,string);
        SaveIn("AdmChatLog",string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be a level 4 to use this command");
    return 1;}
CMD:m(playerid, params[]) {
    if(AccInfo[playerid][Level] >=3){
        new string[128]; format(string, sizeof(string), "[Moderator Chat] %s: %s", PlayerName2(playerid), params[0] );
        MessageToAdmins(orange,string);
        SaveIn("AdmChatLog",string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be a level 3 to use this command");
    return 1;}
CMD:msay(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 3)
    {
        if(isnull(params)) return
        Inter_SendClientMessage(playerid, LIGHTBLUE2, "Usage: /msay [Text] ") &&
        Inter_SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");
        new string[128];
        format(string, sizeof(string), "|- Moderator %s: %s", PlayerName2(playerid), params[0]);
        return Inter_SendClientMessageToAll(LIGHTBLUE,string);
    }
    else return ErrorMessages(playerid, 7);
}
CMD:vsay(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 1)
    {
        if(isnull(params)) return
        Inter_SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vsay [Text] ") &&
        Inter_SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");
        new string[128];
        format(string, sizeof(string), "|- VIP %s: %s", PlayerName2(playerid), params[0]);
        return Inter_SendClientMessageToAll(LIGHTBLUE,string);
    }
    else return ErrorMessages(playerid, 7);
}
CMD:osay(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 10)
    {
        if(isnull(params)) return
        Inter_SendClientMessage(playerid, LIGHTBLUE2, "Usage: /osay [Text] ") &&
        Inter_SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");
        new string[128];
        format(string, sizeof(string), "|- Owner %s: %s", PlayerName2(playerid), params[0]);
        return Inter_SendClientMessageToAll(LIGHTBLUE,string);
    }
    else return ErrorMessages(playerid, 7);
}
CMD:asay(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 4)
    {
        if(isnull(params)) return
        Inter_SendClientMessage(playerid, LIGHTBLUE2, "Usage: /asay [Text] ") &&
        Inter_SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");
        new string[128];
        format(string, sizeof(string), "|- Admin %s: %s", PlayerName2(playerid), params[0]);
        return Inter_SendClientMessageToAll(LIGHTBLUE,string);
    }
    else return ErrorMessages(playerid, 7);
}
Reply


Messages In This Thread
LuxAdmin Admin Chat? - by Tass007 - 15.03.2013, 23:30
Re: LuxAdmin Admin Chat? - by kamzaf - 15.03.2013, 23:34
Re: LuxAdmin Admin Chat? - by Tass007 - 15.03.2013, 23:39
Re: LuxAdmin Admin Chat? - by kamzaf - 15.03.2013, 23:42
Re: LuxAdmin Admin Chat? - by Tass007 - 15.03.2013, 23:42
Re: LuxAdmin Admin Chat? - by kamzaf - 15.03.2013, 23:51
Re: LuxAdmin Admin Chat? - by Tass007 - 15.03.2013, 23:55
Re: LuxAdmin Admin Chat? - by Tass007 - 16.03.2013, 01:14
Re: LuxAdmin Admin Chat? - by Tass007 - 16.03.2013, 02:42

Forum Jump:


Users browsing this thread: 2 Guest(s)