 |
|
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
|

10-26-2009
, 12:23
Re: set hp by cvar
|
#4
|
Quote:
Originally Posted by DoviuX
ok thx
how can i set this hud message that all can see and how can i detect who buyed and write to the hud message ?
PHP Code:
set_hudmessage( 225, 225, 225, -1.0, 0.29, 2, 6.0, 12.0 ); show_hudmessage( 0, "%s is unstoppable!" );
|
PHP Code:
YourFunction( id ) { new name[32]; get_user_name(id,name,31); set_user_health( id, get_pcvar_num( pCvarHealth ) ); set_hudmessage( 225, 225, 225, -1.0, 0.29, 2, 6.0, 12.0 ); show_hudmessage( 0, "%s is unstoppable!", name); }
__________________
Last edited by <VeCo>; 10-26-2009 at 12:25.
|
|
|
|