RP chat system..
#10

Quote:
Originally Posted by Andregood
Посмотреть сообщение
There are various of ways for this, ProxDetector is most definitely the most used. Ehm, I'm also quite sure that SetPlayerChatBubble works as well. Try searching for them and learn some.
Proxdetector is only 'most used' because people attempting to start a server are forced to use it (due to their script being a godfather edit). Simpler methods can be made and there are even newer versions of these functions which returns formatted text at a set radius (Smart Chat). As I am using Proxdetector for one reason (supports multiple colors) I find it fair enough.

Here's an example of my code:

PHP код:
stock SendChatMessage(playerid,color,msg[],Float:radius)
{
      new 
Float:x,Float:y,Float:z;
      
GetPlayerPos(playerid,x,y,z);
    foreach(
Playeri//foreach include
      
{
        if(
IsPlayerInRangeOfPoint(i,radius,x,y,z))SendClientMessage(i,color,msg);
      }
      return 
1;

Reply


Messages In This Thread
RP chat system.. - by RoleplayEditor - 17.08.2011, 09:42
Re: RP chat system.. - by RoleplayEditor - 17.08.2011, 09:45
Re: RP chat system.. - by MadeMan - 17.08.2011, 09:53
Re: RP chat system.. - by RoleplayEditor - 17.08.2011, 10:07
Re: RP chat system.. - by Davz*|*Criss - 17.08.2011, 10:15
Re: RP chat system.. - by RoleplayEditor - 17.08.2011, 10:22
Re: RP chat system.. - by Andregood - 17.08.2011, 10:23
Re: RP chat system.. - by RoleplayEditor - 17.08.2011, 10:34
Re: RP chat system.. - by Adil - 17.08.2011, 10:34
Re: RP chat system.. - by Kush - 17.08.2011, 10:44

Forum Jump:


Users browsing this thread: 5 Guest(s)