Raised This Month: $ Target: $400
 0% 

Detecting Offset Change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-30-2009 , 17:22   Detecting Offset Change
Reply With Quote #1

Is it possible to detect the change of specific offset data and block/change it like in message?

It's for ESF. Offset 1420 holds the name of model player currently has applied.

These are the stocks to get/set model in ESF:
Code:
stock GetModel(Client, Model[], Lenght)         get_pdata_string(Client, 1420, Model, Lenght, 0, 20);   stock SetModel(Client, Model[]) {         static Location[64];         formatex(Location, 63, "models/player/%s/%s.mdl", Model, Model);           set_pdata_string(Client, 1420, Model, -1, 20);         engfunc(EngFunc_SetModel, Client, Location); }
There's no good way on detecting when the game changes player's model in ESF. And if I do that in prethink or server frame, the model is still applied for 1 client's frame and only gets changed back in the second frame. That sucks (imagine a player with low FPS).
__________________
hleV 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 18:21.


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