Raised This Month: $51 Target: $400
 12% 

Subplugin Submission [ZP] Zombie VIP 1.9.1


Post New Thread Reply   
 
Thread Tools Display Modes
sound010
Senior Member
Join Date: Mar 2011
Old 06-07-2011 , 08:01   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #511

Quote:
Originally Posted by WelcomE~ View Post
[IMG]http://img806.**************/img806/1086/zmzombieapocalypse0001.png[/IMG]

Uploaded with **************

Why? The lang file is right where it should be, the other files also...
:S I do not understand pls help me :S
__________________
sound010 is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 06-07-2011 , 14:21   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #512

Read few pages above.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
il3gal59
New Member
Join Date: May 2011
Old 06-11-2011 , 07:57   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #513

i can add member vip i add user name and password in vips.ini and dont work ...say you are not a vip member
il3gal59 is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-11-2011 , 09:44   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #514

Quote:
Originally Posted by il3gal59 View Post
i can add member vip i add user name and password in vips.ini and dont work ...say you are not a vip member
did you add it by your name, STEAM id, ip adress ????
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
MosLaDatorie
Junior Member
Join Date: Jun 2011
Old 06-11-2011 , 10:20   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #515

hi all.....i see only admins can have vip but i want also player to have vip? can you help me?
MosLaDatorie is offline
k4y
BANNED
Join Date: Jun 2011
Location: Germany
Old 06-14-2011 , 14:48   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #516

Hey,
A question about how to add zombie class for Vips or Admins
Where i must add this Code in the zombie class sma ?

PHP Code:
 #include <zmvip> 

