Help with few things.
#4

pawn Код:
if(!strcmp(cmdtext, "/me", true, 3))
{
        if(!cmdtext[3])return SendClientMessage(playerid, 0x33CCFFAA, "USAGE: /me [action]");
        new str[128];
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos( playerid, X, Y, Z );
        for( new i; i < MAX_PLAYERS; i++ )
        {
            if( IsPlayerConnected( i ) )
            {
                  if( IsPlayerInRangeOfPoint( i, 15.0, X, Y, Z )
                  {
                       GetPlayerName(playerid, str, sizeof(str));
                       format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
                       SendClientMessagel(i, 0x33CCFFAA, str);
                  }
            }
        }
        return 1;
}
This should work. Now, you can edit the range at any time, changing the 15.0 to higher or lower values.
Reply


Messages In This Thread
Help with few things. - by Compton - 14.03.2011, 16:13
Re: Help with few things. - by antonio112 - 14.03.2011, 16:29
Re: Help with few things. - by Compton - 14.03.2011, 16:31
Re: Help with few things. - by antonio112 - 14.03.2011, 23:55
Re: Help with few things. - by Compton - 15.03.2011, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)