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

XP + Level + Rank System v2.2


Post New Thread Reply   
 
Thread Tools Display Modes
Kurt C0bain
New Member
Join Date: Nov 2017
Old 11-26-2017 , 07:57   Re: XP + Level + Rank System v1.1
Reply With Quote #41

Hi, I installed your plugin but in consol says:

[AMXX] Invalid Plugin (plugin "cs_rank_system.amxx")
Kurt C0bain is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 11-26-2017 , 10:59   Re: XP + Level + Rank System v1.1
Reply With Quote #42

You forgot to complie the script file,
upload it to your plugin dir.
------
For lazy admins:
Code:
register_clcmd("amx_give_xp", "clcmd_xp", ADMIN_LEVEL_A, " - <name> <xp>"); public clcmd_xp(id, level, cid){     if(!cmd_access(id, level, cid, 3))         return PLUGIN_HANDLED;     new arg[32], arg2[32];     read_argv(1, arg, charsmax(arg));     read_argv(2, arg2, charsmax(arg2));         new player = cmd_target(id, arg, 2);     if(!player) return PLUGIN_HANDLED;         new xp_amount = str_to_num(arg2);     xp[player] += xp_amount;         if(xp[player] < 0) xp[player] = 0;         new player_name[32], admin_name[32];     get_user_name(player, player_name, 31);     get_user_name(id, admin_name, 31);         switch(get_cvar_num("amx_show_activity")){         case 2: client_print(0, print_chat, "ADMIN %s: gave %s %i XP", admin_name, player_name, xp_amount);         case 1: client_print(0, print_chat, "ADMIN: gave %s %i XP", player_name, xp_amount);     }         return PLUGIN_HANDLED; }
__________________

Last edited by Relaxing; 11-26-2017 at 11:10.
Relaxing is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-26-2017 , 13:52   Re: XP + Level + Rank System v1.1
Reply With Quote #43

This is definitly not your plugin. If it is, you don't know what you're doing. First of all, every scripter should indent his code for better readability. Also, AUTHOR was never defined which will probably throw an error in your log files.

You didn't upload fvault.inc which makes it for everyone who doesn't have the file, unable to compile.

This has also been made million times before, even with more functions and even easier to modify.

DeathMsg function should have a lot of more checks, for example if the victim died by worldspawn or something else, if the player teamkilled someone, etc. etc... I've made this before and i know how many trouble such a plugin can bring if you don't code it properly and don't handle the checks you should handle.

This plugin needs a lot of more testing
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 11-27-2017 , 11:29   Re: XP + Level + Rank System v1.1
Reply With Quote #44

...
Spoiler
__________________
Relaxing is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 11-28-2017 , 03:26   Re: XP + Level + Rank System v1.1
Reply With Quote #45

I will do a complete recode of the plugin
Bt need some help -_-
__________________
CrAzY MaN is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 02-22-2018 , 03:43   Re: XP + Level + Rank System v1.1
Reply With Quote #46

Hi
about save rank typ by name.. if someone changes their name they will get the same rank. I think it should be fix.
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 02-22-2018 , 19:56   Re: XP + Level + Rank System v1.1
Reply With Quote #47

If you kill yourself or change teams, you get XP. So I put the checks.

public xDeathMsg()
{
new iKiller = read_data(1);
new iVictim = read_data(2);

static sWeapon[16];
read_data( 4, sWeapon, sizeof( sWeapon ) - 1 );

if( iKiller == iVictim && equal( sWeapon, "world", 5 ) ) return
// suicide

if( !iKiller && equal( sWeapon, "world", 5 ) ) return
// falled

if( !iKiller && equal( sWeapon, "door", 4 ) ) return
// door

if( !iKiller && equal( sWeapon, "trigger_hurt", 12 ) )return
// trigger

new id = read_data(1)
new hs = read_data(3)

xp[id]++

if(hs)
xp[id] += 3

check_level(id, 1)
save_data(id)
}

Last edited by iceeedr; 02-22-2018 at 19:57. Reason: addition
iceeedr is offline
Send a message via Skype™ to iceeedr
nicoaraflavius
New Member
Join Date: Oct 2010
Location: Germany
Old 03-05-2018 , 09:58   Re: XP + Level + Rank System v1.1
Reply With Quote #48

Code:
unknown            unknown     unknown           cs_rank_system.  bad load
Can't help me please ?
nicoaraflavius is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-05-2018 , 10:31   Re: XP + Level + Rank System v1.1
Reply With Quote #49

OP needs help in order so his plugin works good the way it should. The code MUST be under maintenance, since the upper member seems to struggle while using this plugin.
__________________
Relaxing is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 03-06-2018 , 06:15   Re: XP + Level + Rank System v1.1
Reply With Quote #50

I m working on this plugin...
A complete recode will be done
__________________
CrAzY MaN is offline
Reply


Thread Tools
Display Modes

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 08:16.


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