PlayerPlaySound IT
From SA-MP Wiki
Description:
Riproduce il suono specificato per un giocatore
(playerid, soundid, Float:x, Float:y, Float:z)
playerid | L'ID del giocatore che si sente il suono. |
soundid | L'ID del Suono da riprodurre. |
Float:x | X coordinate for the sound to play at (offset from the player's position) |
Float:y | Y coordinate for the sound to play at (offset from the player's position) |
Float:z | Z coordinate for the sound to play at (offset from the player's position) |
Return Values:
This function does not return any specific values.
Note | Only use the coordinates if you want the sound to be played at a certain position. Set coordinates all to 0 to just play the sound |
// player punching sound (fits for commands such as /slap well). The sound will be quiet, as the source is actually 10 meters above the player. PlayerPlaySound(playerid, 1130, 0.0, 0.0, 10.0);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.