Raised This Month: $1944 Target: $400
 486% 

OciXCrom's Rank System [XP|Levels|Ranks]


Post New Thread Reply   
 
Thread Tools Display Modes
ForeskinJohn
Junior Member
Join Date: Apr 2020
Old 07-10-2020 , 01:50   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #441

Quote:
Originally Posted by HamletEagle View Post
Can You Stop Writing Like This? It Is Annoying And Makes Your Post So Much Harder To Read.
https://www.amxmodx.org/downloads.php
I think you'll survive buddy, a punching bag or lifting weights is a good place to start for ya. this is a forum, everyone should have a right to it.
ForeskinJohn is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-10-2020 , 02:40   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #442

Quote:
Originally Posted by ForeskinJohn View Post
I think you'll survive buddy, a punching bag or lifting weights is a good place to start for ya. this is a forum, everyone should have a right to it.
So how exactly did I deny his right to the forum? I merely asked him to write like everyone else does and, ik fact, how everyone is supposed to.
Plus, I also answered his question.
__________________

Last edited by HamletEagle; 07-10-2020 at 02:41.
HamletEagle is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 07-10-2020 , 13:33   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #443

Ocix, can you answer, please? I need that thing.

"Players request me /top15 plugin which shows best 15 players MOTD with their levels and ranks. Isn't it hard for you to do that?"
LithuanianJack is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-10-2020 , 21:38   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #444

I already answered this question multiple times - it will be added in a future update and no, it's not easy to make and requires a lot of time which I don't have right now.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-18-2020 , 19:39   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #445

Nice plugin and options.
4ever16 is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 07-23-2020 , 08:55   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #446

how can make this plugin compatible with another plugins like.
i am using a sentrygun plugin and if it kills any person so it gives me XP.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Angel Of Games - Forum
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-23-2020 , 10:01   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #447

Very easily.

Code:
#include <crxranks> crxranks_give_user_xp(id, _, "sentry_gun_kill")

Then in RankSystem.ini => [XP Rewards] add:

Code:
sentry_gun_kill = 10

Of course you need to put the code in the proper place in your sentry guns .sma file when a player kills another player with the sentry gun.
__________________

Last edited by OciXCrom; 07-23-2020 at 10:03.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
NOVA GAMING
Junior Member
Join Date: Apr 2020
Old 07-23-2020 , 10:02   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #448

Quote:
Originally Posted by DON KHAN 1 View Post
how can make this plugin compatible with another plugins like.
i am using a sentrygun plugin and if it kills any person so it gives me XP.
when sentry gun kill the target you can simple get the owner of sentry gun and give the XP with native for giving XP "crxranks_give_user_xp"

You can PM me for Help
correct me if i am wrong

EDIT :- OCIXCROM REPLIED BEFORE ME
__________________
SENTRY GUN 10 LEVEL :-CLICK HERE
[NEW] ZOMBIE MOD:CLICK HERE
TF2 STYLE SENTRY , DISPENSER: CLICK HERE
SENTRY WITH ANIMATION: CLICK HERE

Last edited by NOVA GAMING; 07-23-2020 at 10:03.
NOVA GAMING is offline
Ark_Procession
Junior Member
Join Date: Jun 2020
Old Yesterday , 19:00   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #449

Hi OciXCrom


I have one problem that i hope you can help me with, if you have the time and will.

When i use custom_extra_damage_mod by V3x, knife and HE does not add XP, in fact neither does with "he damage multiplier" and "one knife hit kills"
Since i was having lots of problems with those last 2 plugins not counting frags or giving money, i changed to " custom_extra_damage_mod " by V3x.
With this plugin the frags with nades and knife are working in scoreboard, but they still don't add to the rank XP.

Would you help me with that? i don't know code at all.

The plugin is already before your rank system and by far! your rank system is almost at the end. the last plugin i have is your Simple Menu Builder

This maybe is not the proper place to ask for this but when i try to add SV commands to the Simple Menu Builder they don't work for eg:
"Restart" "sv_restart 1"
And when i enter the game and try to restart through Simple Menu Builder it doesn't work. every other command from Amx works just fine.

The code from custom_extra_damage_mod is:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <engine>

#define PLUGIN	"Extra Damage Mod"
#define VERSION	"0.2"
#define AUTHOR	"v3x"

#define ACCESS_LEVEL	ADMIN_CFG
#define MAXWEAPS 	31

