Raised This Month: $ Target: $400
 0% 

entity model name over current model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Prelithe
Junior Member
Join Date: Mar 2005
Old 04-12-2005 , 05:12   entity model name over current model
Reply With Quote #1

Hey,

this is basically a problem relating the esf and the model changing.

You know how since evm cannot change the models directly, they change the model by adding an entity over the prvious entity and making it invisible ( i think...), well how do I retrieve the name of the model that the entity is using?
Prelithe is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-12-2005 , 15:30  
Reply With Quote #2

If you have the entity index, use entity_get_string(ent,EV_SZ_model,variable,ma xLen)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Prelithe
Junior Member
Join Date: Mar 2005
Old 04-13-2005 , 03:07  
Reply With Quote #3

I tryed that, but it gets this crap that isn't useful...here's my code can u help see what may be the problem?

Code:
public DetectModel(id) {    new model[33]    entity_get_string(id,EV_SZ_model,model,32)    client_print(id, print_center, model)     return PLUGIN_HANDLED; }
Prelithe is offline
Lord of Destruction
Member
Join Date: Sep 2004
Old 04-13-2005 , 07:26  
Reply With Quote #4

For ESF Model detecting use modelindex or get_user_info( id, "model", ... )
if you are trying to find the corresponding 'Avatar' in Evolution ... Well, good luck in seeking
Lord of Destruction is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-13-2005 , 15:59  
Reply With Quote #5

Quote:
Originally Posted by Prelithe
it gets this crap that isn't useful...
Mind showing us what "this crap" is?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Prelithe
Junior Member
Join Date: Mar 2005
Old 04-13-2005 , 16:35  
Reply With Quote #6

thx Lord of Destruction i'll try it out when i get home

@ Avalanche - it's like random symbols
Prelithe is offline
Prelithe
Junior Member
Join Date: Mar 2005
Old 04-14-2005 , 02:37  
Reply With Quote #7

could you at least give me a hint...i aint trying to make what you guys are doin, i just wanna detect the model....if you check the corona-bytes forum you'll see what i'm trying to accomplish
Prelithe is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 04-27-2005 , 04:59  
Reply With Quote #8

YOu need to find model array name of theirs.
CoreAvatars[33] I think.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Reply



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 10:01.


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