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

[Req]CSX NATIVES


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alexblood2013
Senior Member
Join Date: Aug 2014
Old 04-13-2015 , 03:41   [Req]CSX NATIVES
Reply With Quote #1

Hello.

My question is: CSX have a native for set user death/kills in top15?

I need that because i should make a plugin that give extra kills for killing with HE , knife....

After map change , kills/deaths should remain in top15.


Example:

I kill somebody with a knife , in my code if somebody do that ,he normally get 1 kills in rank.

I want that the killer get 3 kills in rank.

I only need a native , if exists, I found some.. but i don't know if it save in player rank ( csstats.dat i think )
Alexblood2013 is offline
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 04-13-2015 , 07:03   Re: [Req]CSX NATIVES
Reply With Quote #2

Those are from fun.inc

get_user_frags()

set_user_frags()


Also, you can use this link as a guide.
http://www.amxmodx.org/api/

Last edited by Obada; 04-13-2015 at 07:03.
Obada is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 04-13-2015 , 07:55   Re: [Req]CSX NATIVES
Reply With Quote #3

Does those set stats? I'm not sure, but I think not.
CSSTATS modules should have these natives made to add/change player stats.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 04-13-2015 at 07:57.
GuskiS is offline
Alexblood2013
Senior Member
Join Date: Aug 2014
Old 04-13-2015 , 15:13   Re: [Req]CSX NATIVES
Reply With Quote #4

Quote:
Originally Posted by GuskiS View Post
Does those set stats? I'm not sure, but I think not.
CSSTATS modules should have these natives made to add/change player stats.
My csstats has only get_... ( retrive something from id) , not to set.

Somewhere is a csstats updated , with some set commands , but i can't find it.
Alexblood2013 is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 04-13-2015 , 15:24   Re: [Req]CSX NATIVES
Reply With Quote #5

Yes, it needs an update
Search for updated csstats in Modules Coding section.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-13-2015 , 19:55   Re: [Req]CSX NATIVES
Reply With Quote #6

I wrote this a while back but unfortunately all changes to csstats are lost at map-change/shutdown. This needs to be coded into the csx module.

https://forums.alliedmods.net/showpo...56&postcount=8
__________________
Bugsy is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-14-2015 , 09:56   Re: [Req]CSX NATIVES
Reply With Quote #7

You can code csstats update according set_user_ frags / deaths, what is problem of do this?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 15:08.


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