Jump to content

TheGodfather

Membru
  • Content Count

    44
  • Joined

  • Last visited

Community Reputation

1 Neutru

About TheGodfather

  • Rank
    Membru

Profile Information

  • Sex
    Masculin
  • Name in game
    TheGodfather
  • Level of knowledge
    Începător

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Nu merge bine /find, cand e in hq la factiune sau clan hq. In rest la casa/biz merge ok. In poza asta trebuia sa imi puna cp unde scrie Los Santos ...
  2. O sa incerc imediat comanda /find cu modificarile mentionate. case DIALOG_WANTED: { if(!response) return true; new id = SelectedPlayers[playerid][listitem]; if(PlayerInfo[id][pWantedLevel] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu mai are wanted!"); ShowMDC(playerid, id); UsedFind[playerid] = 1; new Float:X,Float:Y,Float:Z; GetPlayerPos(id, X,Y,Z); SetPlayerCheckpointEx(playerid, X,Y,Z, 3.5); targetfind[playerid] = id; CP[playerid] = 53; format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d) care se afla in zona %s.",GetName(id),id,GetPlayerZone(id)); SCM(playerid,COLOR_YELLOW,string); }
  3. Salut, am o problema cu aceste 2 comenzi. Imi pune checkpoint gresit cand cineva se afla intr-o casa/hq/biz YCMD:wanted(playerid, params[], help) { if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu faci parte din factiunea politiei."); if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu esti la datorie!"); new iString[1024],string[300],count = 0,online[50]; strcat(iString, "Name\tWanted level\tChased by\n"); if(IsPlayerConnected(playerid)) { foreach(Player,i) { if(PlayerInfo[pWantedLevel] >= 1) { SelectedPlayers[playerid][count] = i; string[0] = 0; format(string, sizeof(string), "%s (%d)\tWanted level %d\t%d cops\n",GetName(i),i,PlayerInfo[pWantedLevel],ChasedBy(i)); count++; strcat(iString,string); } } format(online, sizeof(online),"Wanted online: %d",count); if(count == 0) return SCM(playerid,COLOR_GREY, "Nu sunt suspecti conectati."); ShowPlayerDialog(playerid, DIALOG_WANTED, DIALOG_STYLE_TABLIST_HEADERS, online, iString , "Ok", "Exit"); } return 1; } YCMD:find(playerid, params[], help) { if(JobWorking[playerid] == 1) return 1; if(CP[playerid] != 0 || targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit"); new id,giveplayer[30],string[100]; if(PlayerInfo[playerid][pJob] != 6 && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pMember] != 14 && !IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu ai jobul 'Detective'."); if(sscanf(params, "u",id)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/find <playerid/name>"); if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat."); if(Spectate[id] != 255) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!"); if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!"); if(togfind[id] == 1) return SCM(playerid,COLOR_GREY, "Acel player nu poate fi urmarit!"); if(GetPVarInt(id, "Undercover") == 1) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!"); if(BizRobbed[playerid] != 0) return 1; if(togfind[id] == 1 && OnDuty[playerid] == 0 && PlayerHit[playerid] == -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu poate fi urmarit!"); UsedFind[playerid] = 1; GetPlayerName(id, giveplayer, sizeof(giveplayer)); new Float:X,Float:Y,Float:Z; GetPlayerPos(id, X,Y,Z); SetPlayerCheckpointEx(playerid, X,Y,Z, 3.5); targetfind[playerid] = id; CP[playerid] = 53; format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d) care se afla in zona %s.",giveplayer,id,GetPlayerZone(id)); SCM(playerid,COLOR_YELLOW,string); for(new m; m < 2; m++) { if(PlayerInfo[playerid][pDailyMission][m] == 12) CheckMission(playerid, m); } return 1; }
  4. Merge, multumesc pentru ajutor tuturor T/C
  5. Nu mai pot da ban deloc cuiva care nu e on
  6. Nu merge, am admin 7 si ma lasa sa dau ban unui admin 8, am verificat in baza de date
  7. Ma lasa sa banez jucatori cu admin mai mare ca al meu
  8. Nu mai pot bana un jucator cu admin mai mare, nu imi arata mesaj in chat ca am banat pe x dar nici nu imi arata mesajul Nu poti bana un jucator...
  9. YCMD:bano(playerid, params[], help) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly); if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0); new giveplayerid[25],days,reason[128],string[128],cont; if(sscanf(params, "s[25]ds[128]", giveplayerid, days,reason)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/bano <name> <0 = permanent/days> <reason>"); if(FaceReclama(reason)) return RemoveFunction(playerid, reason); new userID = GetPlayerID(giveplayerid), padmin; if(userID != INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel jucator este deja conectat!"); cont = MySQLCheckAccount(giveplayerid); if(cont == 0) return SCM(playerid,COLOR_ERROR,"Eroare:{FFFFFF} Acest cont nu a fost gasit in baza de date!"); GetPlayerName(playerid, name, sizeof name); new admin[180], szResult[180]; for(new i = 0; i < cache_num_rows(); i++) { //cache_get_value_int(i, "Admin", padmin); cache_get_field_content(i, "Admin", szResult); format(admin, 256, szResult); if(PlayerInfo[playerid][pAdmin] < padmin) return SCM(playerid, -1, "This player can not be banned."); if(days > 0) { new year,month,day; getdate(year, month, day); day += days; if(IsMonth31(month)) { if(day > 31) { month += 1; if(month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if(!IsMonth31(month)) { if(day > 30) { month += 1; if(month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if(!IsMonth31(month) && IsMonth29(year) && month == 2) { if(day > 29) { month += 1; if(month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if(!IsMonth31(month) && !IsMonth29(year) && month == 2) { if(day > 28) { month += 1; if(month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } DeelayCommand[playerid][0] = 10; if(days == 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } else if(days > 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'",year, month, day, name, reason, giveplayerid); mysql_tquery(SQL ,szQuery, "", ""); } else if(days == 0) { new szQuery[256]; mysql_format(SQL, szQuery,sizeof(szQuery),"UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'", GetName(playerid), reason, giveplayerid); mysql_tquery(SQL,szQuery, "", ""); mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); if(strfind(reason, "Silent", true) != -1) { format(string, sizeof(string), "Silent: %s (offline) has been banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SendAdminMessage(COLOR_LIGHTRED, string, 1); } else { format(string, sizeof(string), "Offline: %s has been permanent banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SCMTA(COLOR_LIGHTRED, string); } } else return true; Banlog("Offline",giveplayerid,GetName(playerid),reason,days); PlayerInfo[playerid][pHelpedPlayers] += 2; PlayerInfo[playerid][pHelpedPlayersToday] += 2; new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); } return true; } Pot da ban unui admin cu lvl mai mare ca al meu
  10. Cele 2 erori cu rows le-am rezolvat, mai am nevoie la cache_ [...]
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.