Quote:
Originally Posted by Celena Luna
usually you can just get model from cs_get_user_model
But if you need to hook when the model change, I think you might need to work with Ham_Keyvalue but I am not sure since there ain't any document or thread about this
|
I just do something depending on current player model and every time I do this, I retrieve player model with natives. I thought that I could minimize unnecessary calls by getting model name only when it was set or changed and read it from array.
PHP Code:
new szModel[33];
get_user_info(id, "model", szModel, charsmax(szModel));
__________________