AMXX-BG.INFO model_changer.inc Raw include

model_changer.inc

Original include source with line numbers.

Back Download .inc
1 /*
2 Model Changer
3
4 by Hattrick
5 */
6
7 #if defined _model_changer_included
8 #endinput
9 #endif // defined _model_changer_included
10
11 #define _model_changer_included
12
13 #include "svn_version.inc"
14
15 #if AMXX_VERSION_NUM >= 175
16 #pragma reqlib model_changer
17
18 #if !defined AMXMODX_NOAUTOLOAD
19 #pragma loadlib model_changer
20 #endif // !defined AMXMODX_NOAUTOLOAD
21 #else // AMXX_VERSION_NUM < 175
22 #pragma library model_changer
23 #endif // AMXX_VERSION_NUM >= 175
24
25 /*
26 Changes the player's model to the model you want.
27 */
28 native set_user_model( _index, _model[ ] );
29
30 /*
31 Receives the name of the player's model.
32 */
33 native get_user_model( _index, _model[ ], _length );
34
35 /*
36 Resets the player's model.
37 */
38 native reset_user_model( _index );
39