How can i limit the radius for a RP command.
#7

Quote:
Originally Posted by kin
Посмотреть сообщение
Wait, will this allow me to just do /me and everyone in 10 meters or w/e will hear it? Im confused...



Show me an example of a local connection, where when the player connects, only the few people in 10 meters will see it.
Even now it confuses me. Here is an example, with my whisper command:

pawn Код:
COMMAND:w(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, Grey, "Usage: /w [message]");
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    format(String, sizeof(String), "[Whisper] %s: %s.",Name,params);
    foreach(Player,i)
    {
        if(GetDistanceBetweenPlayers(playerid,i) < 5.0)//Only player within 5.0 meters will see it.
        SendClientMessage(i,0xE3FFBBFF,String);
    }
    return 1;
}
Reply


Messages In This Thread
How can i limit the radius for a RP command. - by kin - 04.06.2011, 04:54
Re: How can i limit the radius for a RP command. - by Tee - 04.06.2011, 04:58
Re: How can i limit the radius for a RP command. - by kin - 04.06.2011, 05:32
Re: How can i limit the radius for a RP command. - by Tee - 04.06.2011, 06:14
Re: How can i limit the radius for a RP command. - by kin - 05.06.2011, 02:02
Re: How can i limit the radius for a RP command. - by coole210 - 05.06.2011, 02:24
Re: How can i limit the radius for a RP command. - by Tee - 05.06.2011, 02:29

Forum Jump:


Users browsing this thread: 2 Guest(s)