Raised This Month: $ Target: $400
 0% 

global values, player's indexes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 11-30-2009 , 14:01   Re: global values, player's indexes
Reply With Quote #11

Values are per player and update only at map change ?

if so:

PHP Code:
#include <amxmodx>
 
new g_szValue[33][32/* set 32 to max strlen of your value, leave 33 as it is */
 
public client_putinserver(id)
{
     
/* assign g_szValue[id] */
 
     
set_task(2.0"showValue"id__"b")
}
 
public 
client_disconnect(id)
     
remove_task(id)
 
public 
showValue(id)
{
     
set_hudmessage(210105300.010.760_1.9_0.1, -1)
     
show_hudmessage(id"Value: %s"g_szValue[id])

__________________
Hunter-Digital 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 13:43.


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