public zp_user_infected_pre(id) { 
    if(
zv_get_user_flags(id) == 0) { 
        if(
zp_get_user_next_class(id) == g_zclass_crow) { 
            
zp_set_user_zombie_class(id0
            
client_print(idprint_center"Your selected class is only for *VIP* members"
            
client_print(idprint_chat"Your selected class is only for *VIP* members. Changed to default zombie class."
        } 
    } 

k4y is offline
Send a message via Skype™ to k4y
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 06-14-2011 , 15:59   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #517

Anywere.

Only #include <zmvip> in the top
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
k4y
BANNED
Join Date: Jun 2011
Location: Germany
Old 06-14-2011 , 16:23   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #518

ok so this is right ?

PHP Code:
/*================================================================================
Name: Lockerz Zombie
Type: Zombie Class
For: Zombie Plague 4.3
Author: Dias Leon
Credits:
- Dias | Made Plugin
================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <zombieplague>
#include <zmvip>

// Zombie Attributes
new const zclass_name[] = "Lockerz Zombie" // name
new const zclass_info[] = "(G) - Lock Human Weapon" // description
new const zclass_model[] = "zombie_source" // model
new const zclass_clawmodel[] = "v_knife_zombie.mdl" // claw model
const zclass_health 750 // health
const zclass_speed 250 // speed
const Float:zclass_gravity 1.0 // gravity
const Float:zclass_knockback 1.0 // knockback

// Class IDs
new g_lockerz

// Main var
new beam
new bool:can_lock[33]
new 
bool:target_locked[33]

// Main cvar
new cvar_distance
new cvar_cooldown
new cvar_cooldown_target

public plugin_init()
{
    
register_plugin("[ZP] Zombie Class: Lockerz Zombie""1.0""Dias Leon")
    
register_clcmd("drop""lock_now")
    
register_forward(FM_CmdStart"fw_Start")
    
cvar_distance register_cvar("lz_distance""750")
    
cvar_cooldown register_cvar("lz_cooldown_time""30.0")
    
cvar_cooldown_target register_cvar("lz_cooldown_target_time""10.0")
}

public 
plugin_precache()
{
    
g_lockerz zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)    
    
beam precache_model("sprites/lgtning.spr")
}

public 
zp_user_infected_post(idinfector)
{
    if(
is_user_alive(id) && zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == g_lockerz)
    {
        
client_print(idprint_chat"[Lockerz Zombie] Aim the player you want to block that him weapon, And Press (G) !!!")
        
can_lock[id] = true
    
}
}

public 
zp_user_humanized_post(id)
{
    if(
is_user_alive(id) && zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == g_lockerz)
    {
        
can_lock[id] = false
    
}
}

public 
lock_now(id)
{
    if(
is_user_alive(id) && zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == g_lockerz)
    {
        if(
is_user_alive(id) && can_lock[id] == true)
        {
            new 
target1body1
            
static Float:start1[3]
            static 
Float:end1[3]
            
            
pev(idpev_originstart1)
            
start1[2] += 16.0            
            fm_get_aim_origin
(idend1)
            
end1[2] += 16.0            
            
            get_user_aiming
(idtarget1body1cvar_distance)
            if(
is_user_alive(target1) && !zp_get_user_zombie(target1) && !zp_get_user_survivor(target1))
            {
                
lock_target(target1)            
                
client_print(idprint_center"Target Locked [Hit]")
                } else {
                
client_print(idprint_center"Target not Locked [Miss]")
            }
            
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
            
write_byte(0)
            
engfunc(EngFunc_WriteCoordstart1[0])
            
engfunc(EngFunc_WriteCoordstart1[1])
            
engfunc(EngFunc_WriteCoordstart1[2])
            
engfunc(EngFunc_WriteCoordend1[0])
            
engfunc(EngFunc_WriteCoordend1[1])
            
engfunc(EngFunc_WriteCoordend1[2])
            
write_short(beam)
            
write_byte(0)
            
write_byte(30)        
            
write_byte(20)
            
write_byte(50)
            
write_byte(50)
            
write_byte(255)
            
write_byte(255)
            
write_byte(255)
            
write_byte(100)
            
write_byte(50)
            
message_end()
            
            
can_lock[id] = false
            set_task
(get_pcvar_float(cvar_cooldown), "ability_reload"id)
            } else {
            if(
is_user_alive(id) && can_lock[id] == false)
            {
                
client_print(idprint_chat"[Lockerz Zombie] You can't use your ability right now. Please waiting for %i"get_pcvar_num(cvar_cooldown))
            }
        }
    }
}

public 
lock_target(id)
{
    
target_locked[id] = true
    
    set_task
(get_pcvar_float(cvar_cooldown_target), "unlock_target"id)
    
client_print(idprint_chat"Your all weapon are locked, Now you can't fire. Please waiting for %i"get_pcvar_num(cvar_cooldown_target))
    
    return 
PLUGIN_HANDLED    
}

public 
ability_reload(id)
{
    
can_lock[id] = true
    client_print
(idprint_chat"[Lockerz Zombie] Now. You can use your ability, Press (G)")
}

public 
unlock_target(id)
{
    
target_locked[id] = false
    client_print
(idprint_chat"Your all weapon are UnLock, Now you can fire")
    
    return 
PLUGIN_HANDLED    
}

public 
fw_Start(iduc_handleseed)
{
    if(
is_user_alive(id) && target_locked[id] == true)
    {
        new 
button get_uc(uc_handle,UC_Buttons)
        if(
button IN_ATTACK || button IN_ATTACK2)
        {
            
set_uc(uc_handle,UC_Buttons,(button & ~IN_ATTACK) & ~IN_ATTACK2)
        }
    }
}

public 
zp_user_infected_pre(id) {
    if(
zv_get_user_flags(id) == 0) {
        if(
zp_get_user_next_class(id) == g_lockerz) {
            
zp_set_user_zombie_class(id0)
            
client_print(idprint_center"Your selected class in only for *VIP* members")
            
client_print(idprint_chat"Your selected class in only for *VIP* members. Changed to default zombie class.")
        }
    }

k4y is offline
Send a message via Skype™ to k4y
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 06-14-2011 , 20:14   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #519

Yea, it's correct. Also you can add "*VIP*" to zombie class name, that players could understand better, that it's vip only class.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
pewex
Senior Member
Join Date: Dec 2010
Location: AlliedMods
Old 06-15-2011 , 05:37   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #520

Hi, can I ask for a version which reads users.ini VIPs?
pewex is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode