01.01.2014, 19:01
(
Последний раз редактировалось Screaming; 01.01.2014 в 19:32.
)
This is my RealChat now:
But how to set it as normal chats, like every server has?
What do I need to replace?
pawn Код:
if(realchat)
{
if(gPlayerLogged[playerid] == 0)
{
return 0;
}
else if(PlayerInfo[playerid][pMask] == 1)
{
if(strcmp(Accent[playerid],"none",true,3))
{
new result[256];
format(string, sizeof(string), "Stranger says: [%s Accent] %s",Accent[playerid],text);
}
else
{
format(string, sizeof(string), "Stranger says: %s",text);
}
}
else
{
if(strcmp(Accent[playerid],"none",true,3))
{
format(string, sizeof(string), "%s says: [%s Accent] %s",PlayerName(playerid),Accent[playerid],text);
}
else
{
format(string, sizeof(string), "%s says: %s",PlayerName(playerid),text);
}
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
return 1;
}
Код:
<playercolor+name>: %s Example: SAMP: Hey! So Cyan is the PlayerColor of the player^