Sari la conținut

+ AlexBo$$

+Membru
  • Postări

    4
  • Înregistrat

  • Ultima Vizită

Orice postat de AlexBo$$

  1. Am rezolvat!
  2. Salut, din nou va inebunesc cu problemele mele. Ei bine vreau sa aflu ce am facut gresit la aceasta comanda si cum o pot rezolva. Deci cand folosesc aceasta comanda si pun pe cineva lider nu ii da skin-ul acela ce e pus in comanda la nici o factiune. La orice factiune nu pune skin il lasa cu cel defaul dar in shimb daca se duce la un magazin de tip clothes merge, am remarcat ca la departamente daca dai /duty ii da skinu de cj, adica skin id 0. La celelalte rankuri merge totul perfect, acestea fiind r 1-6. Sper sa ma ajute cineva cu un sfat. Comnda este: CMD:makeleader(playerid, params[]) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 4) { new para1,level,string[256],giveplayer[25],sendername[25]; if(sscanf(params, "ui",para1,level)) { format(string,sizeof(string),"Syntax: /makeleader <Nume/Playerid> <Faction ID(1-%d)>",serverfactions); SendClientMessage(playerid, COLOR_SYNTAX, string); return 1; } if(level > serverfactions || level < 0) return SendClientMessage(playerid, COLOR_GREY, "Invalid FactionID."); if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if(PlayerInfo[para1][pAdmin] < 4) { if(level != 0) { if(PlayerInfo[para1][pMember] > 0 && PlayerInfo[para1][pLeader] > 0) return SendClientMessage(playerid,COLOR_GREY, "That player is in a faction."); GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pMember] = level; PlayerInfo[para1][pLeader] = level; format(string, sizeof(string), "Adminul %s te-a promovat ca lider al factiunii %s(%d).", GetName(playerid),DynamicFactions[level][fName],level); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string,sizeof(string),"(( %s: Noul lider al factiunii %s este %s, felicitari! ))",GetName(playerid),DynamicFactions[level][fName],GetName(para1)); OOCOff(COLOR_OOC,string); format(string,sizeof(string),"AdmCmd: %s l-a promovat pe %s ca lider al factiunii %s(%d).",GetName(playerid),GetName(para1),DynamicFactions[level][fName],level); SendAdminMessage(COLOR_LIGHTRED,string,1); if(level == 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); } else if(level == 1) { PlayerInfo[para1][pChar] = 265; } //LSPD else if(level == 2) { PlayerInfo[para1][pChar] = 295; } //FBI else if(level == 3) { PlayerInfo[para1][pChar] = 179; } //National Guard else if(level == 4) { PlayerInfo[para1][pChar] = 270; } //gsb else if(level == 5) { PlayerInfo[para1][pChar] = 296; } //SP else if(level == 6) { PlayerInfo[para1][pChar] = 126; } //verdant else if(level == 7) { PlayerInfo[para1][pChar] = 228; } //Mayor else if(level == 8) { PlayerInfo[para1][pChar] = 268; } //Tow Car Company else if(level == 9) { PlayerInfo[para1][pChar] = 147; } //News Reporters else if(level == 10) { PlayerInfo[para1][pChar] = 113; } //TTB else if(level == 11) { PlayerInfo[para1][pChar] = 294; } //Hitman Agency else if(level == 12) { PlayerInfo[para1][pChar] = 171; } //LVSI else if(level == 13) { PlayerInfo[para1][pChar] = 61; } //LSTaxi else if(level == 14) { PlayerInfo[para1][pChar] = 228; } //Paramedic else if(level == 15) { PlayerInfo[para1][pChar] = 265; } //LVPD else if(level == 16) { PlayerInfo[para1][pChar] = 61; } //SFTAXI else if(level == 17) { PlayerInfo[para1][pChar] = 61; } //LVTAXI else if(level == 18) { PlayerInfo[para1][pChar] = 171; } //LSSI else if(level == 19) { PlayerInfo[para1][pChar] = 171; } //SFSI else if(level == 20) { PlayerInfo[para1][pChar] = 120; } //RDT else if(level == 21) { PlayerInfo[para1][pChar] = 223; } //VTB else if(level == 22) { PlayerInfo[para1][pChar] = 46; } //69PM else if(level == 23) { PlayerInfo[para1][pChar] = 3; } //Avispa else if(level == 24) { PlayerInfo[para1][pChar] = 292; } //ELC else if(level == 25) { PlayerInfo[para1][pChar] = 265; } //SFPD if(level == 0) { gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; } else if(level == 1 || level == 2 || level == 3 || level == 7 || level == 15 || level == 25) { gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } else if(level == 4 || level == 5 || level == 6 || level == 10 || level == 20 || level == 21 || level == 22 || level == 23 || level == 24) { gTeam[para1] = 5; PlayerInfo[para1][pTeam] = 5; } else if(level == 9 || level == 8 || level == 12 || level == 13 || level == 14 || level == 16 || level == 17 || level == 18 || level == 19) { gTeam[para1] = 4; PlayerInfo[para1][pTeam] = 4; } else if(level == 11) { gTeam[para1] = 11; PlayerInfo[para1][pTeam] = 11; } SetPlayerSkinEx(para1, PlayerInfo[para1][pChar]); PlayerInfo[para1][pRank] = 7; new str[356]; format(str,356,"UPDATE users SET `Leader`='%d',`Member`='%d',`Rank`='7',`Team`='%d',`CChar`='%d' WHERE `ID`='%d'",PlayerInfo[para1][pLeader],PlayerInfo[para1] [pMember],PlayerInfo[para1][pTeam],PlayerInfo[para1][pChar],PlayerInfo[para1][pSQLID]); mysql_query(SQL,str); SetPlayerToTeamColor(para1); } if(level == 0) { PlayerInfo[para1][pMember]=0; PlayerInfo[para1][pLeader]=0; PlayerInfo[para1][pRank] = 0; PlayerInfo[para1][pChar] = 25; PlayerInfo[para1][pFACWarns] = 0; PlayerInfo[para1][pFpunish] = 0; PlayerInfo[para1][pALeader] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; OnDuty[para1] = 0; tazer[para1] = 0; SetPlayerArmourEx(para1, 0); SetPlayerSkinEx(para1,PlayerInfo[para1][pModel]); SpawnPlayer(para1); new str[256]; format(str,sizeof(str),"UPDATE users SET `Member`='0',`Leader`='0',`Rank`='0',`CChar`='0',`FWarn`='0',`FPunish`='0',`Team`='3',`ALeader`='0' WHERE `ID`='%d'",PlayerInfo[para1][pSQLID]); mysql_query(SQL,str); format(string,sizeof(string),"Adminul %s te-a dat afara din randul liderilor.",GetName(playerid)); SendClientMessage(para1,COLOR_LIGHTBLUE,string); format(string,sizeof(string),"AdmCmd: %s l-a dat afara pe %s din randul liderilor.",GetName(playerid),GetName(para1)); SendAdminMessage(COLOR_LIGHTRED,string,4); format(string,sizeof(string),"Adminul %s l-a dat afara pe %s din randul liderilor.",GetName(playerid),GetName(para1)); SendLeadersMessage(COLOR_LIGHTBLUE,string); } } else if(PlayerInfo[para1][pAdmin] >= 4) { PlayerInfo[para1][pMember] = level; PlayerInfo[para1][pLeader] = level; if(level > 0) { OnDuty[para1] = 0; tazer[para1] = 0; SetPlayerArmourEx(para1, 0); format(string,sizeof(string),"AdmCmd: %s supravegheaza factiunea %s(%d).",GetName(playerid),DynamicFactions[level][fName],level); SendAdminMessage(COLOR_LIGHTRED, string,4); } else if(level == 0) { gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; OnDuty[para1] = 0; tazer[para1] = 0; SetPlayerArmourEx(para1, 0); format(string,sizeof(string),"AdmCmd: %s nu mai supravegheaza nici o factiune.",GetName(playerid)); SendAdminMessage(COLOR_LIGHTRED, string,4); } if(level == 0) { gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; } else if(level == 1 || level == 2 || level == 3 || level == 7 || level == 15 || level == 25) { gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } else if(level == 4 || level == 5 || level == 6 || level == 10 || level == 20 || level == 21 || level == 22 || level == 23 || level == 24) { gTeam[para1] = 5; PlayerInfo[para1][pTeam] = 5; } else if(level == 9 || level == 8 || level == 12 || level == 13 || level == 14 || level == 16 || level == 17 || level == 18 || level == 19) { gTeam[para1] = 4; PlayerInfo[para1][pTeam] = 4; } else if(level == 11) { gTeam[para1] = 11; PlayerInfo[para1][pTeam] = 11; } PlayerInfo[para1][pRank] = 7; new str[356]; format(str,356,"UPDATE users SET `Leader`='%d',`Member`='%d',`Rank`='7',`Team`='%d' WHERE `ID`='%d'",PlayerInfo[para1][pLeader],PlayerInfo[para1][pMember],PlayerInfo[para1][pTeam],PlayerInfo[para1][pSQLID]); mysql_query(SQL,str); SetPlayerToTeamColor(para1); } } } else { SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat."); } } else { SendClientMessage(playerid, COLOR_ERROR, AdminOnly); } } return 1; }
  3. Am rezolvat!
  4. Stie cineva de ce imi da erorile astea?, cand deschid consola la server: [17:10:20] ======================================= [17:10:20] | | [17:10:20] | YSI version 3.09.0684 | [17:10:20] | By Alex "Y_Less" Cole | [17:10:20] | | [17:10:20] ======================================= [17:10:20] [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" [17:10:20] -mSelection- WARNING: Reached maximum amount of lists, increase "mS_TOTAL_LISTS" Am incercat sa reinoiesc toate include-urile dar nimic tot asa da.
×
×
  • Creează nouă...