RP chat
#3

That's because you need code under OnPlayerText in order to convert it to a more 'roleplay' style of talking if that's what you mean. This is my OnPlayerText, along with a stock ProxDetector that is used to get the player's position and send messages based on how close the player is to another person.

Код:
public OnPlayerText(playerid, text[])
{
    new
        message[128];
    format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
    ProxDetector(30.0, playerid, message, -1);
    return 0;
}

stock ProxDetector(Float:radi, playerid, string[],color)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    foreach(Player,i)
    {
        if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
        {
            SendClientMessage(i,color,string);
        }
    }
}
Of course, you can change the OnPlayerText however you want in order to fit your server.
Reply


Messages In This Thread
RP chat - by BryanD - 11.06.2014, 16:11
Re: RP chat - by Dignity - 11.06.2014, 16:12
Re: RP chat - by K9IsGodly - 11.06.2014, 16:31
Re: RP chat - by TheCoopster - 11.06.2014, 17:22
Re: RP chat - by amirab - 11.06.2014, 18:38
Re: RP chat - by BryanD - 11.06.2014, 20:56
Re: RP chat - by BryanD - 12.06.2014, 14:13
AW: RP chat - by BiosMarcel - 12.06.2014, 14:30
Re: RP chat - by xXcaliberXx - 12.06.2014, 14:54
Re: RP chat - by Adityz - 12.06.2014, 15:03

Forum Jump:


Users browsing this thread: 4 Guest(s)