Raised This Month: $ Target: $400
 0% 

Best way to store "points" on each client.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Cream Tea
New Member
Join Date: Oct 2016
Old 03-12-2018 , 05:26   Best way to store "points" on each client.
Reply With Quote #1

Hello, I've been trying for two days to figure this out and still can't so I'm hoping somebody here might be able to direct me.

I'm trying to store points for each client that go up each round, similar to Vs Saxton Hale but not stored as a cookie (So it resets when the map changes).

So far I've come up with having an array variable just called points, declared as
Code:
new points[32];
And then I've hooked onto the event "arena_round_start", which adds up everybody's points by one each round like this.
Code:
        for(new i = 1; i <= GetClientCount(); i++) {
                if(IsClientInGame(i) && !IsFakeClient(i)) {
                        points[i]++;
                }
        }
The problem is when I try setting stuff depending on who has the most points, I feel like it's doing it randomly and not actually on the value of the points.

Am I doing this completely wrong?
Cream Tea is offline
 



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 05:58.


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