Problem with my OnPlayerText
#2

You mean like this?
pawn Код:
public OnPlayerText(playerid, text[])
{
    new
        name[MAX_PLAYER_NAME],
        string[128],
        Float:X,
        Float:Y,
        Float:Z;

    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerPos(playerid, X, Y, Z);
   
    format(string, sizeof(string), "[Local IC] %s (%d) : %s", name, playerid, text[0]);

    for(new i = 0; i < MAX_PLAYERS; ++i)
    {
        if(IsPlayerInRangeOfPoint(i, 5, X, Y, Z)) SendClientMessage(i, -1, string);
    }

    return 0;
}
Reply


Messages In This Thread
Problem with my OnPlayerText - by CrazyManiac - 10.08.2012, 14:09
Re: Problem with my OnPlayerText - by shitbird - 10.08.2012, 14:13
Re: Problem with my OnPlayerText - by CrazyManiac - 10.08.2012, 14:15
Re: Problem with my OnPlayerText - by shitbird - 10.08.2012, 14:17
Re: Problem with my OnPlayerText - by JaKe Elite - 10.08.2012, 14:21
Re: Problem with my OnPlayerText - by shitbird - 10.08.2012, 14:23

Forum Jump:


Users browsing this thread: 1 Guest(s)