PlaySoundForPlayersInRange()
#1

In the FS ls_elevator i found that:
Код:
#include "../include/gl_common.inc" // for PlaySoundForPlayersInRange()
but in gl_common.inc I didn't found any PlaySoundForPlayersInRange() so where I can find that function?
Reply
#2

Location: include/gl_common.inc - SA-MP 0.3d RC1
pawn Код:
stock PlaySoundForPlayersInRange(soundid, Float:range, Float:x, Float:y, Float:z)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,range,x,y,z))
        {
            PlayerPlaySound(i, soundid, x, y, z);
        }
    }
}
Reply
#3

Thanks a lot.
Don't know why, but even in SA-MP 0.3d RC1 in include/gl_common.inc I don't have this function >_<
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)