CTRL + F -el kikeresed ezt a részt: dcmd_aka
majd enter megnyomása után töröld ezt:
dcmd_aka(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid)) {
if(!strlen(params)) return SendClientMessage(playerid, red, \"USAGE: /aka [playerid]\");
new player1, playername[MAX_PLAYER_NAME], str[128], tmp3[50];
player1 = strval(params);
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
GetPlayerIp(player1,tmp3,50);
GetPlayerName(player1, playername, sizeof(playername));
format(str,sizeof(str),\"AKA: [%s id:%d] [%s] %s\", playername, player1, tmp3, dini_Get(\"ladmin/config/aka.txt\",tmp3) );
return SendClientMessage(playerid,blue,str);
} else return SendClientMessage(playerid, red, \"Player is not connected or is yourself\");
} else return SendClientMessage(playerid,red,\"ERROR: You are not a high enough level to use this command\");
}
Majd ismét nyomsz egy CTRL + F-et de azt írod be hogy: dcmd(aka
És eltávolítod ezt a részt:
dcmd(aka,3,cmdtext);
Ha nem akarod hogy megjelenjen belépéskor akkor töröld ezt: (CTRL + F-el)
new pAKA[256]; pAKA = dini_Get(\"ladmin/config/aka.txt\",tmp3);
if (strlen(pAKA) < 3) format(str,sizeof(str),\"*** %s (%d) has joined the server\", PlayerName, playerid);
else if (!strcmp(pAKA,PlayerName,true)) format(str,sizeof(str),\"*** %s (%d) has joined the server\", PlayerName, playerid);
else format(str,sizeof(str),\"*** %s (%d) has joined the server (aka %s)\", PlayerName, playerid, pAKA );
Teljes eltávolításához ezeket törölni kell:
if(strlen(dini_Get(\"ladmin/config/aka.txt\", tmp3)) == 0) dini_Set(\"ladmin/config/aka.txt\", tmp3, PlayerName);
else
{
if( strfind( dini_Get(\"ladmin/config/aka.txt\", tmp3), PlayerName, true) == -1 )
{
format(string,sizeof(string),\"%s,%s\", dini_Get(\"ladmin/config/aka.txt\",tmp3), PlayerName);
dini_Set(\"ladmin/config/aka.txt\", tmp3, string);
}
}
if(!strcmp(cmd, \"aka\", .length = 3))
{
new arg_1 = argpos(cmd), targetid = strval(cmd[arg_1]);
if ( !cmd[arg_1] || cmd[arg_1] < \'0\' || cmd[arg_1] > \'9\' || targetid > MAX_PLAYERS || targetid < 0)
print(\"Usage: aka <playerid>\");
else if ( !IsPlayerConnected(targetid) ) print(\"This player is not connected!\");
else
{
new tmp3[50], playername[MAX_PLAYER_NAME];
GetPlayerIp(targetid,tmp3,50);
GetPlayerName(targetid, playername, sizeof(playername));
printf(\"AKA: [%s id:%d] [%s] %s\", playername, targetid, tmp3, dini_Get(\"ladmin/config/aka.txt\",tmp3) );
}
return true;
}
if(!dini_Exists(\"ladmin/config/aka.txt\")) dini_Create(\"ladmin/config/aka.txt\");
Nekem nem írt errort de ha nálad van akkor kijavítom :angel: