/aka command
#1

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
Reply
#2

That will take some time for someone to make that for you. Try to check out some admin filterscripts such as Ladmin, 0Admin, luxadmin.
Reply
#3

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 ?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)