change any players hp/ap/e.g. and how does i get player id
how do i change all players stats?
i know this code, but how did i get a players id!? set_user_health(id, health) |
Re: change any players hp/ap/e.g. and how does i get player id
PHP Code:
|
Re: change any players hp/ap/e.g. and how does i get player id
Quote:
|
Re: change any players hp/ap/e.g. and how does i get player id
snow - does you mean that get_players() return players id?
and thanks for the code :D |
Re: change any players hp/ap/e.g. and how does i get player id
Quote:
@timian to get a Specific player Id use get_player( ......... ) se amxmodx.inc also if you use the loop put a variable = get_maxplayers() on plugin_init and then replace 32->The_Variable_Name |
Re: change any players hp/ap/e.g. and how does i get player id
Code:
public set_stats { |
Re: change any players hp/ap/e.g. and how does i get player id
set_stats() <- void argument but you need tu put (), also if you only need to put set_user_maxspeed(i, 5.0) and replace the 32. with a variable with get_maxplayers()
|
Re: change any players hp/ap/e.g. and how does i get player id
don't understand!?
would this work!? xD Code:
public set_stats { |
Re: change any players hp/ap/e.g. and how does i get player id
PHP Code:
|
Re: change any players hp/ap/e.g. and how does i get player id
ahh can think i forgot that! :P thanks alot!
|
| All times are GMT -4. The time now is 13:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.