Help me? - 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)
+--- Thread: Help me? (
/showthread.php?tid=500643)
Help me? -
Salman1700 - 14.03.2014
i can,t chat IN global In my server
Re: Help me? -
Bingo - 14.03.2014
Show your OnPlayerText.
Re: Help me? -
Salman1700 - 14.03.2014
i don,t have onplayertext lol
Re: Help me? -
Bingo - 14.03.2014
You cant chat in game right? (GLOBAL) ?
Re: Help me? -
TheBlackHeart - 14.03.2014
You should have this code, i guess
Код:
public OnPlayerText(playerid,text[])
{
static name[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s{FFFFFF}(%d): %s",name,playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
SetPlayerChatBubble(playerid, text, GetPlayerColor(playerid), 100.0, 10000);
return 0;
}
Re: Help me? -
iRaiDeN - 14.03.2014
Hey, Put this Public, and these codes,
PHP код:
public OnPlayerText ( playerid, text [ ] )
{
new
sString [ 128 ],
gName [ 25 ] ;
GetPlayerName ( playerid, gName, 25 ) ;
format ( sString, 128, "Name: %s : %s", gName, text ) ;
SendClientMessageToAll ( -1, sString ) ;
return 0 ;
}