Quote:
amx _ playermodel _ set [steamid | ip | botname] [#modelindex] | [model1] [model2] | [uniquemodel]
1)Set lines the same well as described in model.ini (without quotes)
Examples:
amx _ playermodel _ set 127.0.0.1 urban gign
amx _ playermodel _ set *BOTDEFAULT #2
amx _ playetmodel _ set STEAM _ 0:0:1234567 predator2
Could you tell me this part, what meanings are there to write the materials into in model.ini?
Is that meaning as this player enters my Server that will turn into [#modelindex].[model1] [model2]or[uniquemodel] ?
|
Check this example:
Code:
amx_playermodel_set STEAM _ 0:0:1234567 predator2 t800
"amx_playermodel_set" is how you edit models.ini through console during a match. This command will add the following line in models.ini
Code:
"STEAM _ 0:0:1234567" "predator2" "t800"
Which means: whenever a player with that id (STEAM _ 0:0:1234567) enters the server, change his player model to "predator2" when he's a terrorist or to "t800" if he's a ct. (check models.ini or the first post for alternative formats).
These models in the example, t800.mdl and predator2.mdl, must be precached in order to be set to a player. You must insert them in the proper folder;
i.e cstrike/models/player/t800/t800.mdl or if you are using czero, the path would be like that czero/models/player/predator2/predator2.mdl (note that the model container folder has the same name as the model without the extension).
When you type that command in console, if the model has been precached the target client model will change during the match; if it hasn't been precached, it will only take effect on next map, or if the current map is restarted.
You may only set (human) players by steamid or ip. To track players easier you may do the following:
Suppose you want to change Gaben's model,
Code:
amx_playermodel_set &Gaben "gabenT" "gabenCT"
"&Gaben" will be replaced by Gaben' steamid and you'll get the same effect as in 1st example. Of course it will only work if Gaben is playing in your server.
Check the other commands and options in 1st post.