AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Player Models API (https://forums.alliedmods.net/showthread.php?t=80847)

ConnorMcLeod 11-22-2008 11:44

Player Models API
 
4 Attachment(s)
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.


Exolent[jNr] 11-22-2008 13:07

Re: Player Models API
 
Since this is the center of model setting, I suggest also adding fm_get_user_model(index, model[], len).

ConnorMcLeod 11-22-2008 13:14

Re: Player Models API
 
get_user_info(id, "model", model, len) :mrgreen:

get_user_model stock added in include file.

Exolent[jNr] 11-22-2008 13:23

Re: Player Models API
 
That works, too. :wink:

crazyeffect 11-22-2008 15:13

Re: Player Models API
 
Don't know what this plugin does...

:P

IneedHelp 11-22-2008 17:39

Re: Player Models API
 
Quote:

Originally Posted by crazyeffect (Post 717005)
Don't know what this plugin does...

:P

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

Connor, great natives =), add fm_get_user_model plz xD

danielkza 11-22-2008 18:50

Re: Player Models API
 
Quote:

Originally Posted by IneedHelp (Post 717097)
If you don't know don't post..

Connor, great natives =), add fm_get_user_model plz xD

Quote:

Originally Posted by connorr (Post 716962)
get_user_info(id, "model", len) :mrgreen:


IneedHelp 11-22-2008 20:40

Re: Player Models API
 
Oh. Didn't read that :/ sry

Rirre 11-22-2008 21:33

Re: Player Models API
 
Thanks :D
Got my Player model work on TS now :)

[email protected] 11-24-2008 09:21

Re: Player Models API
 
Nice work,connorr!:)
Very useful and a good example of dynamic native.
Learning......:mrgreen:


All times are GMT -4. The time now is 16:16.

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