Raised This Month: $ Target: $400
 0% 

Hostages and skins.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-16-2009 , 13:11   Re: Hostages and skins.
Reply With Quote #1

VEN's plugin is perfectly fine. All you need to add is the keyvalue for the "skin" and "body".
__________________
Arkshine is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 08-16-2009 , 14:27   Re: Hostages and skins.
Reply With Quote #2

Thanks for your reply

I do not mean to ask a silly question but how and where I could set the body and/or skin? Because I didn't understand VEN's Plugin.

I think here, in this part of VEN's code. But what I must add here?
Code:
    if (first_kvd) {
        // KVD contain four data member

        // first is the classname
        set_kvd(GLOBAL_KVD_HANDLE, KV_ClassName, g_hostage_entity)

        // second is the key name
        set_kvd(GLOBAL_KVD_HANDLE, KV_KeyName, g_model_key)

        // third is the key value
        set_kvd(GLOBAL_KVD_HANDLE, KV_Value, g_hostages_models[g_hostage_current])

        // this is used by the game mod, will be set to 1 if the KVD is correct
        set_kvd(GLOBAL_KVD_HANDLE, KV_fHandled, _:false)

        // fire our KVD
        dllfunc(DLLFunc_KeyValue, ent, GLOBAL_KVD_HANDLE)
    }
Can you add an example for me, please? Sorry for my ignorance. ;)

EDIT:
Ohhh man . I'm so stupid . Many thanks Arkshine.


Leon

Last edited by Leon M.; 08-17-2009 at 01:44.
Leon M. is offline
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 15:13.


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