Approved Escapes (MySQL)

Gameplay Addons
BandiT
Member
Member
Romania
Posts: 57
Joined: 1 Year Ago
Has thanked: 4 times
Been thanked: 5 times
Contact:

Re: Escapes (MySQL)

#31

Post by BandiT » 1 Month Ago

If you are using infects and escapes plugins you have to add even in zombie escape.txt this things, il post for you my zombie_escape.txt i hope to help
But you even need to have in hud_info plugin that this added escape infects, i have no more the sma for that...

Code: Select all

[en]
NO_ENOUGH_PLAYERS = !tNo Enough Players!y. !tRequired!y: !t%i!y.
RUN_NOTICE = Ready for Run. Run After %i Second(s) !
ZOMBIE_RELEASE = Zombie(s) Will Be Released After: %i Second(s) !
READY_TO_RUN = !tAre you Ready to Run!y? !gGood Luck !y:)
ESCAPE_SUCCESS = Escape Success!
ESCAPE_FAIL = Escape Fail!
START_GAME = Game Commencing!
INFECTION_NOTICE = %s has infected %s !
SCORE_MESSAGE = Zombies VS Humans^n %i --------- %i
NO_WINNER = Escape Draw!
RANK_INFO = [MASTER OF SURVIVAL]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
RANK_INFO_LEADER = [Escape Leader]^n%s

COINS_INFO = !tYour Current Escape Coins!y: !g%i
ESCAPE_SUCCESS_COINS = !tEscape Success!y: !t+!g%i !tEscape Coins!y!
HUMAN_INFECTED_COINS = !tInfected Human!y: !t+!g%i !tEscape Coins!y!

ZOMBIE_SPEC = Spectating: %s^nHP: %i^nClass: Zombie^nEscape Coins: %i^nEscapes: %i 
ZOMBIE_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Zombie^nEscape Coins: %i^nEscapes: %i 
 
HUMAN_SPEC = Spectating: %s^nHP: %i^nClass: Human^nEscape Coins: %i^nEscapes: %i 
HUMAN_SPEC_COMMAS = Spectating: %s^nHP: %s^nClass: Human^nEscape Coins: %i^nEscapes: %i 
 
HUMAN_SPEC_LEADER = Spectating: %s^nHP: %i^nClass: Escape Leader^nEscape Coins: %i^nEscapes: %i
HUMAN_SPEC_COMMAS_LEADER = Spectating: %s^nHP: %s^nClass: Escape Leader^nEscape Coins: %i^nEscapes: %i
 
ZOMBIE = HP: %i | Class: Zombie | Escape Coins: %i | Escapes: %i | Infects: %i
ZOMBIE_COMMAS = HP: %s | Class: Zombie | Escape Coins: %i | Escapes: %i | Infects: %i
 
HUMAN_LEADER = HP: %i | Class: Escape Leader | Escape Coins: %i | Escapes: %i | Infects: %i
HUMAN_LEADER_COMMAS = HP: %s | Class: Escape Leader | Escape Coins: %i | Escapes: %i | Infects: %i
 
HUMAN = HP: %i | Class: Human | Escape Coins: %i | Escapes: %i | Infects: %i
HUMAN_COMMAS = HP: %s | Class: Human | Escape Coins: %i | Escapes: %i | Infects: %i

BUY_ENABLED = !tYour menu has been re-enabled!y.
RE_ENABLE_MENU = !tsay /enable or press M to enable your buy menu!y.
ALREADY_BOUGHT = !tYou already bought Primary and Secondary Weapons!y!
DEAD_CANT_BUY_WEAPON = !tYou can't buy when you're dead!y.
NO_BUY_ZOMBIE = !tYou can't buy when you're Zombie!y.
BUY_MENU_TIME_EXPIRED = !tBuy menu time has expired!y.
MENU_PRIMARY_TITLE = Primary Weapons
MENU_SECONDARY_TITLE = Secondary Weapons
MENU_AUTOSELECT = Remember?
SAVE_YES = Yes
SAVE_NO = No
NEXT = Next
BACK = Back
EXIT = Exit

MAIN_MENU_TITLE = [ZE] Main Menu
MENU_EXTRABUY = Buy Extra Items
MENU_WEAPONBUY = Buy Weapons
MENU_WEAPONBUY_RE_ENABLE = Re-enable Buy Weapons

BUY_EXTRAITEM = Extra Items
NO_EXTRA_ITEMS = !tNo extra items are currently available to you!y.

