01.07.2014, 13:40
Tenho esse aqui, como faзo pra deichar ele 100%?
Код:
if(strcmp(cmd, "/reportar", true) == 0 || strcmp(cmd, "/report", true) == 0) { if(IsPlayerConnected(playerid)) { if(JustReported[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "** Espere 1 Minuto Para Enviar O Prуximo Report! "); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USE: (/report)ar [ Personagem ID ] [texto]"); return 1; } giveplayerid = strval(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; 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, "USE: (/report)ar [ Personagem ID ] [texto]"); return 1; } if(PlayerInfo[playerid][pVIP] == 1) { format(string, sizeof(string), "[INFO]: [VIP Bronze] %s (%d) Has Reported %s (%d) for: %s",sendername, playerid, giveplayer, giveplayerid, (result)); SendAdminMessage(COLOR_BLUE,string); } else { format(string, sizeof(string), "[INFO]: %s (%d) Reportou %s (%d) por: %s",sendername, playerid, giveplayer, giveplayerid, (result)); SendAdminMessage(COLOR_GREEN,string); } SendClientMessage(playerid, COLOR_LIGHTRED, "* Seu Report Foi Enviado Aos Admins Online e Foi Salvo No Log De Report's."); } } } return 1; }