Playing a SoundID when something happens
#1

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
Reply
#2

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;
}
Reply
#3

Sorry man, I was reading it said in 0.3d and I know how things change a lot. My mistake.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)