How to use custom functions inside custom functions.
#4

hm, try this

pawn Code:
SendLocalClientMessage(playerid, Float:dist, color, str[])
{
    new Float:ppos[3];
    GetPlayerPos(playerid, ppos[0], ppos[1], ppos[2]);
    foreach(Player, i)
    {
        if(IsPlayerInRangeOfPoint(i, dist, ppos[0], ppos[1], ppos[2]))
        SendClientMessage(i, color, str);
    }
    SendClientMessage( playerid, color, str );
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)