Advertisement
Guest User

[FS]Sistema de DJ SA:MP

a guest
Jul 20th, 2014
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.98 KB | None | 0 0
  1. /*====================[FS]DJ Exclusivo SSGames====================
  2.   ====================[Por:Chefao_Unknwon]========================
  3.   ====================[PLÁGIO = CRIME]============================
  4.   ====================[FS]DJ Exclusivo SSGames====================*/
  5.  
  6.  
  7.  
  8. #define FILTERSCRIPT
  9.  
  10.  
  11. /*====================[FS]DJ Exclusivo SSGames====================
  12.   ====================[Por:Chefao_Unknwon]========================
  13.   ====================[PLÁGIO = CRIME]============================
  14.   ====================[FS]DJ Exclusivo SSGames====================*/
  15.  
  16.  
  17. #include <a_samp>
  18. #include <zcmd>
  19. #include <sscanf>
  20. #include <foreach>
  21.  
  22.  
  23. #define COLOR_LIGHTRED 0xAA3333AA
  24.  
  25.  
  26. public OnFilterScriptInit()
  27. {
  28.     print("<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  ");
  29.     print(" <><><><>DJ Filterscript Carregado by Chefao_Unknwon<><><><><>  ");
  30.     print("<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n");
  31.     return 1;
  32. }
  33.  
  34. public OnFilterScriptExit()
  35. {
  36.     print("<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  ");
  37.     print(" <><><><>DJ Filterscript Desligado by Chefao_Unknown<><><><><><>");
  38.     print("<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n");
  39.     return 1;
  40. }
  41.  
  42. // CMD DO SISTEMA DE DJ BY:CHEFAO_UNKNWON
  43. CMD:dj(playerid, params[])
  44. {
  45.     new string[128];
  46.     if(sscanf(params, "s[256]", params)) return SendClientMessage(playerid, -1, "[Uso]: /dj [/ajuda /pare /creditosdj]");
  47.     if(!strcmp(params, "ajuda", true, 4))
  48.     {
  49.         SendClientMessage(playerid, COLOR_LIGHTRED, "{0033FF}Ajuda DJ:{FAD008}DJ é um sistema para os jogadores a tocar músicas oficialmente.");
  50.         SendClientMessage(playerid, COLOR_LIGHTRED, "{0033FF}Ajuda DJ:{FAD008}Todos os jogadores serão capazes de ouvir a música. Não só você!");
  51.         return 1;
  52.     }
  53.     if(!strcmp(params, "pare", true, 4))
  54.     {
  55.         SendClientMessage(playerid, COLOR_LIGHTRED, "{0033FF}DJ Parado.");
  56.         StopAudioStreamForPlayer(playerid);
  57.         return 1;
  58.     }
  59.     if(!strcmp(params, "creditosdj", true, 4))
  60.     {
  61.         SendClientMessage(playerid, COLOR_LIGHTRED, "Créditos do Sistema:");
  62.         SendClientMessage(playerid, -1, "{0033FF} Chefao_Unknwon por criar este sistema");
  63.         SendClientMessage(playerid, -1, "{FAD009} Exclusivamente para SSGames");
  64.         return 1;
  65.     }
  66.     //if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, COLOR_GREY, "Você não esta autorizado a usar este sistema");//Se quiser deixar a menssagem retire o [//]
  67.     format(string, sizeof(string), "{FFFFFF}>> {0033FF}[DJ]{FFFFFF}:Um jogador é agora DJrick {FAD008} ( /dj ajuda para mais informacoes)");
  68.     SendClientMessageToAll(0xFFFFFFAA,string);
  69.     foreach(Player, i)
  70.     {
  71.     PlayAudioStreamForPlayer(i, params);
  72.     }
  73.     return 1;
  74. }
  75. /*====================[FS]DJ Exclusivo SSGames====================
  76.   ====================[Por:Chefao_Unknwon]========================
  77.   ====================[PLÁGIO = CRIME]============================
  78.   ====================[FS]DJ Exclusivo SSGames====================*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement