Raised This Month: $32 Target: $400
 8% 

ClasicXp level mod


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-29-2013 , 03:48   Re: ClasicXp level mod
Reply With Quote #41

Good ideea. Will be added soon.
HamletEagle is offline
BlueGaming
BANNED
Join Date: Nov 2013
Old 01-03-2014 , 06:01   Re: ClasicXp level mod
Reply With Quote #42

1# lol this plugin is a child version , sorry .. and we can use Xp Mod by Exolent , enywhey ...


man are you normal ??

3 ifs
PHP Code:
    if(weapon== CSW_KNIFE) {
            
PlayerXP[attacker] += get_pcvar_num(XP_Knife)  
            
client_print(attacker,print_chat,"You received  %i XP for kill with knife on %s.",get_pcvar_num(XP_Knife),victim_name)    
            
        }
        
        if(
weapon== CSW_AWP) {
            
PlayerXP[attacker] += get_pcvar_num(XP_AWP)  //adauga xp pentru 1 kill cu awp    
            
client_print(attacker,print_chat,"You received  %i XP for kill with awp on %s.",get_pcvar_num(XP_AWP),victim_name)        
            
        }
        
        if( 
weapon == CSW_HEGRENADE )
        {
            
PlayerXP[attacker] += get_pcvar_num(XP_he
            
client_print(attacker,print_chat,"You received  %i XP for kill with he on %s.",get_pcvar_num(XP_he),victim_name)        
            
        } 
2# baby use switch


3# also verify in a condition if attacker exist or is victim and stop plugin
4# use remove_task after give items !


5# insteand of client_putinserver use client_Authorized


Here is a bug
PHP Code:
    format(vaultdata,255,"%i#%i#",PlayerXP[id],PlayerLevel[id]) 
in saving name method 6# use steamid (ofcourse if you dont are non-steamer !)

Last edited by BlueGaming; 01-03-2014 at 07:55.
BlueGaming is offline
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 01-04-2014 , 00:46   Re: ClasicXp level mod
Reply With Quote #43

bluegaming can u show me that how to use switch i m beginner only one example i wanted...plz
__________________
All my work is here
xxxperts is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-04-2014 , 11:06   Re: ClasicXp level mod
Reply With Quote #44

Quote:
Originally Posted by BlueGaming View Post
1# lol this plugin is a child version , sorry .. and we can use Xp Mod by Exolent , enywhey ...


man are you normal ??

3 ifs
PHP Code:
    if(weapon== CSW_KNIFE) {
            
PlayerXP[attacker] += get_pcvar_num(XP_Knife)  
            
client_print(attacker,print_chat,"You received  %i XP for kill with knife on %s.",get_pcvar_num(XP_Knife),victim_name)    
            
        }
        
        if(
weapon== CSW_AWP) {
            
PlayerXP[attacker] += get_pcvar_num(XP_AWP)  //adauga xp pentru 1 kill cu awp    
            
client_print(attacker,print_chat,"You received  %i XP for kill with awp on %s.",get_pcvar_num(XP_AWP),victim_name)        
            
        }
        
        if( 
weapon == CSW_HEGRENADE )
        {
            
PlayerXP[attacker] += get_pcvar_num(XP_he
            
client_print(attacker,print_chat,"You received  %i XP for kill with he on %s.",get_pcvar_num(XP_he),victim_name)        
            
        } 
2# baby use switch


3# also verify in a condition if attacker exist or is victim and stop plugin
4# use remove_task after give items !


5# insteand of client_putinserver use client_Authorized


Here is a bug
PHP Code:
    format(vaultdata,255,"%i#%i#",PlayerXP[id],PlayerLevel[id]) 
in saving name method 6# use steamid (ofcourse if you dont are non-steamer !)

Xp mod by exolet is for hns. When I made the plugin(some years ago) I didn't knew that swtich is better,and I didn't edited.

It's old version,wasn't edited for a long time. And I'm not supporting it anymore,until I'll have free time.

Let's say that you have a cvar with 3 values. Instand of checking every value you can make:

switch(get_pcvar_num(cvar)) {

case 0 : {

}

case 1: {

}

case 2: {

}

}
HamletEagle is offline
BlueGaming
BANNED
Join Date: Nov 2013
Old 01-05-2014 , 05:25   Re: ClasicXp level mod
Reply With Quote #45

xxxperst go here : https://wiki.alliedmods.net/Pawn_Tut...tch_Statements

Hamlet : i hope you will update this plugin , between got it trashed
BlueGaming is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-25-2014 , 10:35   Re: ClasicXp level mod
Reply With Quote #46

It can be trashed,I don't care. It's old and I'm not supporting it anymore.
HamletEagle is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-24-2014 , 04:55   Re: ClasicXp level mod
Reply With Quote #47

The code shows a lack of understanding of basic procedures and simple optimizations.

Unapproved.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 02-24-2014 at 04:55.
hornet 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 14:34.


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