Talking in RP way
#3

Quote:
Originally Posted by Kastranova
Посмотреть сообщение
you mean something like this?

pawn Код:
public OnPlayerText(playerid, text[])
{
#define COLOR_MESSAGE 0xFFFF00AA
new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
new id;
new string[128];
new params[128];
new Float:x,Float:y,Float:z;
       GetPlayerPos(playerid, x, y, z);
       if(IsPlayerInRangeOfPoint(id,10/*range around the player*/,x,y,z)) {
       format(string,sizeof(string),"%s(%d) said: %s",pname,playerid,params);
       SendClientMessage(id,COLOR_MESSAGE,string);
       }
return 1;
}
This code can be used in a roleplay... "Name says: text he says"
Nope that does not work. Tried it, still the DM way talking is on and other thing is added is like PM like stuff when I write test it says says in Yellow (PLAYERNAME) TEXT (ID) and below it normal chat
Reply


Messages In This Thread
Talking in RP way - by Tachibana - 21.06.2011, 12:08
Re: Talking in RP way - by Kastranova - 21.06.2011, 12:26
Re: Talking in RP way - by Tachibana - 21.06.2011, 12:44
Re: Talking in RP way - by Mokerr - 21.06.2011, 12:53
Re: Talking in RP way - by Swiftz - 21.06.2011, 13:06
Re: Talking in RP way - by Tachibana - 21.06.2011, 13:13
Re: Talking in RP way - by Wesley221 - 21.06.2011, 13:15
Re: Talking in RP way - by Tachibana - 21.06.2011, 13:26
Re: Talking in RP way - by Wesley221 - 21.06.2011, 13:29
Re: Talking in RP way - by Tachibana - 21.06.2011, 13:31

Forum Jump:


Users browsing this thread: 3 Guest(s)