06.07.2011, 19:12
(
Последний раз редактировалось Shadoww5; 06.07.2011 в 20:01.
)
PHP код:
if(!strcmp(cmdtext, "/testing", true))
{
new name[MAX_PLAYER_NAME], lol[256], string[80];
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(!IsPlayerNPC(i)) continue;
GetPlayerName(i, name, MAX_PLAYER_NAME);
format(string, sizeof string,"{FFFFFF}%d {64B500}%s,", i, name);
strcat(lol,string);
}
ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"{64B500}Online:",lol,"OK","Exit");
return 1;
}

