Playing a SoundID when something happens - 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: Playing a SoundID when something happens (
/showthread.php?tid=562727)
Playing a SoundID when something happens -
kevin1990 - 11.02.2015
How do I go about making a sound happen, One of the default SAMP sounds when a player enters a command?
I found a list of SoundIDs but no idea how to use them
https://sampwiki.blast.hk/wiki/SoundID
Re: Playing a SoundID when something happens -
M4D - 11.02.2015
did you read it ?!
Wiki:
Quote:
To be used with PlayerPlaySound
|
and PlayerPlaySound Function:
pawn Код:
Parameters:
(playerid, soundid, Float:x, Float:y, Float:z)
playerid The ID of the player for whom to play the sound.
soundid The sound to play.
Float:x X coordinate for the sound to play at. (0 for no position)
Float:y Y coordinate for the sound to play at. (0 for no position)
Float:z Z coordinate for the sound to play at. (0 for no position)
for example making a command with zcmd:
pawn Код:
#include <a_samp>
#include <zcmd>
CMD:play(playerid, params[])
{
PlayerPlaySound(playerid, 3030, 0.0, 0.0, 0.0);
return 1;
}
Re: Playing a SoundID when something happens -
kevin1990 - 11.02.2015
Sorry man, I was reading it said in
0.3d and I know how things change a lot. My mistake.