ITEM_LIMIT = \w[\r%i\d|\r%i\w]
ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
ITEM_VIP = \w(\rVIP\w)

ESCAPE_SUCCESS_BONUS_COINS = !tEscape Success!y: !t+!g%i VIP BONUS !tEscape Coins!y!
ESCAPE_SUCCESS_BONUS_XP = !tEscape Success!y: !t+!g%i VIP BONUS !tXP!y!
HUMAN_INFECTED_BONUS_COINS = !tInfected Human!y: !t+!g%i VIP BONUS !tEscape Coins!y!
HUMAN_INFECTED_BONUS_XP = !tInfected Human!y: !t+!g%i VIP BONUS !tXP!y!

MENU_ZCLASS = \rChoose Zombie Class \d|
NO_ZCLASSES = !tThere aren't classes available!y.
ZOMBIE_SELECT = Your next zombie class is going to be
ZOMBIE_HEALTH = Health
ZOMBIE_SPEED = Speed
ZOMBIE_GRAVITY = Gravity

MENU_ADMIN_TITLE = Admin Menu
MAKE_HM_ZM = Make Zombie/Human
CMD_NOT_ACCESS = You have no access.
CLASS_ZOMBIE = Zombie
CLASS_HUMAN = Human
CMD_NOT = Unavailable command.
ALREADY_HUMAN = This player is already human
ALREADY_ZOMBIE = This player is already zombie
CMD_CANT_LAST_ZOMBIE = Can't apply this action on the last zombie
CMD_CANT_LAST_HUMAN = Can't apply this action on the last human
CMD_ONLY_AFTER_GAME_MODE = This command is available only after game starts
CMD_CURED = Was turned to human
CMD_INFECTED = Was turned to zombie

[bp]
NO_ENOUGH_PLAYERS = !tFalta jogadores!y. !tNecessario!y: !t%i!y.
RUN_NOTICE = Pronto pra Fugir?. Falta apenas %i segundos !
ZOMBIE_RELEASE = Zumbis liberados em: %i Segundos !
READY_TO_RUN = !tPronto para fugir!y? !gBoa Sorte !y:)
ESCAPE_SUCCESS = Fugiram com sucesso!
ESCAPE_FAIL = Falharam na fuga!
START_GAME = Iniciando a Partida!
INFECTION_NOTICE = %s foi infectado %s !
SCORE_MESSAGE = Zombis VS Humanos^n %i --------- %i
NO_WINNER = Voce perdeu!
RANK_INFO = [MESTRE DE SOBREVIVENCIA]^n[1°] - %s^n[2°] - %s^n[3°] - %s
RANK_INFO_LEADER = [Lider da Fuga]^n%s

COINS_INFO = !tSeus Coins!y: !g%i
ESCAPE_SUCCESS_COINS = !tConseguiram Fugir!y: !t+!g%i !tEscape Coins!y!
HUMAN_INFECTED_COINS = !tInfectou Humano!y: !t+!g%i !tEscape Coins!y!

ZOMBIE_SPEC = Assistindo: %s^nHP: %i^nClasse: Zombi^nEscape Coins: %i
ZOMBIE_SPEC_COMMAS = Assistindo: %s^nHP: %s^nClasse: Zombi^nEscape Coins: %i

HUMAN_SPEC = Assistindo: %s^nHP: %i^nClasse: Humano^nEscape Coins: %i
HUMAN_SPEC_COMMAS = Assistindo: %s^nHP: %s^nClasse: Humano^nEscape Coins: %i

HUMAN_SPEC_LEADER = Assistindo: %s^nHP: %i^nClasse: Lider da Fuga^nEscape Coins: %i
HUMAN_SPEC_COMMAS_LEADER = Assistindo: %s^nHP: %s^nClasse: Lider da Fuga^nEscape Coins: %i

ZOMBIE = HP: %i | Classe: Zombi | Escape Coins: %i
ZOMBIE_COMMAS = HP: %s | Classe: Zombi | Escape Coins: %i

HUMAN_LEADER = HP: %i | Classe: Lider da Fuga | Escape Coins: %i
HUMAN_LEADER_COMMAS = HP: %s | Classe: Lider da Fuga | Escape Coins: %i

HUMAN = HP: %i | Classe: Humano | Escape Coins: %i
HUMAN_COMMAS = HP: %s | Classe: Humano | Escape Coins: %i

