Jump to content

sonyk2

Members
  • Content Count

    11
  • Joined

  • Last visited

Posts posted by sonyk2


  1. Good morning sorry for the inconvenience

    I wanted your help if possible kk

    I tried to edit but I'm noob

    // ------------------------------------------------ -------------------------------------------------- ------------

    script de função F_TicketAddVip5 {
        query_sql "SELECT` days` FROM` viptable` WHERE` vipacc_id` = '" + getcharid (3) + "'",. @ checkDays;
        if (. @ checkDays> 0) {
            set. @ setDays, (. @ checkDays + 5);
            query_sql "UPDATE` viptable` set` days` = '" +. @ setDays + "'? WHERE` vipacc_id` ='" + getcharid (3) + "'";
            query_sql "SELECT` group_id` FROM` login` WHERE` account_id` = '" + getcharid (3) + "'",. @ nível de usuário;
            if (. @ userLevel <1) 
                query_sql "

        else {
            query_sql" UPDATE` login` set `group_id` = '1' WHERE` account_id` = '" + getcharid (3) + "
            query_sql "SELECT` userid` FROM` login` ONDE` account_id` = '" + getcharid (3) + "'",. @ userID $;
            query_sql "SELECT` email` FROM` login` ONDE` account_id` = '" + getcharid (3) + "'",. @ userEmail $;
            query_sql "INSERT INTO` viptable` (` vipacc_id`, `vip_id`,` days`, `email`) VALUES ('" + getcharid (3) + "', '" +. @ userID $ + "', '5 ',' "+. @ accEmail $ +" ') ";
        }
        atcommand "@reloadpcdb";
        dispbottom "Você erigido 5 dias de conta VIP, parabéns!";
        specialeffect 338;
        fim;
    Retorna;
    }

     

    wanted to use with this npc

     

    vipadmin.txt

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.