03.04.2010, 21:07
Ok i have a code and you use a different text
Its showing the mask text and the normal chat text
How i make so just mask text shows when you maskon = 1 and maskoff = 0 goes back to normal chat
koo
Its showing the mask text and the normal chat text
How i make so just mask text shows when you maskon = 1 and maskoff = 0 goes back to normal chat
Код:
public OnPlayerText(playerid, text[]) { //MASK if(PlayerData[playerid][pMaskuse] == 1) { new string[256]; format(string, sizeof(string), "ANONYMOUS Says: %s", text); ProxDetector(20.0, playerid, string,WHITE,WHITE,WHITE,WHITE,WHITE); } if(ServerInfo[Anticaps] == 1) { for(new i; i<strlen(text); i++) { if (text[i] > 64 && text[i] < 91) text[i] += 32; } } if(PlayerData[playerid][Muted] == 1) { SendClientMessage(playerid, RED, "SERVER MESSAGE: You are muted"); return 1; } if(PlayerData[playerid][dtaped] == 1) { SendClientMessage(playerid, RED, "Hoooly fuk homie, your taped up, you can't tlk!"); return 0; } return true; }