Jump to content
  • 0

pomoc Nefunkcnost FS


lukyno010

Dotaz

16 odpovědí na tuto otázku

Recommended Posts

  • 0

jedno mam v pwn ale praveze neviem najst Dialog id...toto je pwn kod:

 

////////////////////////////////////////////////////////////////////////////////

 

#include

 

////////////////////////////////////////////////////////////////////////////////

 

#define DIALOG_RADIO 20000

 

#define MAX_PLAYERS_EX 50 //Zde si nadefinujte, kolik slotů má váš server. Nejlépe kolik je asi průměrně hráčů na serveru.

 

#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

 

////////////////////////////////////////////////////////////////////////////////

 

new Posluchaci[15] = {0,...};

 

new Posloucham[MAX_PLAYERS_EX];

 

////////////////////////////////////////////////////////////////////////////////

 

public OnFilterScriptInit()

 

{

 

print("\n--------------------------------------");

 

print(" Filterscript Rádia by . ");

 

print("--------------------------------------\n");

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnFilterScriptExit()

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerRequestClass(playerid, classid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerConnect(playerid)

 

{

 

Posloucham[playerid] = 0;

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerDisconnect(playerid, reason)

 

{

 

if(IsPlayerInAnyVehicle(playerid)){

 

PosluchacPryc(playerid);

 

}

 

Posloucham[playerid] = 0;

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerSpawn(playerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerDeath(playerid, killerid, reason)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnVehicleSpawn(vehicleid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnVehicleDeath(vehicleid, killerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerText(playerid, text[])

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

dcmd_radio(playerid, params[])

 

{

 

#pragma unused params

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

new PosluchaciS[1000];

 

format(PosluchaciS, 1000,"{FFFFFF}Evropa 2\t(Posluchačů: %d)\nRádio Spin\t(Posluchačů: %d)\nHip Hop Stage\t(Posluchačů: %d)\nDrum and Bass\t(Posluchačů: %d)\nRádio Beat\t(Posluchačů: %d)\nBonton Rádio\t(Posluchačů: %d)\nClub Rádio\t(Posluchačů: %d)\nCountry Rádio\t(Posluchačů: %d)\nFrekvence 1\t(Posluchačů: %d)\nRádio Impuls\t(Posluchačů: %d)\nKiss Morava\t(Posluchačů: %d)\nHelax 93.7\t(Posluchačů: %d)\nExpres\t(Poslochačů: %d)\nFun Radio\t(Posluchačů: %d)\n{FF0000}Vypnout Rádio"

 

,Posluchaci[0],Posluchaci[1],Posluchaci[2],Posluchaci[3],Posluchaci[4],Posluchaci[5],Posluchaci[6],Posluchaci[7],Posluchaci[8],Posluchaci[9],Posluchaci[10],Posluchaci[11],Posluchaci[12],Posluchaci[12],Posluchaci[13]);

 

ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Výběr Rádia:",PosluchaciS,"Spusťit", "Zavřít");

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerCommandText(playerid, cmdtext[])

 

{

 

dcmd(radio, 5, cmdtext);

 

return 0;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerExitVehicle(playerid, vehicleid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerStateChange(playerid, newstate, oldstate)

 

{

 

if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER){

 

switch(Posloucham[playerid]){

 

case 1:{ Posluchaci[0] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/evropa2-128.mp3.m3u"); }

 

case 2:{ Posluchaci[1] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/spin64.mp3.m3u"); }

 

case 3:{ Posluchaci[2] ++; PlayAudioStreamForPlayer(playerid, "http://www.hiphopstage.cz/radio128.pls"); }

 

case 4:{ Posluchaci[3] ++; PlayAudioStreamForPlayer(playerid, "http://www.247drumandbass.com/128k.m3u"); }

 

case 5:{ Posluchaci[4] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/beat128.mp3.m3u"); }

 

case 6:{ Posluchaci[5] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/bonton128.mp3.m3u"); }

 

case 7:{ Posluchaci[6] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/clubradio128.mp3.m3u"); }

 

case 8:{ Posluchaci[7] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/country64.mp3.m3u"); }

 

case 9:{ Posluchaci[8] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/frekvence1-128.mp3.m3u"); }

 

case 10:{ Posluchaci[9] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/impuls128.mp3.m3u"); }

 

case 11:{ Posluchaci[10] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/kissmoravaov64.mp3.m3u"); }

 

case 12:{ Posluchaci[11] ++; PlayAudioStreamForPlayer(playerid, "http://ice.abradio.cz:8000/helax128.mp3.m3u"); }

 

case 13:{ Posluchaci[12] ++; PlayAudioStreamForPlayer(playerid, "http://85.248.7.162:8000/96.mp3.m3u"); }

 

case 14:{ Posluchaci[13] ++; PlayAudioStreamForPlayer(playerid, "http://stream.funradio.sk:8000/summer128.mp3.m3u"); }

 

}

 

}

 

if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER){

 

switch(Posloucham[playerid]){

 

case 1:{ Posluchaci[0] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/evropa2-128.mp3.m3u"); }

 

case 2:{ Posluchaci[1] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/spin64.mp3.m3u"); }

 

case 3:{ Posluchaci[2] ++; PlayAudioStreamForPlayer(playerid, "http://www.hiphopstage.cz/radio128.pls"); }

 

case 4:{ Posluchaci[3] ++; PlayAudioStreamForPlayer(playerid, "http://www.247drumandbass.com/128k.m3u"); }

 

case 5:{ Posluchaci[4] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/beat128.mp3.m3u"); }

 

case 6:{ Posluchaci[5] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/bonton128.mp3.m3u"); }

 

case 7:{ Posluchaci[6] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/clubradio128.mp3.m3u"); }

 

case 8:{ Posluchaci[7] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/country64.mp3.m3u"); }

 

case 9:{ Posluchaci[8] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/frekvence1-128.mp3.m3u"); }

 

case 10:{ Posluchaci[9] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/impuls128.mp3.m3u"); }

 

case 11:{ Posluchaci[10] ++; PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/kissmoravaov64.mp3.m3u"); }

 

case 12:{ Posluchaci[11] ++; PlayAudioStreamForPlayer(playerid, "http://ice.abradio.cz:8000/helax128.mp3.m3u"); }

 

case 13:{ Posluchaci[12] ++; PlayAudioStreamForPlayer(playerid, "http://85.248.7.162:8000/96.mp3.m3u"); }

 

case 14:{ Posluchaci[13] ++; PlayAudioStreamForPlayer(playerid, "http://stream.funradio.sk:8000/summer128.mp3.m3u"); }

 

}

 

}

 

if(oldstate == PLAYER_STATE_DRIVER){

 

PoslouchamPryc(playerid); StopAudioStreamForPlayer(playerid);

 

}

 

if(oldstate == PLAYER_STATE_PASSENGER){

 

PoslouchamPryc(playerid);StopAudioStreamForPlayer(playerid);

 

}

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerEnterCheckpoint(playerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerLeaveCheckpoint(playerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerEnterRaceCheckpoint(playerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerLeaveRaceCheckpoint(playerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnRconCommand(cmd[])

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerRequestSpawn(playerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnObjectMoved(objectid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerObjectMoved(playerid, objectid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerPickUpPickup(playerid, pickupid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnVehicleMod(playerid, vehicleid, componentid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnVehicleRespray(playerid, vehicleid, color1, color2)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerSelectedMenuRow(playerid, row)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerExitedMenu(playerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnRconLoginAttempt(ip[], password[], success)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerUpdate(playerid)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

 

{

 

if(dialogid == DIALOG_RADIO){

 

if(response){

 

if(listitem == 0){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posloucham[playerid] = 1;Posluchaci[0] ++;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/evropa2-128.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 1){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posloucham[playerid] = 2;Posluchaci[1] ++;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/spin64.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 2){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[2] ++;Posloucham[playerid] = 3;PlayAudioStreamForPlayer(playerid, "http://www.hiphopstage.cz/radio128.pls");

 

return 1;

 

}

 

else if(listitem == 3){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[3] ++;Posloucham[playerid] = 4;PlayAudioStreamForPlayer(playerid, "http://www.247drumandbass.com/128k.m3u");

 

return 1;

 

}

 

else if(listitem == 4){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[4] ++;Posloucham[playerid] = 5;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/beat128.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 5){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[5] ++;Posloucham[playerid] = 6;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/bonton128.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 6){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[6] ++;Posloucham[playerid] = 7;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/clubradio128.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 7){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[7] ++;Posloucham[playerid] = 8;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/country64.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 8){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[8] ++;Posloucham[playerid] = 9;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/frekvence1-128.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 9){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[9] ++;Posloucham[playerid] = 10;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/impuls128.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 10){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[10] ++;Posloucham[playerid] = 11;PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/kissmoravaov64.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 11){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[11] ++;Posloucham[playerid] = 12;PlayAudioStreamForPlayer(playerid, "http://ice.abradio.cz:8000/helax128.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 12){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[12] ++;Posloucham[playerid] = 13;PlayAudioStreamForPlayer(playerid, "http://85.248.7.162:8000/96.mp3.m3u");

 

return 1;

}

 

else if(listitem == 13){

 

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posluchaci[13] ++;Posloucham[playerid] = 14;PlayAudioStreamForPlayer(playerid, "http://stream.funradio.sk:8000/summer128.mp3.m3u");

 

return 1;

 

}

 

else if(listitem == 14){

if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 29999, DIALOG_STYLE_MSGBOX, "{FF0000}CHYBA","{FF0000}CHYBA: Nejste ve vozidle.","Zavřít","");

 

PosluchacPryc(playerid);Posloucham[playerid] = 0;StopAudioStreamForPlayer(playerid);

 

return 1;

}

 

}

 

}

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

public OnPlayerClickPlayer(playerid, clickedplayerid, source)

 

{

 

return 1;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

stock PosluchacPryc(playerid)

 

{

 

switch(Posloucham[playerid]){

 

case 1: Posluchaci[0] --;case 2: Posluchaci[1] --;case 3: Posluchaci[2] --;case 4: Posluchaci[3] --;case 5: Posluchaci[4] --;case 6: Posluchaci[5] --;case 7: Posluchaci[6] --;case 8: Posluchaci[7] --;case 9: Posluchaci[8] --;case 10: Posluchaci[9] --;case 11: Posluchaci[10] --;case 12: Posluchaci[11] --;case 13: Posluchaci[12] --;case 14: Posluchaci[13] --;case 15: Posluchaci[14] --;

 

}

 

Posloucham[playerid] = 0;

 

}

 

////////////////////////////////////////////////////////////////////////////////

 

stock PoslouchamPryc(playerid)

 

{

 

switch(Posloucham[playerid]){

 

case 1: Posluchaci[0] --;case 2: Posluchaci[1] --;case 3: Posluchaci[2] --;case 4: Posluchaci[3] --;case 5: Posluchaci[4] --;case 6: Posluchaci[5] --;case 7: Posluchaci[6] --;case 8: Posluchaci[7] --;case 9: Posluchaci[8] --;case 10: Posluchaci[9] --;case 11: Posluchaci[10] --;case 12: Posluchaci[11] --;case 13: Posluchaci[12] --;case 14: Posluchaci[13] --;case 15: Posluchaci[14] --;

 

}

 

}

 

////////////////////////////////////////////

 

Link to comment
Share on other sites

  • 0
takze nik nevie ako to mam spravit uz som nasiel aj druhy pwn kod na to emenu tak ak by niekto vedel ako to spravit tak pridam pwn kod

 

 

Hore máš #define DIALOG_RADIO 2000

 

Toto 2000 si zmeň na svoje napr 32767 :d ako Ewwe písal najvyššie ID dialogu či ako...

Link to comment
Share on other sites

  • 0
iaN":fsaiw5od]
takze nik nevie ako to mam spravit uz som nasiel aj druhy pwn kod na to emenu tak ak by niekto vedel ako to spravit tak pridam pwn kod

 

 

Hore máš #define DIALOG_RADIO 2000

 

Toto 2000 si zmeň na svoje napr 32767 :d ako Ewwe písal najvyššie ID dialogu či ako...

 

to som uz skusal viac krat menit a nejde stale

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...