29.09.2013, 06:33
Can anyone make this to dialog message? Thank you. Looking forward. I tried to make it to dialog but its not working all empty.
Код:
CMD:aka(playerid,params[]) { if(pInfo[playerid][pLevel] >= 1) { new id,Ffile[128],string[128]; if(sscanf(params, "u", id)) return SendClientMessage(playerid, yellow, "Usage: /aka <Player ID/Part of Nick>"); if(IsPlayerConnected(id)) { strdel(aka,0,256); CommandToAdmins(playerid,"aka"); GetPlayerIp(id,playerIP,16); format(Ffile,sizeof(Ffile),"JLadmin/Logs/aka.ini"); INI_ParseFile(Ffile,"GetAkaLog"); format(Jstring,sizeof(Jstring),">> Player %s(ID: %d)'s Nick names", GetName(id), id); SendClientMessage(playerid,green,Jstring); if(strlen(aka) > 70) { strmid(string,aka,0,75); format(Jstring,sizeof(Jstring),">> IP: %s - Nicks: %s", playerIP , string); SendClientMessage(playerid,yellow,Jstring); strmid(string,aka,75,sizeof(aka)); format(Jstring, sizeof(Jstring),"%s", string); SendClientMessage(playerid,yellow,Jstring); } else { format(string,sizeof(string),">> IP: %s - Nicks: %s", playerIP, aka); SendClientMessage(playerid,yellow,string); } return 1; } else return ShowMessage(playerid, red, 2); } else return ShowMessage(playerid, red, 1); }