Please help me I cant do it I will give you rep+ and will be very happy if it works
pawn Код:
CMD:tps(playerid, params[])
{
new count = 0, string[256];
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(AccInfo[i][Level] == 2)
{
new nameee[128];
GetPlayerName(i, nameee, 16);
format(string, sizeof(string),"[%d]%s", i, PlayerName2(i));
ShowPlayerDialog(playerid, 139, DIALOG_STYLE_MSGBOX, "Trusted Players", string, "Ok", "");
count++;
}
}
}
if(count == 0)
{
ShowPlayerDialog(playerid, 139, DIALOG_STYLE_MSGBOX, "Trusted Players", "No Trusted Player Online.", "Ok", "");
}
return 1;
}