[Pomoc] Izmena plugina
Results 1 to 2 of 2

Thread: Izmena plugina

  1. #1
    Member Array
    Join Date
    Feb 2017
    Location
    Beograd
    Karma
    0

    Default Izmena plugina

    1. https://forums.alliedmods.net/showthread.php?t=295270
    Ovaj ZP extra item mi treba za fun server, kada igrac sa flagom ADMIN_LEVEL_H ukuca /plasmagun da mu skine 10.000$ i da mu da to oruzje.. plugin je za ZP i kupuje se ammo packovima pa mi treba edit

    2. https://forums.alliedmods.net/showthread.php?p=852655
    A za ovaj plugin jetpack + bazooka, treba da se obrise jetpack(levi klik misa za letenje) i da se ostavi da moze samo rakete da puca na desni klik.. takodje isto samo ADMIN_LEVEL_H moze da kupi ovo,
    ovde ne treba komanda da se namesti ko za gore navedeno niti cena.. samo flag i da se ukloni jetpack..

    Hvala svima unapred puno

  2. #2
    Senior Member Array
    Join Date
    May 2020
    Karma
    0

    Default

    Problem pod 1...

    plugin_init:

    PHP Code:
        register_clcmd("say /plasmagun""buy_plasmagun"ADMIN_LEVEL_H)
        
    register_clcmd("say_team /plasmagun""buy_plasmagun"ADMIN_LEVEL_H
    Function:

    PHP Code:
    public buy_plasmagun(id)
    {
        if (
    g_has_plasmagun[id])
        {
            
    client_print(idprint_chat"[ZP] You already have the %s."ITEM_NAME)
            return;
        }
        
        if(
    cs_get_user_money(id) < 10000)
        {
        
    client_print(idprint_chat"[ZP] You don't have enough money to buy the %s."ITEM_NAME)
        }
        
        
    drop_primary(id)

        
    g_has_plasmagun[id] = true;

        new 
    weapon fm_give_item(id"weapon_aug")

        
    cs_set_weapon_ammo(weaponget_pcvar_num(cvar_plasmagun_clip))
        
    cs_set_user_bpammo(idCSW_AUGget_pcvar_num(cvar_plasmagun_ammo))
        
    cs_set_user_money(idcs_get_user_money(id) - 10000)


    SMA: https://pastebin.com/SY2Agaye
    Last edited by InsaNe Shone; 12-08-2020 at 22:05.
    Moji Radovi:

    AWP MOD: https://rb.gy/hefzez
    PhpBB Forum: https://rb.gy/wgqpxn
    TeamSpeak 3 Web Interface (Psychokiller) (Style Edit): https://rb.gy/5ishzh
    Ultimate Slayer: https://rb.gy/vl7ohx
    HS Aimbot Detector: https://rb.gy/m3hnbn
    Headshot Only mode: https://rb.gy/7petvy
    Stop Spam: https://rb.gy/xjhnxa
    Block Chat: https://rb.gy/vdus8y
    Rates: https://rb.gy/sx4wq5

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •