Raised This Month: $ Target: $400
 0% 

Hook player model change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-11-2022 , 21:12   Re: Hook player model change
Reply With Quote #9

Quote:
Originally Posted by MrPickles View Post
You can hook player spawn or round start, then u can save the string with that function, but with the global variable

PHP Code:
new __str_Model[33][33]; // global


public plugin_init() {
        
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
}
public 
fwHamPlayerSpawnPost(id) {
        
get_user_info(id"model"__str_Model[id], 32 );

I think what he mean is he want to hook the moment the model changed.
For example, when your character class change in middle of the round, you can't update the array by anymean, except by using native (if the model change is from other plugins)
__________________
My plugin:

Last edited by Celena Luna; 10-11-2022 at 21:14.
Celena Luna is offline
 



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 15:33.


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