Hello guys. I'm trying to get player class health. Tried with:
[CODE]
local class = LookupPlayerClass( ply )
if ( !class ) then return end
ply:SetWalkSpeed( class.WalkSpeed )
ply:SetRunSpeed( class.RunSpeed )
[/CODE]
and with ply.StartHealth. But I did have no sucess. How can I get the player class information?
Other question:
How can I set the player render mod like a shield force? In amxmodx we can put a "shield force" with color on the player's model.
If nobody understood me: [url]http://www.amxmodx.org/doc/index.html?page=source%2Ffunctions%2Ffun%2Fset_user_rendering.htm[/url]
Pretty sure if you want to get info you use ply:Get and not ply:Set, if you want to set the players health, you need to first tell the code what do you mean by "ply".
[QUOTE=Masster;46831151]Pretty sure if you want to get info you use ply:Get and not ply:Set, if you want to set the players health, you need to first tell the code what do you mean by "ply".[/QUOTE]
player.
The player_manager code is locked away.
You can use the baseclass system (since it uses that) to fetch the class table.
baseclass.Get(class_name);
The table isn't a copy, so be careful since you can edit it.
[QUOTE=vexx21322;46832673]The player_manager code is locked away.
You can use the baseclass system (since it uses that) to fetch the class table.
baseclass.Get(class_name);
The table isn't a copy, so be careful since you can edit it.[/QUOTE]
What do you mean: "Locked away". I can't use It?
[QUOTE=Nicksf13;46843132]What do you mean: "Locked away". I can't use It?[/QUOTE]
There are no public methods or fields that would give you such information
[QUOTE=vexx21322;46845939]There are no public methods or fields that would give you such information[/QUOTE]
So how can I register new classes/Get class infomation?
Sorry, you need to Log In to post a reply to this thread.