Szerző Téma: Gamemode-ba beépítés.  (Megtekintve 695 alkalommal)

Gamemode-ba beépítés.
« Dátum: 2012. November 25. - 14:22:13 »
0 Show voters
Na hello. Segítene valaki hogy ezt a scriptet hova kell tenni a gm-ben?
 

#include <a_samp>
#include <fixchars.h>
#define DIALOG_CHRISTMASMUSIC    1112
new playing[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
playing[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid)
{
playing[playerid] = 0;
return 1;
}
public OnFilterScriptInit()
{
print(\"\\n----------------------------------\");
print(\"            Rádió System            \");
print(\"----------------------------------\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(\"/karacsonyizene\", cmdtext, true, 10) == 0)
{
    ShowPlayerDialog(playerid, DIALOG_CHRISTMASMUSIC, DIALOG_STYLE_LIST, \"Rádió System\", \"Kikapcsolás\\nJose Feliciano - Feliz Navidad\\nWe wish you a merry christmas\\nJingle Bells\\nDean Martin - Let it Snow\\nMariah Carey - All I Want For Christmas Is You\", \"Választ\", \"Kilép\");
    return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CHRISTMASMUSIC)
{
if(listitem == 0)
   {
            if(playing[playerid] == 1)
            {
            playing[playerid] = 0;
            GameTextForPlayer(playerid, \"~w~Rádió ~r~megállítva\", 3000, 3);
            StopAudioStreamForPlayer(playerid);
            }
            else
         {
             SendClientMessage(playerid, 0xFF9900AA, \"- Most nem megy a rádió -\");
            }
   }
if(listitem == 1)
   {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
           PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/t0kn91gse3wsmno/Jose Feliciano - Feliz Navidad.mp3\");
   }
if(listitem == 2)
   {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
           PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/h9dtjqyza2e3gab/We wish you a merry christmas.mp3\");
   }
if(listitem == 3)
   {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
           PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/pk0javlyx2c7mzl/jingle bells.mp\");
   }
if(listitem == 4)
   {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
           PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/o7xvxtspl3nnc31/Dean Martin - Let it Snow!.mp3\");
   }
if(listitem == 5)
   {
            playing[playerid] = 1;
            GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
           PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/yubvq4ugkscvkmi/Mariah Carey - All I Want For Christmas Is You.mp3\");
   }
}
return 1;
}

 
Melyik sorok alá kell õket tenni?
jah és ilyen sor nincs a GM-ben de ha beteszem nem megy: public OnPlayerCommandText(playerid, cmdtext[])

Gamemode-ba beépítés.
« Válasz #1 Dátum: 2012. November 25. - 14:35:23 »
0 Show voters
Ez alá kell bemásolni a filterszkript pawno kódját:
 
public OnFilterScriptInit()
{

 
Ez a jel után
{[/quote]

Gamemode-ba beépítés.
« Válasz #2 Dátum: 2012. November 25. - 17:29:56 »
0 Show voters
ÖÖÖÖ már bocsi de a CÍME is elárulja a topiknak,hogy mibe kell rakni, és ez amint látod egy FS.
 
Gamemode-ba beépítés.[/quote]

Gamemode-ba beépítés.
« Válasz #3 Dátum: 2012. November 25. - 17:53:47 »
0 Show voters
Elõre is az includek ha megvannak a módban akkor a gamemode ahol befejezodik oda irjuk be a FS fontosabb reszeit vagyis
igy nem tudom elmagyarazni de ha linkelned a modod vagy felvennel skypen megcsinalnam szivesen :skype:okos_erik  ;)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal