Get full player info
Hey all,
How can I get full player info(current frags,deaths,weapon,ammo,armor,money) to set it later from those values. |
Re: Get full player info
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@EDITED |
Re: Get full player info
Show full code.
|
Re: Get full player info
EDITED
|
Re: Get full player info
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]; |
Re: Get full player info
And later to sat that amoun of money to that player?
|
Re: Get full player info
@SnoW: You forgot to check if the player is connected, which will cause issues.
@AoD: cs_set_user_money(id, amount). If you want all of the players: Code:
|
Re: Get full player info
@ AoD90: Please search next time. All of your questions so far have been answered on the Function Wiki
|
Re: Get full player info
Quote:
It was just a code part, if he adds it to spawn event, then he first checks if the user is alive, if somewhere is needed only connect-check then he checks that. And because it was for all those information, if he wants to get healths, also shouldn't use connect-check. |
| All times are GMT -4. The time now is 01:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.