[Pomoc] Pretvaranje obicne u VIP Klasu
Results 1 to 2 of 2
  1. #1
    Senior Member Array
    Join Date
    Jan 2016
    Location
    Posusje Bosna i Hercegovina
    Age
    21
    Karma
    0

    Default Pretvaranje obicne u VIP Klasu

    /*================================================= ===============================

    -----------------------------------
    -*- [ZP] Zombie Classes ghost -*-
    -----------------------------------

    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~

    This a Ghost Zombie Classe, He Can penetrate anything
    but one shot Will Be killed

    ================================================== ==============================*/

    #include <amxmodx>
    #include <fakemeta>
    #include <zombieplague>
    #include <fun>
    #include <hamsandwich>


    new const zclass_name[] = "Ghost Zombie"
    new const zclass_info[] = "Can penetrate anything!"
    new const zclass_model[] = "zombie_source"
    new const zclass_clawmodel[] = "v_knife_zombie.mdl"
    const zclass_health = 10
    const zclass_speed = 100
    const Float:zclass_gravity = 1.0
    const Float:zclass_knockback = 0.5

    // Class IDs
    new g_GhostClass


    public plugin_precache()
    {
    register_plugin("[ZP] Ghost", "0.3", "Xvil")

    RegisterHam(Ham_Spawn, "player", "PlayerSpawnPost", 1)

    register_forward(FM_EmitSound, "fw_EmitSound")

    g_GhostClass = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
    }


    public zp_user_infected_post(id, infector)
    {
    if(zp_get_user_nemesis(id)) return;

    if (zp_get_user_zombie_class(id) == g_GhostClass)
    {


    client_print(id, print_chat, "You're using Ghost Zombie Can penetrate anything!")
    set_user_noclip(id, 1) // Set user Noclip to penetrate anything
    set_user_rendering(id, kRenderFxGlowShell, 100, 100, 100, kRenderNormal, 16);
    }
    }


    public PlayerSpawnPost(id)
    {
    if(!is_user_alive(id))
    {
    set_user_noclip(id, 0)
    return HAM_HANDLED;
    }

    if(!zp_get_user_zombie(id) )
    {
    set_user_noclip(id, 0)
    return HAM_HANDLED;
    }
    if (zp_get_user_zombie_class(id) != g_GhostClass)
    {
    set_user_noclip(id, 0)
    return HAM_HANDLED;
    }

    return HAM_IGNORED
    }

    public zp_user_humanized_post(id)
    {
    set_user_noclip(id, 0)
    }

    Dali neko moze da stavi ovu klasu na flag o , i da pise u deskripciji ove klase [PremiumVIP]

  2. #2
    Senior Member Array
    Join Date
    Sep 2012
    Location
    Kraljevo
    Karma
    0

    Default

    Ne bih znao da ti kazem kako da stavis da ti klasa bude na o flagu, ali evo ti tut kako da stavis da ti neka klasa bude samo za VIP
    https://forum.kgb-hosting.com/showthread.php?t=44727

    A sto se tice tog premiumVIP samo nadji ovu liniju new const zclass_name[] = "Ghost Zombie" i ovde gde ti pise "Ghost Zombie" tu dodaj [premiumVIP]
    Pravim CS 1.6 mape za sledece modove:

    Zombie, Knife, JailBreak, Biohazard, CoD:MW


    Mape koje sam pravio:
    zm_one_sap
    zm_kv_cso
    zm_night_color
    zm_canalization_paranormal
    Open_zombie

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
  •