SA-MP Forums Archive
need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need help (/showthread.php?tid=388898)



need help - DerickClark - 30.10.2012

where i put dis





PlaySound(playerid,1009);


Re: need help - guitarmandanny - 30.10.2012

What are you wanting the sound to play for?


Re: need help - DerickClark - 30.10.2012

i got it went ppl join my sever i need a close sound like a player pick a class and it off,but mys keep playing.


Re: need help - DerickClark - 30.10.2012

PlayerPlaySound(playerid,1097,1955.8129,-2181.6062,13.5865);

How can i put dis?
PlaySound(playerid,1009);

i ready got
PlayerPlaySound(playerid,1097,1955.8129,-2181.6062,13.5865);


it works
but i wanna it stop playing.
need to put dis PlaySound(playerid,1009);


Re: need help - guitarmandanny - 30.10.2012

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
PlayerPlaySound(playerid,1097,1955.8129,-2181.6062,13.5865);

How can i put dis?
PlaySound(playerid,1009);

i ready got
PlayerPlaySound(playerid,1097,1955.8129,-2181.6062,13.5865);


it works
but i wanna it stop playing.
need to put dis PlaySound(playerid,1009);
Put it like this if you want it to play when a player chooses class.

EDIT:
Код:
public OnPlayerSpawn(playerid)
{
    PlayerPlaySound(playerid, 1009, 0.0, 0.0, 0.0);    
	return 1;
}



Re: need help - DerickClark - 30.10.2012

ye i picked a class still playing the sound.


Re: need help - Adil - 30.10.2012

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    PlayerPlaySound(playerid, 1098, 0.0, 0.0, 0.0);
    return 1;
}



Re: need help - guitarmandanny - 30.10.2012

Sorry I meant

Код:
public OnPlayerSpawn(playerid)
{
        PlayerPlaySound(playerid, 1009, 0.0, 0.0, 0.0);
	return 1;
}



Re: need help - DerickClark - 30.10.2012

tys it work


Re: need help - guitarmandanny - 30.10.2012

No problem.