Raised This Month: $ Target: $400
 0% 

Get full player info


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-15-2009 , 13:14   Re: Get full player info
Reply With Quote #8

@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:
new g_iMaxPlayers; public plugin_init() {     g_iMaxPlayers = get_maxplayers(); } public AoDs_Function() {     for(new i = 1 ; i <= g_iMaxPlayers ; i++)     {         if(is_user_connected(i) && is_user_alive(i))         {             cs_set_user_money(i, amount); // Replace 'amount' with whatever.         }     } }

Last edited by Dores; 01-15-2009 at 13:18.
Dores 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 01:47.


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