Raised This Month: $32 Target: $400
 8% 

Player Models API


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development        Approver:   ConnorMcLeod (74)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-22-2008 , 11:44   Player Models API
Reply With Quote #1

Players Models API




.: Description :.

Two natives that let you coders [re]set players models in your plugins


.: Natives :.

  • fm_set_user_model(index, model[], [ bSetModelIndex ])
  • fm_reset_user_model(index)


.: Stocks :.

  • get_user_model(index, model[], len)


.: Modules :.

Fakemeta


.: Credits :.


orangutanz who found out this method for his chickenmod edition.

Attached Files
File Type: inc playermodel.inc (328 Bytes, 2322 views)
File Type: sma Get Plugin or Get Source (set_player_model.sma - 4758 views - 3.5 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-30-2012 at 01:36.
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2008 , 13:07   Re: Player Models API
Reply With Quote #2

Since this is the center of model setting, I suggest also adding fm_get_user_model(index, model[], len).
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-22-2008 , 13:14   Re: Player Models API
Reply With Quote #3

get_user_info(id, "model", model, len)

get_user_model stock added in include file.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-15-2012 at 00:12.
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2008 , 13:23   Re: Player Models API
Reply With Quote #4

That works, too.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 11-22-2008 , 15:13   Re: Player Models API
Reply With Quote #5

Don't know what this plugin does...

__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 11-22-2008 , 17:39   Re: Player Models API
Reply With Quote #6

Quote:
Originally Posted by crazyeffect View Post
Don't know what this plugin does...

If you don't know don't post..

Connor, great natives =), add fm_get_user_model plz xD
__________________
IneedHelp is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 11-22-2008 , 18:50   Re: Player Models API
Reply With Quote #7

Quote:
Originally Posted by IneedHelp View Post
If you don't know don't post..

Connor, great natives =), add fm_get_user_model plz xD
Quote:
Originally Posted by connorr View Post
get_user_info(id, "model", len)
__________________

Community / No support through PM
danielkza is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 11-22-2008 , 20:40   Re: Player Models API
Reply With Quote #8

Oh. Didn't read that :/ sry
__________________
IneedHelp is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 11-22-2008 , 21:33   Re: Player Models API
Reply With Quote #9

Thanks
Got my Player model work on TS now
Rirre is offline
[email protected]
Member
Join Date: Oct 2008
Location: China,Shanghai
Old 11-24-2008 , 09:21   Re: Player Models API
Reply With Quote #10

Nice work,connorr!
Very useful and a good example of dynamic native.
Learning......
tomcash@263.net is offline
Send a message via MSN to tomcash@263.net
Reply


Thread Tools
Display Modes

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 18:37.


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