BUY_ENABLED = !tSeu menu foi reativado!y.
RE_ENABLE_MENU = !tdigite /enable ou aperte M para ativar seu menu de compras!y.
ALREADY_BOUGHT = !tVocê já comprou Armas Primárias e Secundárias!y!
DEAD_CANT_BUY_WEAPON = !tMorto não pode comprar Armas Primárias e Secundárias!y.
NO_BUY_ZOMBIE = !tVocê não pode comprar pois é zumbi!y.
BUY_MENU_TIME_EXPIRED = !tO tempo de compra expirou!y.
MENU_PRIMARY_TITLE = Armas Primárias
MENU_SECONDARY_TITLE = Armas Secundárias
MENU_AUTOSELECT = Relembrar?
SAVE_YES = Sim
SAVE_NO = Nao
NEXT = Proximo
BACK = Volta
EXIT = Sair

MAIN_MENU_TITLE = [ZE] Menu Principal
MENU_EXTRABUY = Comprar Itens Especiais
MENU_WEAPONBUY = Comprar Armas
MENU_WEAPONBUY_RE_ENABLE = Reabilite as armas compradas

BUY_EXTRAITEM = Extra Itens
NO_EXTRA_ITEMS = !tNão há itens extras disponíveis para você!y.

ITEM_LIMIT = \w[\r%i\d|\r%i\w]
ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
ITEM_VIP = \w(\rVIP\w)

[pl]
NO_ENOUGH_PLAYERS = !tBrak wystarczjacej liczby graczy!y. !tWymagana liczba!y: !t%i!y.
RUN_NOTICE = Gotowy do ucieczki. Biegnij po %i sekundach !
ZOMBIE_RELEASE = Zombie zostanie wypuszczone za: %i sekund !
READY_TO_RUN = !tGotowy do ucieczki!y? !gPOWODZENIA !y:)
ESCAPE_SUCCESS = Udana ucieczka!
ESCAPE_FAIL = Nieudana ucieczka!
START_GAME = Rozpoczecie gry!
INFECTION_NOTICE = %s zarazil %s !
SCORE_MESSAGE = Zombie VS Ludzie^n %i --------- %i
NO_WINNER = Remis!
RANK_INFO = [Mistrz przetrwania]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
RANK_INFO_LEADER = [LIDER UCIECZKI]^n%s

COINS_INFO = !tTwoja aktualna ilosc monet!y: !g%i
ESCAPE_SUCCESS_COINS = !tUdana ucieczka!y: !t+!g%i !tmonet!y!
HUMAN_INFECTED_COINS = !tZarazono czlowieka!y: !t+!g%i !tmonet!y!

ZOMBIE_SPEC = Spectating: %s^nHP: %i^nKlasa: Zombie^nIlosc monet: %i
ZOMBIE_SPEC_COMMAS = Spectating: %s^nHP: %s^nKlasa: Zombie^nIlosc monet: %i

HUMAN_SPEC = Ogladanie: %s^nHP: %i^nKlasa: Czlowiek^nIlosc monet: %i
HUMAN_SPEC_COMMAS = Ogladanie: %s^nHP: %s^nKlasa: Czlowiek^nIlosc monet: %i

HUMAN_SPEC_LEADER = Ogladanie: %s^nHP: %i^nKlasa: Escape Lider^nIlosc monet: %i
HUMAN_SPEC_COMMAS_LEADER = Ogladanie: %s^nHP: %s^nKlasa: Escape Lider^nIlosc monet: %i

ZOMBIE = HP: %i | Klasa: Zombie | Ilosc monet: %i
ZOMBIE_COMMAS = HP: %s | Klasa: Zombie | Ilosc monet: %i

HUMAN_LEADER = HP: %i | Klasa: Escape Lider| Ilosc monet: %i
HUMAN_LEADER_COMMAS = HP: %s | Klasa: Escape Lider | Ilosc monet: %i

HUMAN = HP: %i | Klasa: Czlowiek | Ilosc monet: %i
HUMAN_COMMAS = HP: %s | Class: Human | Escape Coins: %i

BUY_ENABLED = !tYour menu has been re-enabled!y.
RE_ENABLE_MENU = !tsay /enable or press M to enable your buy menu!y.
ALREADY_BOUGHT = !tJuz kupiles bron!y!
DEAD_CANT_BUY_WEAPON = !tNie mozesz kupic broni, kiedy jestes martwy!y.
NO_BUY_ZOMBIE = !tNie mozesz kupic broni, kiedy jestes Zombie!y.
BUY_MENU_TIME_EXPIRED = !tCzas kupowania broni sie skonczyl!y.
MENU_PRIMARY_TITLE = Bron podstawowa
MENU_SECONDARY_TITLE = Bron dodatkowa
MENU_AUTOSELECT = Zapamietac?
SAVE_YES = Tak
SAVE_NO = Nie
NEXT = Nastepny
BACK = Powrot
EXIT = Wyjscie

