19.01.2013, 20:33
Quote:
Put an "return 1;" before the last closing bracket. Might fix it. Test and report here again.
This forum requires that you wait 120 seconds between posts. Please try again in 22 seconds. #Edit# Too slow. Damn this waiting time |
Код:
public OnPlayerText(playerid, text[]) { //Now les't make an admin chat, it will be: # <text>. if( (text[0] == '#' || text[0] == '@') && strlen(text) > 1) { new str[128]; new szPlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME); if(IsPlayerAdmin(playerid)) { format(str, 128, "{FF0000}Admin %s: {DBED15}%s", szPlayerName, text[1]); for(new iPlayerID; iPlayerID < MAX_PLAYERS; iPlayerID++) { if(!IsPlayerConnected(iPlayerID)) continue; if(!IsPlayerAdmin(iPlayerID)) continue; SendClientMessage(iPlayerID, 0xFFFFFFAA, str); } } return 1; } }