Salut , am o problema si nu inteleg unde.Cand dau /free pe server imi spune ca acest playeri nu este la jail,sau nu are nevoie de avocat. [pawn]CMD:free(playerid, params []) { new string[128], playerto, sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pJob] != 2) { SendClientMessage(playerid, COLOR_GREY, "Nu esti avocat!"); return 1; } if(PlayerInfo[playerid][pLawSkill] >= 401) { ApprovedLawyer[playerid] = 1; } if(sscanf(params, "u", playerto)) return SendClientMessage(playerid, COLOR_ORANGE, "{F97804}USAGE:{B4B5B7}{FFFFFF} /free [playerid/PartOfName]"); if(!IsPlayerConnected(playerto)) return SendClientMessage(playerid, COLOR_GRAD1,"Invalid player !"); if(playerto == playerid) { SendClientMessage(playerid, COLOR_GRAD1, "Nu-ti poti acorda /free singur."); return 1; } if(PlayerInfo[playerto][pJailed] == 1 && ApprovedLawyer[playerid] == 1) { GetPlayerName(playerto, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You freed %s out of jail.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* You were freed out of jail, by Lawyer %s.", sendername); SendClientMessage(playerto, COLOR_LIGHTBLUE, string); ApprovedLawyer[playerid] = 0; CallLawyer[playerto] = 0; JailPrice[playerto] = 0; PlayerInfo[playerto][pJailTime] = 1; PlayerInfo[playerid][pLawSkill] ++; if(PlayerInfo[playerid][pLawSkill] == 50) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 2, you will earn more Money and quicker Reload Time."); } else if(PlayerInfo[playerid][pLawSkill] == 100) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 3, you will earn more Money and quicker Reload Time."); } else if(PlayerInfo[playerid][pLawSkill] == 200) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 4, you will earn more Money and quicker Reload Time."); } else if(PlayerInfo[playerid][pLawSkill] == 400) { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 5, you will earn more Money and quicker Reload Time."); } } else { SendClientMessage(playerid, COLOR_GRAD1, "Player didnt need a Lawyer / Player aint Jailed !"); } return 1;[/pawn]