Eredeti link:
http://forum.sa-mp.com/showthread.php?t=295305&highlight=nPlayerEredeti Készítõ: Norn
DL:
http://solidfiles.com/d/93abb/Pastebin:
http://pastebin.com/WLybPfXH\"Elhelyezés\"[pawn]#include <nplayer>[/pawn]
egy példa:[pawn]new eHouse = PlayerAddCategory(\"House\");
AddStreamToCategory(eHouse, \"Deadmau5 - Some Chords\", \"
http://streamurl\");
AddStreamToCategory(eHouse, \"Deadmau5 - Strobe (Special Features Remix)\", \"
http://streamurl\");
AddStreamToCategory(eHouse, \"Deadmau5 - Where My Keys\", \"
http://streamurl\");
AddStreamToCategory(eHouse, \"Chuckie, Gregor Salto - What Happens In Vegas (Club Mix)\", \"
http://streamurl\");[/pawn]
A Parancs[pawn]COMMAND:player(playerid, params[])
{
PlayerInitDialog(playerid);
return true;
}[/pawn]
Dialog Megjelenítése:[pawn]PlayerInitDialog(playerid);[/pawn]
Funkciói:[pawn]forward PlayerCategoryBrowse(playerid, listitem);
forward PlayerAddCategory(name[NPMAX_CATEGORY_LENGTH]);
forward AddStreamToCategory(categoryid, name[NPMAX_ITEM_LENGTH], streamurl[NPMAX_STREAM_URL_LENGTH]);
forward PlayerInitDialog(playerid);
forward PlayerStop(playerid);
forward PlayerPlay(playerid, itemid);
forward DeleteCategory(categoryid);
forward ModifyCategory(categoryid, name[NPMAX_CATEGORY_LENGTH]);
forward ModifyItem(itemid, name[NPMAX_ITEM_LENGTH], streamurl[NPMAX_STREAM_URL_LENGTH]);
forward DeleteItem(itemid);
forward ItemCountFromCategory(categoryid);
forward CategoryIDFromDialogOrder(listitem);
forward ItemIDFromDialogOrder(playerid, listitem);[/pawn]