Raised This Month: $ Target: $400
 0% 

global values, player's indexes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 11-30-2009 , 10:34   global values, player's indexes
Reply With Quote #1

Yet another neewbies request here

so an example:
PHP Code:
new g_name[32]

public 
client_putinserver(id) {
get_user_name(idg_namecharsmax(name))
set_task(2.0"somefunc, id, _, _, "b")
}

public somefunc(id) {
set_hudmessage(210, 105, 30, 0.01, 0.76, 0, _, 1.9,_, 0.1, -1 )
show_hudmessage(id, "
Your name: %s", g_name)

this script must show you some hudmess with your name, but when new player connects in hudmess you will see his name and hudmess will be shown to all players.
Can anybody tell me how to prevent this?
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
 



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