22.06.2014, 08:59
hello guys i have a big probleme in my server the probleme is the chat is bugged i mean no one can talk another player and if they type someting it dosen't show in chat plz help
public OnPlayerText(playerid, text[]) { new pText[144]; format(pText, sizeof (pText), "(%d) %s", playerid, text); SendPlayerMessageToAll(playerid, pText); return 0; // ignore the default text and send the custom one } |
public OnPlayerText(playerid, text[]) { if(PlayerInfo[playerid][Level] >= 0) { new String[256]; format(String, 256, "[%d]: %s", playerid, text); SendPlayerMessageToAll(playerid,String); return 0;// return 0 !!!! otherwise you get a double chat message } return 1; }
try this
Код:
public OnPlayerText(playerid, text[]) { if(PlayerInfo[playerid][Level] >= 0) { new String[256]; format(String, 256, "[%d]: %s", playerid, text); SendPlayerMessageToAll(playerid,String); return 0;// return 0 !!!! otherwise you get a double chat message } return 1; } |
public OnPlayerText(playerid, text[])
{
new string[400];
format(string, sizeof(string), "{FFFFFF}%d: %s",playerid,text);
ProxDetector(90.0, playerid, string,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN);
}
return 1;
}