Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /var/www/sa-mp.com/forum/showthread.php on line 25
100times i ask this and no one know what is problem, help, watch please ;s[LuXadm] problem - SA-MP Forums
SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 25/05/2012, 02:58 PM   #1
ProdrifterX
Huge Clucker
 
ProdrifterX's Avatar
 
Join Date: Aug 2011
Location: drift-generation.co.cc
Posts: 220
Reputation: 4
Default 100times i ask this and no one know what is problem, help, watch please ;s[LuXadm] problem

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 Code:
#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.]
__________________
ZoneX-Gaming.tk
_____________________

www.uD-server.tk
ProdrifterX is offline   Reply With Quote
Old 25/05/2012, 03:32 PM   #2
ProdrifterX
Huge Clucker
 
ProdrifterX's Avatar
 
Join Date: Aug 2011
Location: drift-generation.co.cc
Posts: 220
Reputation: 4
Default Re: 100times i ask this and no one know what is problem, help, watch please ;s[LuXadm] problem

Someone knows :S
SO SORRY FOR DOUBLE POST
__________________
ZoneX-Gaming.tk
_____________________

www.uD-server.tk
ProdrifterX is offline   Reply With Quote
Old 25/05/2012, 03:33 PM   #3
tyler12
High-roller
 
tyler12's Avatar
 
Join Date: May 2011
Location: England
Posts: 1,050
Reputation: 236
Default Re: 100times i ask this and no one know what is problem, help, watch please ;s[LuXadm] problem

post the /aka command
__________________
tyler12 is offline   Reply With Quote
Old 25/05/2012, 03:35 PM   #4
ProdrifterX
Huge Clucker
 
ProdrifterX's Avatar
 
Join Date: Aug 2011
Location: drift-generation.co.cc
Posts: 220
Reputation: 4
Default Re: 100times i ask this and no one know what is problem, help, watch please ;s[LuXadm] problem

pawn Code:
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 Code:
//==============================================================================
// 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?
__________________
ZoneX-Gaming.tk
_____________________

www.uD-server.tk
ProdrifterX is offline   Reply With Quote
Old 25/05/2012, 09:57 PM   #5
Neil.
Gangsta
 
Neil.'s Avatar
 
Join Date: Mar 2012
Posts: 538
Reputation: 30
Default Re: 100times i ask this and no one know what is problem, help, watch please ;s[LuXadm] problem

This should work

PHP Code:
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);

Neil. is offline   Reply With Quote
Old 25/05/2012, 10:27 PM   #6
EthanR
Little Clucker
 
Join Date: Oct 2010
Posts: 48
Reputation: 2
Default AW: 100times i ask this and no one know what is problem, help, watch please ;s[LuXadm] problem

pawn Code:
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;  
}
EthanR is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone here watch ||.Rier.|| Everything and Nothing 16 30/04/2010 05:23 AM
New gang problem - always show message and always respawn 100times at 1 SECOND!! buonggiorno Help Archive 8 19/01/2010 01:29 AM


All times are GMT. The time now is 03:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.