100times i ask this and no one know what is problem, help, watch please ;s[LuXadm] problem
#1

Hi.
Guys i got problem with LuxAdmin script with /aka [aka shows hes ip and hes accounts] but mine /aka shows only hes IP not his name
With connect commands too, when i enable it they dont shows hes accounts.
I've put new Lux [stock] and again this problem, idk rly what is the problem ;S
Help meh pls.
Thanks.
---
Defines -.-
pawn Код:
#define EnableSpec          true    // Enable/Disable Spectating System (If you already using disable it. Set to 'false')
#define SaveLogs            true    // Set 'false' if your server runs Linux (Logs wont be Saved!)
#define PM_CHAT_LOG         true    // Enable/Disable to save PMs in Log
#define ADM_CHAT_LOG        true    // Enable/Disable to save AdmChat in Log
#define USE_DIALOGS         true    // Enable/Disable All Dialogs (Not Disable SERVER PASSWORD DIALOG)
#define USE_STATS           true    // Enable/Disable Statistics
#define ADM_InMSG           false   // Put 'admin' in all messages sent by administrators (Ex: David(Admin): Welcome...)
#define SaveScore           false   // Enable/Disable to save Player's Score
#define GpsCheckPoint       true    // Enable/Disable use RaceCheckpoints for indicate players In GPS.
#define GpsOnlyCity         true    // True = Gps Show Only player City | False = Gps Show Player City and Zone.
#define ConfigInConsole     true    // Enable/Disable to Show Basic AdmScript Configuration in Console (When start the AdmScript)
#define EnableTwoRcon       true    // Enable/Disable Two Rcon Passwords (2 Rcon passwords for more security!)
#define EnableCamHack       true    // Enable/Disable LuxCam System - Administrators can move the camera! (Original By Sandra, modified by Me)
#define EnablePM_Cmd        true    // Enable/Disable PM Command
They are stock. [i dont edit nothing.]
Reply
#2

Someone knows :S
SO SORRY FOR DOUBLE POST
Reply
#3

post the /aka command
Reply
#4

pawn Код:
dcmd_aka(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
    {
        if(!strlen(params)) return
        SendClientMessage(playerid, LIGHTBLUE2, "Usage: /aka [PlayerID]") &&
        SendClientMessage(playerid, orange, "Function: Will see other names used per specified player (AKA)");
        new player1, playername[MAX_PLAYER_NAME], str[128], pIP[50];
        player1 = strval(params);
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
         {
            GetPlayerIp(player1,pIP,50);
            GetPlayerName(player1, playername, sizeof(playername));
            format(str,sizeof(str),"|- %s's AKA -|", playername);
            SendClientMessage(playerid,blue,str);
            format(str,sizeof(str),"|- Id: %d | Ip: %s | Names: %s -|", player1, pIP, dini_Get("LuxAdmin/Config/aka.txt",pIP));
            return SendClientMessage(playerid,blue,str);
        }
        else return SendClientMessage(playerid, red, "Player is not connected or is yourself");
    }
    else return ErrorMessages(playerid, 1);
}
Connect messages
pawn Код:
//==============================================================================
// Connect Messages
//==============================================================================
    if(ServerInfo[ConnectMessages] == 1)
    {
        new pAKA[256];
        pAKA = dini_Get("LuxAdmin/Config/aka.txt",tmp3);
        if (strlen(pAKA) < 3)
        format(str,sizeof(str),"* Player %s (Id:%d) has joined the server", PlayerName,playerid);
        else if (!strcmp(pAKA,PlayerName,true))
        format(str,sizeof(str),"* Player %s (Id:%d) has joined the server", PlayerName,playerid);
        else format(str,sizeof(str),"Player %s (Id:%d) has joined the server (Aka: %s)",PlayerName,playerid,pAKA);

        for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i) && playerid != i)
        {
        if(IsPlayerAdmin(i))
        SendClientMessage(i,grey,str);
        else
        {
        format(string,sizeof(string),"* Player %s (Id:%d) has joined the server", PlayerName, playerid);
        SendClientMessage(i,grey,string);
        }
        }
    }
Dont works and dont works, it makes me nervous
And AKA text doc in scriptfiles is empty right?
Reply
#5

This should work

PHP код:
dcmd_aka(playerid,params[])
{
    if(
AccInfo[playerid][Level] >= || IsPlayerAdmin(playerid))
    {
        if(!
strlen(params)) return
        
SendClientMessage(playeridLIGHTBLUE2"Usage: /aka [PlayerID]") &&
        
SendClientMessage(playeridorange"Function: Will see other names used per specified player (AKA)");
        new 
player1playername[MAX_PLAYER_NAME], str[128], pIP[50];
        
player1 strval(params);
         if(
IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
         {
                
GetPlayerIp(player1,pIP,50);
            
GetPlayerName(player1playernamesizeof(playername));
            
format(str,sizeof(str),"|- %s's AKA -|"playername);
               
SendClientMessage(playerid,blue,str);
            
format(str,sizeof(str),"|- Id: %d | Ip: %s | Names: %s -|"player1pIPdini_Get("LuxAdmin/Config/aka.txt",pIP));
            return 
SendClientMessage(playerid,blue,str);
        }
        else return 
SendClientMessage(playeridred"Player is not connected or is yourself");
    }
    else return 
ErrorMessages(playerid1);

Reply
#6

pawn Код:
dcmd_aka(playerid,params[])
{
    if(AccInfo[playerid][Level] < 1 && !IsPlayerAdmin(playerid)) return ErrorMessages(playerid, 1);
    if(!strlen(params))  return SendClientMessage(playerid, red, "Please enter a valid playerid.");
    SendClientMessage(playerid, LIGHTBLUE2, "Usage: /aka [PlayerID]") &&
    SendClientMessage(playerid, orange, "Function: Will see other names used per specified player (AKA)");
    new player1, playername[MAX_PLAYER_NAME], str[128], pIP[50];
    player1 = strval(params);
    if(!IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) return SendClientMessage(playerid, red, "Player is not connected to the server.");
    GetPlayerIp(player1,pIP,50);
    GetPlayerName(player1, playername, sizeof(playername));
    format(str,sizeof(str),"|- %s's AKA -|", playername);
    SendClientMessage(playerid,blue,str);
    format(str,sizeof(str),"|- Id: %d | Ip: %s | Names: %s -|", player1, pIP, dini_Get("LuxAdmin/Config/aka.txt",pIP));
    SendClientMessage(playerid,blue,str);
    return 1;  
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)