Jump to content

Hudbicka


Guest uSb

Recommended Posts

TuT na hudbu...

 

 

 

if (strcmp("/hudbicka", cmdtext, true, 10) == 0)

{

PlayerPlaySound(playerid,SOUND_MUSIC10,2113.6211,1683.4001,10.5078);

SendClientMessage(playerid, COLOR_GREEN, "Hudbicka zapnuta ! ");

return 1;

}

if (strcmp("/hudbickaoff", cmdtext, true, 10) == 0)

{

PlayerPlaySound(playerid,SOUND_OFF, 2259.8911,1689.5200,104.5028);

SendClientMessage(playerid, COLOR_RED, "Hudbicka vypnuta ! ");

return 1;

}

Link to comment
Share on other sites

jj vždycky se kopiracy chtnou do pasti přez tento prikaz

 

 

SOUND_MUSIC10

SOUND_OFF

 

 

 

na definice jsi nějak zapomel ne?? navrhuji dat hodnost lama .....jen tak pro vystrahu :!:

 

 

tady na teto definici se vždy spálili koúpiraci :-D

Link to comment
Share on other sites

Hele nabudeme chodit okolo horke kase, napis autora + forum odkud to mas ,

nebo udelej vlastni ;) nezlobim se ale pro priste a byl bych rad, kdybys to doplnil i u tohodle.

Link to comment
Share on other sites

defines:

#define SOUND_MUSIC10
#define SOUND_OFF

 

ongamemodeinit:

if (strcmp("/hudbicka", cmdtext, true, 10) == 0)
{
PlayerPlaySound(playerid,SOUND_MUSIC10,2113.6211,1683.4001,10.5078);
SendClientMessage(playerid, COLOR_GREEN, "Hudbicka zapnuta ! ");
return 1;
}

if (strcmp("/hudbickaoff", cmdtext, true, 10) == 0)
{
PlayerPlaySound(playerid,SOUND_OFF, 2259.8911,1689.5200,104.5028);
SendClientMessage(playerid, COLOR_RED, "Hudbicka vypnuta ! ");
return 1;
}

 

snad to pujde

Link to comment
Share on other sites

Guest SlipknoT
defines:

#define SOUND_MUSIC10
#define SOUND_OFF

 

ongamemodeinit:

if (strcmp("/hudbicka", cmdtext, true, 10) == 0)
{
PlayerPlaySound(playerid,SOUND_MUSIC10,2113.6211,1683.4001,10.5078);
SendClientMessage(playerid, COLOR_GREEN, "Hudbicka zapnuta ! ");
return 1;
}

if (strcmp("/hudbickaoff", cmdtext, true, 10) == 0)
{
PlayerPlaySound(playerid,SOUND_OFF, 2259.8911,1689.5200,104.5028);
SendClientMessage(playerid, COLOR_RED, "Hudbicka vypnuta ! ");
return 1;
}

 

snad to pujde

 

:lol::lol::lol::lol: ti sibe ? ongamemodeinit chces davat prikazy ? :lol::lol: no .. to ma byt v OnPlayerCommandText :)

Link to comment
Share on other sites

Nevim co resite

 

nahodu do modu

#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA

 

do public OnPlayerCommandText(playerid, cmdtext[])

if(strcmp(cmdtext, "/play", true) == 0) {
SendClientMessage(playerid, COLOR_GREEN, "**Song zapnut.");
PlayerPlaySound(playerid,1185,0,0,0);
// 1185 = Id hudby, kterou chcete prehrat
return 1;
}

if(strcmp(cmdtext, "/stop", true) == 0) {
SendClientMessage(playerid, COLOR_RED, "**Song vypnut.");
PlayerPlaySound(playerid,1186,0,0,0);
return 1;
}

 

nejen ze je zbytecna definice hudby, tak i meneni id

bude se menit jen song, ktery se ma pustit song id + 1 = stop hudby

jakekoliv, to znamena ze muzu prehravat hudby s id napriklad 5,6,7 ale zastavim ji vzdycky prikazem /stop :?

 

Mimochodem zbytek id naleznete zde

 

http://other.cry.cz/index.php/Songs_id

Link to comment
Share on other sites

  • 2 weeks later...

Sorry ze to otviram ale mam s tim problem s tim od tebe chytraku mmnt skopcim a poslu chyby.

 

C:\DOCUME~1\Stepan\Plocha\ap.pwn(732) : error 010: invalid function or declaration
C:\DOCUME~1\Stepan\Plocha\ap.pwn(736) : error 010: invalid function or declaration
C:\DOCUME~1\Stepan\Plocha\ap.pwn(739) : error 010: invalid function or declaration
C:\DOCUME~1\Stepan\Plocha\ap.pwn(742) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Link to comment
Share on other sites

Dodávám ty Řádky

732   if(strcmp(cmdtext, "/play", true) == 0){
733	SendClientMessage(playerid, COLOR_GREEN, "**Song zapnut.");
734	PlayerPlaySound(playerid,1185,0,0,0);
735	// 1185 = Id hudby, kterou chcete prehrat
736	return 1;
737   }
738
739	if(strcmp(cmdtext, "/stop", true) == 0){
740	SendClientMessage(playerid, COLOR_RED, "**Song vypnut.");
741	PlayerPlaySound(playerid,1186,0,0,0);
742	return 1;
743   }

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...