real chat help
#1

Ok all I need a pwn code for realchat. Because i looked everywhere to where the realchat is and I cant seem to make it work can soemone help me with this realchat problem
BTW its GF edition
Reply
#2

What do you mean by "real chat"?
Reply
#3

Код:
if realchat
How do I make the real chat work.
Reply
#4

I think he meant like a close chat like in Godfather (for roleplay scripts I mean) so people can hear each other only if they're close enough is it ? Or am I wrong
Reply
#5


pawn Код:
stock SendPlayerLocalChat(playerid, color, string[], radius)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i,radius,X,Y,Z)
{
SendClientMessage(i,color,string);
}
}
}
return 1;
}

now when you use this you need to format the string, say like this:

pawn Код:
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),%s(%d) says: %s",name, playerid, message);
SendPlayerLocalChat(playerid,0xFFFFFFF,string,10);
Reply
#6

No I want the real chat fixed not mics or bs , Like on GF When You Press your type button if does Local Chat I want to make it so it Does GLOBEL Chat
Reply
#7

pawn Код:
OnPlayerText(playerid, text)
{
    if(realchat)
}
remove if(realchat) then fix the indentation....

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)