Posts: 49
Threads: 5
Joined: Apr 2012
Reputation:
0
Hello all, i really need /aka command (it means next: when i use /aka i can see all accounts joined in server with same IP adress, easy to check account hackers), i need it because i saw sometimes kids want to hack account, thanks
Posts: 937
Threads: 69
Joined: Dec 2009
Reputation:
0
That will take some time for someone to make that for you. Try to check out some admin filterscripts such as Ladmin, 0Admin, luxadmin.
Posts: 49
Threads: 5
Joined: Apr 2012
Reputation:
0
i found it
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);
}
but it don't work, i got 4 errors and 1 warning
C:\Documents and Settings\Administrator\Desktop\PPC Trucking 6\pawno\include\PPC_PlayerCommands.inc(37) : error 017: undefined symbol "AccInfo"
C:\Documents and Settings\Administrator\Desktop\PPC Trucking 6\pawno\include\PPC_PlayerCommands.inc(37) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\PPC Trucking 6\pawno\include\PPC_PlayerCommands.inc(37) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\PPC Trucking 6\pawno\include\PPC_PlayerCommands.inc(37) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\PPC Trucking 6\pawno\include\PPC_PlayerCommands.inc(37) : fatal error 107: too many error messages on one line
can you help me now ?
Posts: 134
Threads: 23
Joined: Jul 2012
Reputation:
0
It isn't so hard to understand, the errors are CLEARLY understandable. You don't have AccInfo anywhere defined in your gamemode. Unless you are planning to do a players database in your gamemode, you're not moving from this point.