18.05.2011, 12:32
Algo falla aqui cuando un admin quiere poner algo por /ooc no sale nada mientras que si lo pone un user funciona...
Ayuda
Quote:
//----------------------------------[ooc]----------------------------------------------- if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " No Estбs Conectado"); return 1; } if ((noooc) && PlayerInfo[playerid][pAdmin] < 1) { SendClientMessage(playerid, COLOR_GRAD2, "Chat de Dudas/Preguntas, Desactivado!"); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "Estas Silenciado.."); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "Utiliza: /O(OOC): [Pregunta/Duda]"); return 1; } if(PlayerInfo[playerid][pAdmin] < 1) { format(string, sizeof(string), "(( [Dudas][ID: %d] %s: %s ))",playerid, sendername, result); OOCOff(COLOR_LIGHTBLUE,string); printf("%s", string); } } return 1; |