Raised This Month: $ Target: $400
 0% 

Storing kills as "points"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Smile #Fail
Junior Member
Join Date: Nov 2008
Old 01-17-2010 , 23:19   Storing kills as "points"
Reply With Quote #1

I have no idea how I would do this so if someone could possibly help me it would be greatly appreciated. What I want to do is to store kills for when a user joins the server that its the same as when they left.
Smile #Fail is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 01-17-2010 , 23:44   Re: Storing kills as "points"
Reply With Quote #2

http://forums.alliedmods.net/showthr...frag+reconnect
Seta00 is offline
Smile #Fail
Junior Member
Join Date: Nov 2008
Old 01-18-2010 , 00:44   Re: Storing kills as "points"
Reply With Quote #3

that only stores them.
Smile #Fail is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 01-18-2010 , 06:28   Re: Storing kills as "points"
Reply With Quote #4

Quote:
Originally Posted by Smile #Fail View Post
that only stores them.
Isn't that what you want?
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 01-18-2010 , 11:21   Re: Storing kills as "points"
Reply With Quote #5

That one stores and restores after a reconnect, and if you don't like it for some reason, check this
Seta00 is offline
Smile #Fail
Junior Member
Join Date: Nov 2008
Old 01-18-2010 , 12:40   Re: Storing kills as "points"
Reply With Quote #6

Well, yeah I want them to be stored but I also need them to show up as points for a menu.
Smile #Fail is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 01-18-2010 , 13:01   Re: Storing kills as "points"
Reply With Quote #7

Quote:
Originally Posted by Smile #Fail View Post
Well, yeah I want them to be stored but I also need them to show up as points for a menu.
Yeah well... There is plugin called "pointsystem" that gives points for each kill.
matsi is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-19-2010 , 04:05   Re: Storing kills as "points"
Reply With Quote #8

Sorta like XP 1 XP = 1 Kill.. Then you can view or buy off a menu using your XP(Points)?
Doc-Holiday is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-19-2010 , 08:17   Re: Storing kills as "points"
Reply With Quote #9

Use a global array for each player and hook DeathMsg or Ham_Killed and give the killer points with each kill?
__________________
Bugsy is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-19-2010 , 08:35   Re: Storing kills as "points"
Reply With Quote #10

This will block deathmsg on team-kill.
PHP Code:
register_messageget_user_msgid"DeathMsg" ) , "fwDeathMsg" );

public 
fwDeathMsgmsg_id msg_dest msg_entity )
{
    new 
iKiller get_msg_arg_int);
    new 
iVictim get_msg_arg_int);

    return ( ( 
iKiller && iVictim ) && ( iKiller != iVictim ) && ( get_user_teamiKiller ) == get_user_teamiVictim ) ) ) ? PLUGIN_HANDLED PLUGIN_CONTINUE;

__________________

Last edited by Bugsy; 01-19-2010 at 09:00.
Bugsy 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 09:23.


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