LuxAdmin Admin Chat?
#1

I have an Ladmin admin chat and i have LuxAdmin Admin Chat and i want to change the LuxAdmin Admin Chat into the Ladmin Admin chat but when i do that it gives me errors

Here is my Ladmin Admin Chat Code
pawn Код:
CMD:o(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 7) {
        new string[128]; format(string, sizeof(string), "[OWNER] %s: %s", PlayerName2(playerid), params[0] );
        MessageToAdmins(green,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be owner to use this command");
    return 1;
}

CMD:a(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 3) {
        new string[128]; format(string, sizeof(string), "[ADMIN] %s: %s", PlayerName2(playerid), params[0] );
        MessageToAdmins(green,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be admin to use this command");
    return 1;
}

CMD:m(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 2) {
        new string[128]; format(string, sizeof(string), "[MOD] %s: %s", PlayerName2(playerid), params[0] );
        MessageToAdmins(green,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be moderator to use this command");
    return 1;
}

CMD:v(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 1) {
        new string[128]; format(string, sizeof(string), "[VIP] %s: %s", PlayerName2(playerid), params[0] );
        MessageToAdmins(green,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be a VIP to use this command");
    return 1;
}

CMD:osay(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 5) {
        if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /osay [text]");
        new string[128]; format(string, sizeof(string), "**Owner %s: %s", PlayerName2(playerid), params[0] );
        return SendClientMessageToAll(red,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be level owner to use this command");}

CMD:asay(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 3) {
        if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /asay [text]");
        new string[128]; format(string, sizeof(string), "**Admin %s: %s", PlayerName2(playerid), params[0] );
        return SendClientMessageToAll(red,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be level 3 to use this command");}
   
CMD:msay(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 2) {
        if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /msay [text]");
        new string[128]; format(string, sizeof(string), "**Moderator %s: %s", PlayerName2(playerid), params[0] );
        return SendClientMessageToAll(red,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be level 2 to use this command");}
   
CMD:vsay(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 1) {
        if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /vsay [text]");
        new string[128]; format(string, sizeof(string), "**VIP %s: %s", PlayerName2(playerid), params[0] );
        return SendClientMessageToAll(red,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be VIP to use this command");}
And Here is the LuxAdmin Admin Chat.

pawn Код:
//==============================================================================
// Vip Chat
//==============================================================================
    if(text[0] == '*' && AccInfo[playerid][pVip] >= 1)
    {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"|ChatVip| %s: %s",string,text[1]);
        MessageToPlayerVIP(0xDC686BAA,string);
        SaveIn("ChatVipLog",string);
        return 0;
    }
//==============================================================================
// Administration Chat
//==============================================================================
    if(text[0] == '#' && AccInfo[playerid][Level] >= 1)
    {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]);
        MessageToAdmins(green,string);
        GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"9Admin Chat: %s: %s",string,text[1]);
        #if ADM_CHAT_LOG == true
        SaveIn("AdmChatLog",string);
        #endif
        return 0;
    }
Could Someone please help me. Whoever helps me will ofcourse get +1 Rep.
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: 1 Guest(s)