-
Posts
1,303 -
Joined
-
Last visited
-
Days Won
53
Everything posted by Leonard
-
up pt alin, merita.
-
sus cu asta
-
Interesant.
-
[REZOLVAT] Cum pot sa pun o melodie la login and register ?
Leonard replied to AdyHD's topic in Closed topics
Astept confirmarea ca merge / nu merge. -
[REZOLVAT] Intrebare gamemode Burned | editare campos login
Leonard replied to menulemane's topic in Closed topics
Cauta in gamemode functia: function Camera(playerid) { Si acolo ai: function Camera(playerid) { TogglePlayerSpectating(playerid, false); InterpolateCameraPos(playerid, 1665.612548, -1757.263427, 54.814579, 1683.537841, -1942.781616, 35.670131, 15000); InterpolateCameraLookAt(playerid, 1667.853515, -1761.334472, 52.969528, 1687.079589, -1939.998657, 33.499637, 15000); SetPlayerPosEx(playerid, 1665.612548, -1757.263427, 54.814579); SetPlayerVirtualWorld(playerid, 9999); return 1; } De aici te descurci. -
Problema a fost rezolvată. Topicul a fost închis!
-
Problema a fost rezolvată. Topicul a fost închis!
-
Problema a fost rezolvată. Topicul a fost închis!
-
Probabil ai o variabila pe care o folosesti pentru 2 textdraw-uri odata.
-
[REZOLVAT] Cum pot sa pun o melodie la login and register ?
Leonard replied to AdyHD's topic in Closed topics
Pentru inceput creezi o variabila de tip 'Boolean' pe care o initializezi cu 'false'. new bool: myVariable[ MAX_PLAYERS ]; La OnPlayerConnect adaugi: public OnPlayerConnect( playerid ) { PlayAudioStreamForPlayer( playerid, "url de la melodie." ); // Cu aceasta functie pui o muzica pentru player-ul care se conecteaza. myVariable[ playerid ] = true; // aici setam variabila declarata anterior, pe 'true'. return true; // Aici returnam 1. } Dupa asta, cand player-ul se inregistreaza/logheaza si server-ul il spawneaza automat, mergem la public-ul OnPlayerSpawn si adaugam: public OnPlayerSpawn( playerid ) { StopAudioStreamForPlayer( playerid ); // Oprim muzica pe care am pus-o la OnPlayerConnect. myVariable[ playerod ] = false; // aici setam variabila pe care am setat-o anterior pe true, acum o setam/resetam pe 'false'. return true; // Aici returnam 1. } Si ca sa nu se creeze bug-uri, la OnPlayerDisconnect o resetam. public OnPlayerDisconnect( playerid, reason ) { myVariable[ playerod ] = false; return true; } Sper ca ai inteles. -
#...
-
Interesant
-
Interesant.
-
Problema a fost rezolvată. Topicul a fost închis!
-
Numai bine.
-
In loc de 'if else' pui decait 'if', pentru ca ai eliminat prima verificare cu [Auto-Login]-ul. Daca nu ai inteles, inlocuieste functia CheckClassIP din gamemode-ul tau cu asta: https://pastebin.com/AjteetaR
-
@@Fuhrer nu vad vreo eroare care sa confirme ca interogarea de la comanda [/setleader] nu ar functiona.. Probabil cel care a editat gamemode-ul, a facut ceva gresit si l-a buguit.
-
Daca vrei sa scapi de acel 'Auto-Login' cauta functia 'CheckClassIP( playerid )' si sterge if(strcmp(playerIP, "127.0.0.1", true) == 0 && strcmp(GetName(playerid), "Edison", true) == 0) { OnPlayerLogin(playerid,MD5_Hash("enuisap")); PlayerInfo[playerid][pPinLogged] = 1; SCM(playerid, COLOR_WARNING, "[AUTO-LOGIN] Te-ai logat automat!"); } Si dupa in loc de 'else if' la verificarea de sub ea, pui 'id' if(test != 0) { new string[180], name[MAX_PLAYER_NAME], by[MAX_PLAYER_NAME], date[100], reason[64]; cache_get_field_content(0, "Name", name); cache_get_field_content(0, "By", by); cache_get_field_content(0, "Date", date); cache_get_field_content(0, "Reason", reason); for( new j = 0; j <= 100; j++) SendClientMessage(playerid, COLOR_WHITE, ""); format(string, sizeof(string), "Acest cont este banat permanent pe IP de %s de pe %s!", by, date); SCM(playerid, COLOR_WARNING, string); format(string, sizeof(string), "Contul pe care s-a luat ban este %s.", name); SCM(playerid, COLOR_CLIENT, string); format(string, sizeof(string), "Motivul: %s", reason); SCM(playerid, COLOR_CLIENT, string); format(string, sizeof(string), "Daca consideri ca ai primit ban aiurea, fa o cerere de unban pe burned.ro/panel/unbans!", reason); SCM(playerid, COLOR_CLIENT, string); SetPlayerCameraPos(playerid, 1183.0143, -965.7394, 129.6071); SetPlayerCameraLookAt(playerid, 1183.7214, -965.0270, 129.2470); TogglePlayerSpectating(playerid, 0); KickEx(playerid); }
-
Arata-mi fisierul mysql_log.txt.
-
[REZOLVAT] Problema | Intrebare gamemode Burned original.
Leonard replied to menulemane's topic in Closed topics
Vezi ca ai array-ul DealerCarPos si DealerCarPos1, de acolo modifici locatiile de spawnare a vehiculelor dupa ce sunt cumparate. -
Bun, din cate vad in codul din panel, ai tabelul 'faction_logs' cu 'id' si 'text'. Du-te in baza de date, sterge vehicul tabel 'faction_logs' si creaza un tabel nou, pe care-l denumesti 'faction_logs' si adaugi coloana 'id' de tip INT cu A_L(auto increment) si coloana 'Text' de tip TEXT Poza: https://i.imgur.com/azP6IQD.png Si la comanda [/setleader] faci in felul urmator: YCMD:setleader(playerid, params[], help) { if(PlayerInfo[playerid][pAdmin] new id,level,string[180]; if(sscanf(params, "ui",id,level)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/setleader "); if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat."); if(level > 15 || level if(PlayerInfo[id][pMember] > 0 && PlayerInfo[id][pLeader] > 0) return SCM(playerid,COLOR_WHITE, "Acel player este intr-o factiune."); format(string, sizeof(string), "%s este noul lider al factiunii.", GetName(id)); SendFactionMessage(level, COLOR_CLIENT, string); new ftext[50]; format(ftext, sizeof(ftext), FactionName(level)); PlayerInfo[id][pMember] = level; if(PlayerInfo[playerid][pMember] == 11) finishAchievement(id, 29); else if(IsACop(playerid)) finishAchievement(id, 30); else if(IsAMember(playerid)) finishAchievement(id, 31); else finishAchievement(id, 28); PlayerInfo[id][pLeader] = level; FactionMembers[PlayerInfo[id][pMember]] ++; if(level == 0) { PlayerInfo[id][pChar] = 0; } else if(level == 1) { PlayerInfo[id][pChar] = 265; } //Police Departament else if(level == 2) { PlayerInfo[id][pChar] = 295; } //FBI else if(level == 3) { PlayerInfo[id][pChar] = 179; } //National Guard else if(level == 4) { PlayerInfo[id][pChar] = 270; } //Triad else if(level == 5) { PlayerInfo[id][pChar] = 292; } //Los Vagos else if(level == 6) { PlayerInfo[id][pChar] = 273; } //Ballas else if(level == 7) { PlayerInfo[id][pChar] = 258; } //School Instructors else if(level == 8) { PlayerInfo[id][pChar] = 59; } //Tow Car Company else if(level == 9) { PlayerInfo[id][pChar] = 228; } //News Reporters else if(level == 10) { PlayerInfo[id][pChar] = 296; } //Los Aztecas else if(level == 11) { PlayerInfo[id][pChar] = 294; } //Hitman else if(level == 12) { PlayerInfo[id][pChar] = 272; } //School Instructors else if(level == 13) { PlayerInfo[id][pChar] = 70; } //Paramedic if(IsACop(id)) SetPlayerSkinEx(id, 305); else SetPlayerSkinEx(id, PlayerInfo[id][pChar]); PlayerInfo[id][pRank] = 7; SetPlayerToTeamColor(id); new query[256]; format(string, sizeof(string), "%s este liderul factiunii %s.", GetName(id), ftext); if(PlayerInfo[id][pAdmin] mysql_format(SQL, query, sizeof(query), "INSERT INTO `faction_logs` (`text`) VALUES ('%s')", string); mysql_tquery(SQL, query, "", ""); } format(query,sizeof(query),"UPDATE users SET `Leader`='%d',`Member`='%d',`Rank`='7',`Team`='%d',`CChar`='%d' WHERE `ID`='%d'",PlayerInfo[id][pLeader],PlayerInfo[id][pMember],PlayerInfo[id][pTeam],PlayerInfo[id][pChar],PlayerInfo[id][pSQLID]); mysql_query(SQL,query); format(string, sizeof(string), "L-ai promovat pe %s ca lider la factiunea %s.", GetName(id),ftext); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "Admin %s te-a promovat ca lider al factiunii %s.", GetName(playerid),ftext); SCM(id, COLOR_LIGHTBLUE, string); return 1; }
-
Arata-mi comanda [/setleader] si codul de la panel unde se extrage din baza de date text-ul pentru a putea fi afisat.
-
Pai cam toti au probleme cu gamemode-ul tau, am vazut la topicuri cu probleme legate de gamemode ul editat de tine, o groaza, nu zic ca a le mele sunt perfecte.
ABOUT LEAKS COMMUNITY
LEAKS.RO is a resource community where aspiring webmasters can share content and receive support for a wide variety of software platforms — no license required.