new cstrike;

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_concmd("sv_weapondamage", "ConCmd_WeapDmg", ACCESS_LEVEL, ": <weaponid> <damage>");
	register_concmd("amx_weaponlist", "ConCmd_WeapList", 0, ": Lists weapon ids");
	register_event("Damage", "Event_Damage", "b", "2>0");

	cstrike = cstrike_running();
}

new g_nWeapDmg[MAXWEAPS] = { 0, ... };

public Event_Damage( id )
{
	new iWeapID, iHitzone, iAttacker = get_user_attacker(id, iWeapID, iHitzone);

	if(!is_user_connected(id) || !is_user_connected(iAttacker))
		return PLUGIN_CONTINUE;

	new dmgType = read_data(3);

	if(dmgType & DMG_BLAST)
		iWeapID = 4;

	extra_damage(iAttacker, id, g_nWeapDmg[iWeapID], iWeapID);

	return PLUGIN_CONTINUE;
}

public ConCmd_WeapDmg( id, lvl, cid )
{
	if(!cmd_access(id, lvl, cid, 3))
		return PLUGIN_HANDLED;

	new arg1[16], arg2[8];
	read_argv(1, arg1, 15); // Weapon ID
	read_argv(2, arg2, 7);  // Damage amt

	new weapid = str_to_num(arg1);
	new damage = str_to_num(arg2);

	if(weapid > 0 && weapid < MAXWEAPS)
	{
		if(weapid == 2 || weapid == 6 || weapid == 9 || weapid == 25)
		{
			console_print(id, "[XtraDamageMod] Invalid weapon id: %i", weapid);
			server_print("[XtraDamageMod] Invalid weapon id: %i", weapid);
			return PLUGIN_HANDLED;
		}

		g_nWeapDmg[weapid] = damage;
		
		new weapname[33];
		get_weaponname(weapid, weapname, 32);

		replace(weapname, 32, "weap_", "");

		if(damage > 0)
		{
			console_print(id, "[XtraDamageMod] Added %i extra damage for %s", damage, weapname);
		}
		else if(damage <= 0)
		{
			console_print(id, "[XtraDamageMod] Removed extra damage for %s", damage, weapname);
		}
	}

	if(weapid == 0)
	{
		for(new i = 1; i < MAXWEAPS; i++)
			g_nWeapDmg[i] = damage;
	
		if(damage > 0)
		{
			console_print(id, "[XtraDamageMod] Added %i extra damage for all weapons", damage);
		}
		if(damage <= 0)
		{
			console_print(id, "[XtraDamageMod] Removed extra damage for all weapons");
		}
	}

	return PLUGIN_HANDLED;
}

// Doesn't work well for clients..
public ConCmd_WeapList( id )
{
	new arg[8];
	read_argv(1, arg, 7);

	new szWeapMsg[256], nLen, iPage = str_to_num(arg);

	nLen = format(szWeapMsg, 255, "[ExtraDamageMod] Weapon ID list %s", (iPage==2) ? "(con.):" : ":");

	if(iPage == 0 || iPage == 1)
	{
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- P228: %i", CSW_P228);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Scout: %i", CSW_SCOUT);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- HE Grenade: %i", CSW_HEGRENADE);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- XM1014 (autoshotgun): %i", CSW_XM1014);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Mac10: %i", CSW_MAC10);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Aug: %i", CSW_AUG);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Elites: %i", CSW_ELITE);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Fiveseven: %i", CSW_FIVESEVEN);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- UMP45: %i", CSW_UMP45);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- SG550: %i", CSW_SG550);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Galil: %i", CSW_GALIL);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Famas: %i", CSW_FAMAS);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- USP: %i", CSW_USP);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n^nType 'amx_weaponlist 2' for more");
	}
	else if(iPage == 2)
	{
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Glock18: %i", CSW_GLOCK18);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- AWP: %i", CSW_AWP);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- MP5NAVY: %i", CSW_MP5NAVY);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- M249 (Para): %i", CSW_M249);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- M3 (Pump): %i", CSW_M3);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- M4A1: %i", CSW_M4A1);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- TMP: %i", CSW_TMP);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- G3SG1: %i", CSW_G3SG1);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Deagle: %i", CSW_DEAGLE);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- SG552: %i", CSW_SG552);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- AK47: %i", CSW_AK47);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- Knife: %i", CSW_KNIFE);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n- P90: %i", CSW_P90);
		nLen += format(szWeapMsg[nLen], (255-nLen), "^n^nType 'amx_weaponlist 1' to go back");
	}

	if(is_user_connected(id))
		console_print(id, szWeapMsg);
	else
		server_print(szWeapMsg);

	return PLUGIN_HANDLED;
}

