real chat help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: real chat help (
/showthread.php?tid=111961)
real chat help -
CharlieScene - 05.12.2009
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
Re: real chat help -
Correlli - 05.12.2009
What do you mean by "real chat"?
Re: real chat help -
CharlieScene - 05.12.2009
How do I make the real chat work.
Re: real chat help -
*ToM* - 05.12.2009
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
Re: real chat help -
pagie1111 - 05.12.2009
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);
Re: real chat help -
CharlieScene - 05.12.2009
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
Re: real chat help -
[NYRP]Mike. - 05.12.2009
pawn Код:
OnPlayerText(playerid, text)
{
if(realchat)
}
remove if(realchat) then fix the indentation....