MAIN_MENU_TITLE = [ZE] Glowne Menu
MENU_EXTRABUY = Kup dodatkowe przedmioty
MENU_WEAPONBUY = Kup bronie
MENU_WEAPONBUY_RE_ENABLE = Wlacz ponowne kupowanie broni

BUY_EXTRAITEM = Dodatkowe przedmioty
NO_EXTRA_ITEMS = !tAktulanie dodatkowe przedmioty nie sa dostepne!y.

ITEM_LIMIT = \w[\r%i\d|\r%i\w]
ITEM_LEVEL = \w[\rPoziom\d: \r%i\w]
ITEM_VIP = \w(\rVIP\w)

[bs]
NO_ENOUGH_PLAYERS = !tNema dovoljno igraca!y. !tPotrebno!y: !t%i!y.
RUN_NOTICE = Spremite se za bijeg. Bjezite nakon %i sekundi !
ZOMBIE_RELEASE = Zombiji ce biti pusteni nakon: %i sekundi !
READY_TO_RUN = !tDa li ste spremni!y? !gSRETNO !y:)
ESCAPE_SUCCESS = Uspjesan bijeg!
ESCAPE_FAIL = Neuspjesan bijeg!
START_GAME = Pokretanje igre!
INFECTION_NOTICE = %s je zarazio %s !
SCORE_MESSAGE = Zombiji VS Ljudi^n %i --------- %i
NO_WINNER = Bez pobjednika!
RANK_INFO = [MAJSTOR PREZIVLJAVANJA]^n[1st] - %s^n[2nd] - %s^n[3rd] - %s
RANK_INFO_LEADER = [Lider bijega]^n%s

COINS_INFO = !tVas trenutni broj kovanica!y: !g%i
ESCAPE_SUCCESS_COINS = !tUspješan bijeg!y: !t+!g%i !tKovanica!y!
HUMAN_INFECTED_COINS = !tZarazili ste covjeka!y: !t+!g%i !tKovanica!y!

ZOMBIE_SPEC = Gledate: %s^nHP: %i^nVrsta: Zombi^nBroj kovanica: %i
ZOMBIE_SPEC_COMMAS = Gledate: %s^nHP: %s^nKlasa: Zombi^nBroj kovanica: %i

HUMAN_SPEC = Gledate: %s^nHP: %i^nVrsta: Covjek^nBroj kovanica: %i
HUMAN_SPEC_COMMAS = Gledate: %s^nHP: %s^nVrsta: Covjek^nBroj kovanica: %i

HUMAN_SPEC_LEADER = Gledate: %s^nHP: %i^nKlasa: Lider bijega^nBroj kovanica: %i
HUMAN_SPEC_COMMAS_LEADER = Gledate: %s^nHP: %s^nKlasa: Lider bijega^nBroj kovanica: %i

ZOMBIE = HP: %i | Vrsta: Zombi | Broj kovanica: %i
ZOMBIE_COMMAS = HP: %s | Vrsta: Zombi | Broj kovanica: %i

HUMAN_LEADER = HP: %i | Klasa: Lider bijega | Broj kovanica: %i
HUMAN_LEADER_COMMAS = HP: %s | Klasa: Lider bijega | Broj kovanica: %i

HUMAN = HP: %i | Vrsta: Covjek | Broj kovanica: %i
HUMAN_COMMAS = HP: %s | Vrsta: Covjek | Broj kovanica: %i

BUY_ENABLED = !tPonovo ste aktivirali meni za odabir oruzja!y.
RE_ENABLE_MENU = !tnapisite /enable ili pritisnite slovo M da aktivirate meni za odabir oruzja!y.
ALREADY_BOUGHT = !tVec ste odabrali svoje oruzje!y!
DEAD_CANT_BUY_WEAPON = !tNe mozete odabrati oruzje kada ste mrtvi!y.
NO_BUY_ZOMBIE = !tNe mozete odabrati oruzje kada ste zombi!y.
BUY_MENU_TIME_EXPIRED = !tVrijeme za odabir oruzja je isteklo!y.
MENU_PRIMARY_TITLE = Osnovno oruzje
MENU_SECONDARY_TITLE = Dodatno oruzje
MENU_AUTOSELECT = Zapamtiti?
SAVE_YES = Da
SAVE_NO = Ne
NEXT = Sljedece
BACK = Povratak
EXIT = Izlaz

