#include <a_samp>
#include <zcmd>
#include <sscanf2>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\"Youtube lejátszó\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n--------------------------------------\");
print(\"Youtube lejátszó\");
print(\"--------------------------------------\\n\");
}
#endif
COMMAND:zene(playerid, params[])
{
new url[128];
if(sscanf(params, \"s[128]\", url)) return SendClientMessage(playerid,-1,\"HIBA: A zene link nem lehet 128 karaktertõl hosszabb!\");
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, url);
}
return 1;
}
Kell hozzá zcmd,sscanf2 inc!