Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.


Post New Thread Reply   
 
Thread Tools Display Modes
SergiCruz
Senior Member
Join Date: Mar 2012
Location: Andalucía, España
Old 04-17-2015 , 11:51   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #21

[XP] Zombie class: NST Class Speed / Light
[XP] Zombie class: NST CLass Tank (Edited 17/04/2015 23:23)
[XP] Zombie class: Leech (Edited 18/04/2015 0:06)

Description
Classes adapted / created for this level API.

Cvars:

** Light zombie **
- xp_class_light_minlevel [Default: 4] Minimum level for using this class.
- xp_class_light_bots_ignore [Default: 1] Whether bots ignore the minimum level required

** Tank zombie **
- xp_class_tank_minlevel [Default: 0] Minimum level for using this class (I recommend to set this class as first class, cause it is free for all levels)
- xp_class_tank_bots_ignore [Default: 1] Whether bots ignore the minimum level required
- xp_class_tank_level_upgrade [Default: 10] Level which glow and fov change at

** Leech zombie **
- xp_class_leech_bots_ignore [Default: 1] Whether bots ignore the minimum level required
- xp_class_leech_minlevel [Default: 0] Minimum level for using this class
- xp_class_leech_maxhealth [Default: 3] Maximum health (based on multiples of its original health) reachable for leech zombie class

Features:

** Light zombie **
- Speed, health, speed while invisible and invisible time increase as level increases
- Gravity, gravity while invisible, time wait, damage for using the skill and visibility amount (invisible_alpha) decrease as level increases

** Tank zombie **
- Speed, fastrun speed, health and fastrun time increase as level increases
- Gravity, time wait for fastrun and damage for using the skill decrease as level decrease
- Better field of view while running fast for players over X level (set with cvar)
- New glow while running fast for players over X level (set with cvar)

** Leech zombie **
- Speed, leech and health increase as level increases
- Gravity decrease as level decrease

Credits
- Nst, Yokomo: Original plugins

ZP4.3 Only
Attached Files
File Type: sma Get Plugin or Get Source (xp_class_speed_nst.sma - 679 views - 10.8 KB)
File Type: sma Get Plugin or Get Source (xp_class_tank_nst.sma - 655 views - 10.4 KB)
File Type: sma Get Plugin or Get Source (xp_class_leech.sma - 652 views - 5.1 KB)
__________________
PodBot waypointer. Feel free to ask for waypoints for zm_ maps.

Last edited by SergiCruz; 04-17-2015 at 18:15. Reason: Added leech
SergiCruz is offline
Send a message via MSN to SergiCruz
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-18-2015 , 13:54   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #22

XP Zombie Classes

Regular Zombie:
Spoiler


Invisible Zombie:
Spoiler


Leap Zombie:
Spoiler


Certain zombie classes require custom resources and can be download here

Only for ZP50.
Attached Files
File Type: sma Get Plugin or Get Source (xp_zclass_regular.sma - 826 views - 9.4 KB)
File Type: sma Get Plugin or Get Source (xp_zclass_invi.sma - 893 views - 9.5 KB)
File Type: sma Get Plugin or Get Source (xp_zclass_leaper.sma - 697 views - 3.0 KB)
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 04-18-2015 at 14:19.
yokomo is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 04-18-2015 , 19:16   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #23

cool, just a thing the leaper zombie can do long jump in the air, I recommend you make a return if is in the air..

Last edited by wicho; 04-18-2015 at 19:24.
wicho is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-19-2015 , 09:47   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #24

Quote:
Originally Posted by wicho View Post
cool, just a thing the leaper zombie can do long jump in the air, I recommend you make a return if is in the air..
Nope, i have tested my plugin and leaper zombie can't long-jump if in mid-air. Leaper only can do long-jump if they on the ground.

