Why /AKA isnt working [LUX] REP+1 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why /AKA isnt working [LUX] REP+1 (
/showthread.php?tid=341280)
Why /AKA isnt working [LUX] REP+1 -
ProdrifterX - 10.05.2012
Hi guys.
Iam using LuxAdmin System.
So. Mine /AKA doesnt work o.O just tell me player's ip not name
I've got In Scriptfiles>LuxAdmin>Config>Aka text document but in that text document doesnt got words,numbers etc..
And in script i got this:
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);
}
And define
pawn Код:
#define SaveLogs true // Set 'false' if your server runs Linux (Logs wont be Saved!)
___________
Thank you.
REP +1 ! ! !
Re: Why /AKA isnt working [LUX] REP+1 -
Roel - 10.05.2012
Did you change anything from the cmd? and is this path correct : LuxAdmin/Config/aka.txt
Re: Why /AKA isnt working [LUX] REP+1 -
ProdrifterX - 10.05.2012
No, but why "aka.txt" is empty ?
Re: Why /AKA isnt working [LUX] REP+1 -
ProdrifterX - 10.05.2012
Someone knows?
Sorry for double post.