public extra_damage(attacker, victim, damage, weap)
{
	if(!cstrike || !is_user_connected(attacker) || !is_user_connected(victim))
		return;
	if(damage <= 0 || get_user_health(victim) <= 0 || get_user_godmode(victim))
		return;

	new FFon = get_cvar_num("mp_friendlyfire");

	new index, body, distance = 99999;
	get_user_aiming(attacker, index, body, distance);

	new weaponname[33];
	get_weaponname(weap, weaponname, 32);

	replace(weaponname, 32, "weapon_", "");

	new team[2];
	team[0] = get_user_team(attacker);
	team[1] = get_user_team(victim);

	if(FFon && team[0] == team[1])
	{
		new name[32];
		get_user_name(attacker, name, 31);
		client_print(0, print_chat, "%s attacked a teammate", name);
	}

	if(get_user_health(victim) > damage)
	{
		fakedamage(victim, weaponname, float(damage), (weap == 4) ? DMG_BLAST : DMG_BULLET); 

		new origin[3];
		get_user_origin(victim, origin);

		message_begin(MSG_ONE, get_user_msgid("Damage"), {0,0,0}, victim);
		write_byte(0);		// dmg_save
		write_byte(damage);	// dmg_take
		write_long(0);		// visibleDamageBits
		write_coord(origin[0]);	// damageOrigin.x
		write_coord(origin[1]);	// damageOrigin.y
		write_coord(origin[2]);	// damageOrigin.z
		message_end();
	}
	else
	{
		log_kill(attacker, victim, weaponname, (body == HIT_HEAD) ? 1 : 0);
	}
}

stock log_kill(killer, victim, weapon[],headshot) 
{
	new weapname[64];

	if(containi(weapon, "nade") != -1)
		format(weapname, 63, "grenade");
	else
	{
		format(weapname, 63, "%s", weapon);
		replace(weapname, 63, "weapon_", "");
	}

	user_silentkill(victim)
	set_msg_block(get_user_msgid("DeathMsg"), BLOCK_NOT)
	make_deathmsg(killer, victim, headshot, weapname)

	if(get_user_team(killer) != get_user_team(victim))
	{
		set_user_frags(killer, get_user_frags(killer) + 1);

		new money = cs_get_user_money(killer) + 300;

		if(money >= 16000)
		{
			cs_set_user_money(killer, 16000);
		}
		else
		{
			cs_set_user_money(killer, cs_get_user_money(killer) + 300, 1);
		}
	}
	if(get_user_team(killer)==get_user_team(victim))
		set_user_frags(killer, get_user_frags(killer) - 1);
	
	message_begin(MSG_BROADCAST, get_user_msgid("ScoreInfo"));
	write_byte(killer);
	write_short(get_user_frags(killer));
	write_short(cs_get_user_deaths(killer));
	write_short(0);
	write_short(1);
	message_end(); 
	
	new kname[32], vname[32], kauthid[32], vauthid[32], kteam[10], vteam[10];

	get_user_name(killer, kname, 31);
	get_user_team(killer, kteam, 9);
	get_user_authid(killer, kauthid, 31);

	get_user_name(victim, vname, 31);
	get_user_team(victim, vteam, 9);
	get_user_authid(victim, vauthid, 31);

	log_message("^"%s<%d><%s><%s>^" killed ^"%s<%d><%s><%s>^" with ^"%s^"", 
	kname, get_user_userid(killer), kauthid, kteam, 
 	vname, get_user_userid(victim), vauthid, vteam, weapname);

 	return PLUGIN_CONTINUE;
}

Last edited by Ark_Procession; Today at 14:22.
Ark_Procession is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old Yesterday , 21:15   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #450

Please put the code between proper [code] tags so it can be readable.
Try moving the plugin before my rank system in plugins.ini.

Edit: the problem is in the "make_deathmsg" function. This function cannot be hooked by other plugins and needs to be replaced with a hookable one. Please fix your post first.
__________________

Last edited by OciXCrom; Yesterday at 21:17.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 20:22.


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