MAIN_MENU_TITLE = [ZE] Glavni Meni
MENU_EXTRABUY = Kupite dodatke
MENU_WEAPONBUY = Odaberite oruzje
MENU_WEAPONBUY_RE_ENABLE = Ponovo aktivirajte meni za odabir oruzja

BUY_EXTRAITEM = Dodaci
NO_EXTRA_ITEMS = !tDodaci trenutno nisu dostupni!y.

ITEM_LIMIT = \w[\r%i\d|\r%i\w]
ITEM_LEVEL = \w[\rLevel\d: \r%i\w]
ITEM_VIP = \w(\rVIP\w)

mldxx
Member
Member
Posts: 32
Joined: 4 Months Ago
Has thanked: 3 times
Been thanked: 0
Contact:

#32

Post by mldxx » 1 Month Ago

I use the basic one (ze_hud_info) i didn t edited it i tryed more time and doesn t work :( thx anyway BandiT


Edit:
i understand now i need a ze_hud_info with escapes this is why doesn t work i tink


i need only escapes
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

mldxx
Member
Member
Posts: 32
Joined: 4 Months Ago
Has thanked: 3 times
Been thanked: 0
Contact:

#33

Post by mldxx » 1 Month Ago

hmm i tryed this one right now

Code: Select all

#include <zombie_escape>
 
// Define some natives
native ze_get_user_escapes(id)
 
// Defines
#define TASK_SHOWHUD 100
#define ID_SHOWHUD (taskid - TASK_SHOWHUD)
 
// Constants Change X,Y If you need (HUD & DHud)
const Float:HUD_SPECT_X = 0.01
const Float:HUD_SPECT_Y = 0.130
const Float:HUD_STATS_X = -1.0
const Float:HUD_STATS_Y = 0.86
 
// Colors
enum
{
    Red = 0,
    Green,
    Blue
}
 
// Variables
new g_iMsgSync,
    g_pCvarRankEnabled
   
// Cvars
new g_pCvarHudInfoMode,
    g_pCvarHudInfoComma,
    g_pCvarZombieInfoColors[3],
    g_pCvarHumanInfoColors[3],
    g_pCvarSpecInfoColors[3]
 
public plugin_init()
{
    register_plugin("[ZE] Hud Information", ZE_VERSION, AUTHORS)
   
    // Messages
    g_iMsgSync = CreateHudSyncObj()
   
    //Cvars
    g_pCvarHudInfoMode = register_cvar("ze_hud_info_mode", "1")
    g_pCvarHudInfoComma = register_cvar("ze_hud_info_commas", "1")
    g_pCvarZombieInfoColors[Red] = register_cvar("ze_hud_info_zombie_red", "255")
    g_pCvarZombieInfoColors[Green] = register_cvar("ze_hud_info_zombie_green", "20")
    g_pCvarZombieInfoColors[Blue] = register_cvar("ze_hud_info_zombie_blue", "20")
    g_pCvarHumanInfoColors[Red] = register_cvar("ze_hud_info_human_red", "20")
    g_pCvarHumanInfoColors[Green] = register_cvar("ze_hud_info_human_green", "20")
    g_pCvarHumanInfoColors[Blue] = register_cvar("ze_hud_info_human_blue", "255")
    g_pCvarSpecInfoColors[Red] = register_cvar("ze_hud_info_spec_red", "100")
    g_pCvarSpecInfoColors[Green] = register_cvar("ze_hud_info_spec_green", "100")
    g_pCvarSpecInfoColors[Blue] = register_cvar("ze_hud_info_spec_blue", "100")
   
    // Pointer
    g_pCvarRankEnabled = get_cvar_pointer("ze_speed_rank_mode")
}
 
public client_putinserver(id)
{
    if(!is_user_bot(id))
    {
        set_task(1.0, "ShowHUD", id+TASK_SHOWHUD, _, _, "b")
    }
}
 
public client_disconnected(id)
{
    remove_task(id+TASK_SHOWHUD)
}
 
public ShowHUD(taskid)
{
    if (get_pcvar_num(g_pCvarHudInfoMode) == 0)
        return
   
    new iPlayer = ID_SHOWHUD
   
    if (!is_user_alive(iPlayer))
    {
        iPlayer = get_entvar(iPlayer, var_iuser2)
       
        if (!is_user_alive(iPlayer))
            return
    }
   
    if(iPlayer != ID_SHOWHUD)
    {
        new szName[32]
        get_user_name(iPlayer, szName, charsmax(szName))
 
        if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
        {
            set_hudmessage(get_pcvar_num(g_pCvarSpecInfoColors[Red]), get_pcvar_num(g_pCvarSpecInfoColors[Green]), get_pcvar_num(g_pCvarSpecInfoColors[Blue]), HUD_SPECT_X, HUD_SPECT_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
           
            if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
            {
                new szHealth[15]
                AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
               
                if (ze_is_user_zombie(iPlayer))
                {
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
                else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
                {
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
                else
                {
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
            }
            else
            {
                if (ze_is_user_zombie(iPlayer))
                {
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
                else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
                {
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
                else
                {
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
            }
        }
        else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
        {
            set_dhudmessage(get_pcvar_num(g_pCvarSpecInfoColors[Red]), get_pcvar_num(g_pCvarSpecInfoColors[Green]), get_pcvar_num(g_pCvarSpecInfoColors[Blue]), HUD_SPECT_X, HUD_SPECT_Y, 0, 1.2, 1.1, 0.5, 0.6)
           
            if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
            {
                new szHealth[15]
                AddCommas(get_user_health(iPlayer), szHealth, charsmax(szHealth))
               
                if (ze_is_user_zombie(iPlayer))
                {
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
                else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
                {
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS_LEADER", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
                else
                {
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_COMMAS", szName, szHealth, ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
            }
            else
            {
                if (ze_is_user_zombie(iPlayer))
                {
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
                else if ((iPlayer == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
                {
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC_LEADER", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
                else
                {
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_SPEC", szName, get_user_health(iPlayer), ze_get_escape_coins(iPlayer), ze_get_user_escapes(iPlayer))
                }
            }
        }
    }
    else if (ze_is_user_zombie(iPlayer))
    {
        if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
        {
            set_hudmessage(get_pcvar_num(g_pCvarZombieInfoColors[Red]), get_pcvar_num(g_pCvarZombieInfoColors[Green]), get_pcvar_num(g_pCvarZombieInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
           
            if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
            {
                new szHealth[15]
                AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
 
                ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
            }
            else
            {
                ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
            }
        }
        else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
        {
            set_dhudmessage(get_pcvar_num(g_pCvarZombieInfoColors[Red]), get_pcvar_num(g_pCvarZombieInfoColors[Green]), get_pcvar_num(g_pCvarZombieInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6)
           
            if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
            {
                new szHealth[15]
                AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
               
                show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
            }
            else
            {
                show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "ZOMBIE", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))  
            }
        }
    }
    else
    {
        if (get_pcvar_num(g_pCvarHudInfoMode) == 1)
        {
            set_hudmessage(get_pcvar_num(g_pCvarHumanInfoColors[Red]), get_pcvar_num(g_pCvarHumanInfoColors[Green]), get_pcvar_num(g_pCvarHumanInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6, -1)
           
            if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
            {
                if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
                {
                    new szHealth[15]
                    AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
               
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
                }
                else
                {
                    new szHealth[15]
                    AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
               
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
                }                  
            }
            else
            {
                if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
                {
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
                }
                else
                {
                    ShowSyncHudMsg(ID_SHOWHUD, g_iMsgSync, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
                }                  
            }
        }
        else if (get_pcvar_num(g_pCvarHudInfoMode) == 2)
        {
            set_dhudmessage(get_pcvar_num(g_pCvarHumanInfoColors[Red]), get_pcvar_num(g_pCvarHumanInfoColors[Green]), get_pcvar_num(g_pCvarHumanInfoColors[Blue]), HUD_STATS_X, HUD_STATS_Y, 0, 1.2, 1.1, 0.5, 0.6)
           
            if (get_pcvar_num(g_pCvarHudInfoComma) == 1)
            {
                if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
                {
                    new szHealth[15]
                    AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
               
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
                }
                else
                {
                    new szHealth[15]
                    AddCommas(get_user_health(ID_SHOWHUD), szHealth, charsmax(szHealth))
               
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_COMMAS", szHealth, ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
                }
            }
            else
            {
                if ((ID_SHOWHUD == ze_get_escape_leader_id()) && (0 < get_pcvar_num(g_pCvarRankEnabled) <= 2))
                {
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN_LEADER", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
                }
                else
                {
                    show_dhudmessage(ID_SHOWHUD, "%L", LANG_PLAYER, "HUMAN", get_user_health(ID_SHOWHUD), ze_get_escape_coins(ID_SHOWHUD), ze_get_user_escapes(ID_SHOWHUD))
                }
            }
        }
    }
}

and i got erors from hud info and escapes plugin:

L 05/15/2021 - 10:10:15: [AMXX] Plugin "ze_hud_info.amxx" failed to load: Plugin uses an unknown function (name "ze_get_user_escapes") - check your modules.ini.
L 05/15/2021 - 10:10:15: [AMXX] Plugin "Escapes.amxx" failed to load: Plugin uses an unknown function (name "ze_get_user_escapes") - check your modules.ini.
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

mldxx
Member
Member
Posts: 32
Joined: 4 Months Ago
Has thanked: 3 times
Been thanked: 0
Contact:

#34

Post by mldxx » 1 Month Ago

I don t have any ideea Why Doesn t work ,no one can help about that?

[ Post made via Android ]
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

User avatar
Night Fury
Mod Developer
Mod Developer
Egypt
Posts: 677
Joined: 4 Years Ago
Location: Egypt
Has thanked: 39 times
Been thanked: 56 times
Age: 21
Contact:

#35

Post by Night Fury » 4 Weeks Ago

Post Escapes.sma
Want your own mod edition? PM me.
Accepting private projects.
ImageImage

mldxx
Member
Member
Posts: 32
Joined: 4 Months Ago
Has thanked: 3 times
Been thanked: 0
Contact:

#36

Post by mldxx » 4 Weeks Ago

Code: Select all

#include <zombie_escape>
 
// Static (Change it if you need)
new const g_szLogFile[] = "Human_Escapes.log" // MySQL Errors log file
 
// MySQL Table
new const g_szTable[] =
"ALTER TABLE `zombie_escape` ADD IF NOT EXISTS `Escapes` INT(10) NOT NULL DEFAULT '0';"
 
// Variables
new g_iEscapes[33],
    Handle:g_hTuple
 
// Cvars
new g_pCvarDBInfo[4]
 
// Database
enum
{
    Host = 0,
    User,
    Pass,
    DB
}
 
// Natives
public plugin_natives()
{
    register_native("ze_get_user_escapes", "native_ze_get_user_escapes", 1)
    register_native("ze_set_user_escapes", "native_ze_set_user_escapes", 1)
}
 
public plugin_init()
{
    register_plugin("[ZE] Addons: Escapes (MySQL)", "1.1", "Jack GamePlay")
   
    // Cvars
    g_pCvarDBInfo[Host] = register_cvar("ze_escapes_host", "")
    g_pCvarDBInfo[User] = register_cvar("ze_escapes_user", "")
    g_pCvarDBInfo[Pass] = register_cvar("ze_escapes_pass", "")
    g_pCvarDBInfo[DB] = register_cvar("ze_escapes_dbname", "")
 
    // Initialize MySQL - Delay 0.1 second required so we make sure that our zombie_escape.cfg already executed and cvars values loaded from it
    set_task(0.1, "Delay_MySQL_Init")
}
 
public Delay_MySQL_Init()
{
    MySQL_Init()
}
 
public MySQL_Init()
{
    new szHost[64], szUser[32], szPass[32], szDB[128]
   
    get_pcvar_string(g_pCvarDBInfo[Host], szHost, charsmax(szHost))
    get_pcvar_string(g_pCvarDBInfo[User], szUser, charsmax(szUser))
    get_pcvar_string(g_pCvarDBInfo[Pass], szPass, charsmax(szPass))
    get_pcvar_string(g_pCvarDBInfo[DB], szDB, charsmax(szDB))
   
    g_hTuple = SQL_MakeDbTuple(szHost, szUser, szPass, szDB)
   
    // Let's ensure that the g_hTuple will be valid, we will access the database to make sure
    new iErrorCode, szError[512], Handle:hSQLConnection
   
    hSQLConnection = SQL_Connect(g_hTuple, iErrorCode, szError, charsmax(szError))
   
    if(hSQLConnection != Empty_Handle)
    {
        log_amx("[MySQL][ESCAPES] Successfully connected to host: %s (ALL IS OK).", szHost)
        SQL_FreeHandle(hSQLConnection)
    }
    else
    {
        // Disable plugin, and display the error
        set_fail_state("[ESCAPES] Failed to connect to MySQL database: %s", szError)
    }
   
    // Create our table
    SQL_ThreadQuery(g_hTuple, "QueryCreateTable", g_szTable)
}
 
public QueryCreateTable(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
{
    SQL_IsFail(iFailState, iError, szError, g_szLogFile)
}
 
public client_putinserver(id)
{
    if (is_user_bot(id) || is_user_hltv(id))
        return
   
    // Just 1 second delay
    set_task(1.0, "DelayLoad", id)
}
 
public DelayLoad(id)
{
    LoadEscapes(id)
}
 
public plugin_end()
{
    if (g_hTuple != Empty_Handle)
    {
        SQL_FreeHandle(g_hTuple)
    }
}
 
public ze_roundend(WinTeam)
{
    if (WinTeam == ZE_TEAM_HUMAN)
    {
        for (new id = 0; id <= get_member_game(m_nMaxPlayers); id++)
        {
            if (!is_user_alive(id) || ze_is_user_zombie(id))
                continue
 
            g_iEscapes[id] ++
            SaveEscapes(id)
        }
    }
}
 
LoadEscapes(id)
{
    new szAuthID[35], szQuery[128], szData[5]
    get_user_authid(id, szAuthID, charsmax(szAuthID))
    formatex(szQuery, charsmax(szQuery), "SELECT `Escapes` FROM `zombie_escape` WHERE ( `SteamID` = '%s' );", szAuthID)
    num_to_str(id, szData, charsmax(szData))
    SQL_ThreadQuery(g_hTuple, "QuerySelectData", szQuery, szData, charsmax(szData))
}
 
public QuerySelectData(iFailState, Handle:hQuery, szError[], iError, szData[])
{
    if (SQL_IsFail(iFailState, iError, szError, g_szLogFile))
        return
   
    new id = str_to_num(szData)
   
    // No results for this query means that player not saved before
    if (!SQL_NumResults(hQuery))
    {
        // This is new player
        g_iEscapes[id] = 0
        return
    }
   
    g_iEscapes[id] = SQL_ReadResult(hQuery, SQL_FieldNameToNum(hQuery, "Escapes"))
}
 
SaveEscapes(id)
{
    new szAuthID[36], szQuery[128]
    get_user_authid(id, szAuthID, charsmax(szAuthID))
    formatex(szQuery, charsmax(szQuery), "UPDATE `zombie_escape` SET `Escapes` = '%d' WHERE `SteamID` = '%s';", g_iEscapes[id], szAuthID)
    SQL_ThreadQuery(g_hTuple, "QueryUpdateData", szQuery)
}
 
public QueryInsertData(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
{
    SQL_IsFail(iFailState, iError, szError, g_szLogFile)
}
 
public QueryUpdateData(iFailState, Handle:hQuery, szError[], iError, szData[], iSize, Float:flQueueTime)
{
    SQL_IsFail(iFailState, iError, szError, g_szLogFile)
}
 
// Natives
public native_ze_get_user_escapes(id)
{
    if (!is_user_connected(id))
    {
        log_error(AMX_ERR_NATIVE, "[ZE] Invalid Player id (%d)", id)
        return false
    }
   
    return g_iEscapes[id]
}
 
public native_ze_set_user_escapes(id, iAmount)
{
    if (!is_user_connected(id))
    {
        log_error(AMX_ERR_NATIVE, "[ZE] Invalid Player id (%d)", id)
        return false
    }
   
    g_iEscapes[id] = iAmount
    SaveEscapes(id)
    return true
}
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

User avatar
Night Fury
Mod Developer
Mod Developer
Egypt
Posts: 677
Joined: 4 Years Ago
Location: Egypt
Has thanked: 39 times
Been thanked: 56 times
Age: 21
Contact:

#37

Post by Night Fury » 3 Weeks Ago

Compile the plugins locally. The errors indicates that your using "ze_get_user_escapes" within Escapes.sma. However, I checked and its not used.
Want your own mod edition? PM me.
Accepting private projects.
ImageImage

mldxx
Member
Member
Posts: 32
Joined: 4 Months Ago
Has thanked: 3 times
Been thanked: 0
Contact:

#38

Post by mldxx » 3 Weeks Ago

I use amxx studio bro

[ Post made via Android ]
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

mldxx
Member
Member
Posts: 32
Joined: 4 Months Ago
Has thanked: 3 times
Been thanked: 0
Contact:

#39

Post by mldxx » 1 Week Ago

Some time ago night fury fixed the escapes for me( Thank u so much night fury) but i have a little problem, if the map
Is gonna change all my escapes Will be reseted! The mysql works but are not saving.. when the map is changed:(

[ Post made via Android ]
:arrow: Sanctus Espiritus redeem us from our solemn hour
Sanctus Espiritus insanity is all around us :arrow:

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests