04.03.2017, 04:01
try
PHP код:
COMMAND:applications(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") >= 1 || IsPlayerAdmin(playerid))
{
new str[256];
for(new i = 1; i < MAX_APPLICATIONS; i++)
{
if(ApplicationInfo[i][SentIn] == 1)
{
format(str, sizeof(str), "%s\n", ApplicationInfo[i][Name]);
}
}
return ShowPlayerDialog(playerid, ApplicationsPick, DIALOG_STYLE_LIST, "Applications", str, "View", "Cancel");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Server: You do not have permission to use this command.");
}
return 1;
}