Raised This Month: $204 Target: $400
 51% 

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 , 12: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: sma Get Plugin or Get Source (set_player_model.sma - 3756 views - 3.5 KB)
File Type: inc playermodel.inc (328 Bytes, 1699 views)
__________________
- tired and retired -

Last edited by ConnorMcLeod; 10-30-2012 at 02:36.
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2008 , 14: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 , 14: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 -

Last edited by ConnorMcLeod; 02-15-2012 at 01:12.
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2008 , 14: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 , 16: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 , 18: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 , 19: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 , 21: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 , 22: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 , 10: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 10:52.


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