Raised This Month: $ Target: $400
 0% 

Get full player info


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 01-15-2009 , 01:07   Get full player info
Reply With Quote #1

Hey all,

How can I get full player info(current frags,deaths,weapon,ammo,armor,money) to set it later from those values.
AoD90 is offline
Send a message via MSN to AoD90
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 01-15-2009 , 01:46   Re: Get full player info
Reply With Quote #3

Thanks.

Now this. How to get info of ALL players and later how to set their info.
I tried smt like this:
Code:
    new players[32],num,i
    get_players(players,num)
    for(i = 0; i <= num; i++)
    {
        if (is_user_connected(i))
        {
           cs_get_user_money(i)
        }
     }
but it doesn't working.

@EDITED

Last edited by AoD90; 01-15-2009 at 10:58.
AoD90 is offline
Send a message via MSN to AoD90
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-15-2009 , 07:59   Re: Get full player info
Reply With Quote #4

Show full code.
Dores is offline
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 01-15-2009 , 11:36   Re: Get full player info
Reply With Quote #5

EDITED
AoD90 is offline
Send a message via MSN to AoD90
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-15-2009 , 11:44   Re: Get full player info
Reply With Quote #6

Don't know how you want it to be used later, but it can be done with global variables. Here's an example:
Code:
new money[33];
public plugin_init()
   //...
 
public function()
{
   new max_players = get_maxplayers();
   for(new i = 1; i <= max_players; i++)
                money[i] = cs_get_user_money(i)
}
SnoW is offline
Send a message via MSN to SnoW
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-15-2009 , 13:16   Re: Get full player info
Reply With Quote #7

@ AoD90: Please search next time. All of your questions so far have been answered on the Function Wiki
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-17-2009 , 06:20   Re: Get full player info
Reply With Quote #8

How about freezing players and stopping round time?
SnoW is offline
Send a message via MSN to SnoW
AoD90
Senior Member
Join Date: Jul 2008
Location: Ugljevik/RS/BIH
Old 01-17-2009 , 07:16   Re: Get full player info
Reply With Quote #9

That would be good but how to stop roundtime? Remove objectives and later set them back without restarting? Is there a way?
AoD90 is offline
Send a message via MSN to AoD90
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-17-2009 , 07:51   Re: Get full player info
Reply With Quote #10

Quote:
Originally Posted by AoD90 View Post
That would be good but how to stop roundtime? Remove objectives and later set them back without restarting? Is there a way?
How about increasing it once per sec?
SnoW is offline
Send a message via MSN to SnoW
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 01:47.


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