Base on the code:
PHP Code:
public OnPlayerJump(id)
{
    if(!
bIsLeaper[id]) return; //not a leaper zombie
    
static Float:ctimectime get_gametime();
    if(
fLastLeap[id] > ctime) return; //in cooldown
    
if(pev(idpev_maxspeed) < 2.0) return; //frozen or in freezetime
    
if(!(pev(idpev_flags) & FL_ONGROUND)) return; //not on the ground
    
if(!(pev(idpev_button) & IN_DUCK)) return; //not press duck button
    
    //ok can leap
    
fLastLeap[id] = ctime+get_pcvar_float(CvrLeapCooldown)
    new 
Float:fVelocity[3]
    
velocity_by_aim(idget_pcvar_num(CvrLeapForward), fVelocity)
    
fVelocity[2] = get_pcvar_float(CvrLeapUpward)
    
set_pev(idpev_velocityfVelocity)

__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Fresh522
Member
Join Date: Mar 2015
Location: Bulgaria
Old 04-19-2015 , 15:05   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #25

Nice plugin . Ill use it . Good work .
Fresh522 is offline
Fresh522
Member
Join Date: Mar 2015
Location: Bulgaria
Old 04-19-2015 , 15:43   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #26

Can you tell me how to set levels on extra items . Example : Unlimited Clip 10 ammo packs (10 Level requred) , you need to be 10 level to use this item .
Fresh522 is offline
SergiCruz
Senior Member
Join Date: Mar 2012
Location: Andalucía, España
Old 04-19-2015 , 16:31   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #27

Yes, it's easy This is for zp4.3
PHP Code:
public zp_extra_item_selected(iditemid)
{
    if(
itemid == g_itemid// Your item id
    
{
        if(
xp_get_user_level(id) < 10// The level you want
        
{
            
client_print(idprint_chat"You need to be level 10 for using this item")
            return 
PLUGIN_HANDLED // Refund the user
        
}
        
// Code...
    
}

(please, don't post twice)
__________________
PodBot waypointer. Feel free to ask for waypoints for zm_ maps.
SergiCruz is offline
Send a message via MSN to SergiCruz
Fresh522
Member
Join Date: Mar 2015
Location: Bulgaria
Old 04-19-2015 , 17:01   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #28

Thank you +1 . I forgot the edit button sorry .

Last edited by Fresh522; 04-19-2015 at 17:08.
Fresh522 is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-20-2015 , 01:30   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #29

Quote:
Originally Posted by SergiCruz View Post
Yes, it's easy This is for zp4.3
PHP Code:
public zp_extra_item_selected(iditemid)
{
    if(
itemid == g_itemid// Your item id
    
{
        if(
xp_get_user_level(id) < 10// The level you want
        
{
            
client_print(idprint_chat"You need to be level 10 for using this item")
            return 
PLUGIN_HANDLED // Refund the user
        
}
        
// Code...
    
}

(please, don't post twice)
You should return ZP_PLUGIN_HANDLED.

PHP Code:
public zp_extra_item_selected(iditemid)
{
    if(
itemid == g_itemid// Your item id
    
{
        if(
xp_get_user_level(id) < 10// The level you want
        
{
            
client_print(idprint_chat"You need to be level 10 for using this item")
            return 
ZP_PLUGIN_HANDLED// Refund the user
        
}
        
// Code...
    
}

    return 
PLUGIN_CONTINUE;

Plugin updated, see first post for more info.

Version 0.0.4
- Fix player name issue.
- Add Steamid to bots (BOT_x), so they can save their stats too.
- Add xp_check_user_level(id) native to check whether player should update their level or not.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Fabrizzo
New Member
Join Date: Dec 2013
Location: Ukraine
Old 04-20-2015 , 20:01   Re: [ZP43Fix5a|ZP50] Addon: Stats, ExpMod & Ranking System.
Reply With Quote #30

yokomo , I liked your plugin very much. I tested it on my Couter-Strike 1.6 server (Zombie Plague 4.3 Fix5a +16innovations Mod), and I noticed some bugs/minuses:
1. when new round comes, timer is 18 seconds before somebody is infected (in zombie plague I set 15 seconds, it became 18 after I added your plugin on server);
2. saving is only by Steam id and in nvault.
3. multilingual support (if you want I can help with Russian)
It would be great if you add a possibility to save Exp by Nick and in MySql, and a cvars, for example, something like this:
save_type 1 // 0 - by steam id, 1 - by nick
data_base 1 // 0 - nvault, 1 - mysql
To help you a bit - I make an attachment file zp_yaab.sma , there is a very good saving in MySql base and save type is by Nick. I hope in the following version you will add manshioned earlier recommendations for you how to make your plugin better.
Sorry for my bad English if it is so, I am from Ukraine
Attached Files
File Type: sma Get Plugin or Get Source (zp_yaab.sma - 565 views - 5.7 KB)

Last edited by Fabrizzo; 04-20-2015 at 20:06.
Fabrizzo is offline
Send a message via Skype™ to Fabrizzo
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 13:18.


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