How Can I
#7

Another one..
pawn Код:
public OnPlayerText(playerid, text[])
{
    new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
    new String[128]; format(String, sizeof(String), "%s[%d]: %s", PlayerName, playerid, text);
    new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
   
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 10.0, Pos[0], Pos[1], Pos[2]))
        {
            SendClientMessage(i, -1, String);
        }
    }
    return 0;
}
Reply


Messages In This Thread
How Can I - by R4mpage - 25.12.2013, 11:45
Re: How Can I - by SilentSoul - 25.12.2013, 11:48
Re: How Can I - by R4mpage - 25.12.2013, 11:49
Re: How Can I - by SilentSoul - 25.12.2013, 11:53
Re: How Can I - by R4mpage - 25.12.2013, 11:55
Re: How Can I - by SilentSoul - 25.12.2013, 12:11
Re: How Can I - by xVIP3Rx - 25.12.2013, 12:34

Forum Jump:


Users browsing this thread: 2 Guest(s)