incerc sa te ajut cum m-au ajutat si alti pe mine [pawn]if(strcmp(cmd, "/blacklist", true) == 0 || strcmp(cmd, "/bl", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Tasteaza: /blacklist [playerid/PartOfName] [time(hours)]"); SendClientMessage(playerid, COLOR_GRAD2, "O Sapt: 168 de ore"); SendClientMessage(playerid, COLOR_GRAD2, "Doua Sapt: 336 de ore"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You Black Listed player %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTRED, string); format(string, sizeof(string), "* You were Black Listed by Admin %s.", sendername); SendClientMessage(playa, COLOR_LIGHTRED, string); ResetPlayerWeapons(playa); PlayerInfo[playa][pBlackList] = 1; PlayerInfo[playa][pBLTime] = money*3600; format(string, sizeof(string), "You are Black Listed for %d hours.", money); SendClientMessage(playa, COLOR_LIGHTBLUE, string); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu esti autorizat sa folosesti aceasta comanda"); } } return 1; }[/pawn] [pawn]if(strcmp(cmd, "/blacklisted", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pLeader] >= 1) { new count = 0; SendClientMessage(playerid, COLOR_YELLOW, "* Players BlackList:"); for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pBLTime] > 0) { new time = PlayerInfo[playerid][pMuteTime]/60+1; GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "[%d]%s - BlackList For: [%d] Ore", i,giveplayer, time); SendClientMessage(playerid, COLOR_GRAD2, string); count++; } } } if(count == 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "* Currently no players blacklisted."); } } else { SendClientMessage(playerid, COLOR_WHITE, " you are not authorized to use that command !"); } }//not connected return 1; }[/pawn] [pawn]if(strcmp(cmd, "/bltime", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pBLTime] > 0) { new hours = PlayerInfo[playerid][pBLTime]/3600+1; new minutes = PlayerInfo[playerid][pBLTime]/60+1; format(string, sizeof(string), "Your Black List will expire in %d hours (%d minutes).", hours, minutes); SendClientMessage(playerid,COLOR_LIGHTBLUE, string); } } return 1; }[/pawn] Am avut si eu pe server dar am scos pentru ca mai bine e sa faci un topic pe forum