Monthly Target: $400 Donations: $298
 74% 

Model bugued.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
reidark
Member
Join Date: Jan 2011
Old 04-10-2012 , 22:34   Model bugued.
Reply With Quote #1

Hi guys...
I increase this model in my plugin:

PHP Code:
new viewknife;

new 
KNIFE1_VIEW [] = "models/deathrun/v_knife.mdl";
new 
KNIFE1_PLAYER [] = "models/p_knife.mdl";

public 
Deathrun_Knife(id)
{
        
viewknife get_user_weapon(id);
        {
                
entity_set_string(idEV_SZ_viewmodelKNIFE1_VIEW);
                
entity_set_string(idEV_SZ_weaponmodelKNIFE1_PLAYER);
        }

}

public 
plugin_precache() 
{       
        
precache_model(KNIFE1_VIEW);
        
precache_model(KNIFE1_PLAYER);

But, this model change all skins of guns and grenades.
If i catch one gun, appear the model of knife.

Help me, plis.
reidark is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-10-2012 , 22:43   Re: Model bugued.
Reply With Quote #2

http://forums.alliedmods.net/showpos...46&postcount=2
http://forums.alliedmods.net/showthread.php?t=179389
__________________
Experience Mode: [100%]
HNS Achievements: [50%]
Member Menu: [100%]
Contact me for more info.

Skype:
jonas.schoenmakers
Steam:
Napoleon_be144
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
reidark
Member
Join Date: Jan 2011
Old 04-10-2012 , 23:03   Re: Model bugued.
Reply With Quote #3

I try this:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <nvault> 


#define PLUGIN "model"
#define VERSION "1.0"
#define AUTHOR "reidark"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
gVault nvault_open("weapon_models");
}

public 
plugin_end() {
    
nvault_close(gVault);
}

SaveModels(idCSW_KNIFE"models/deathrun/v_knife.mdl""models/p_knife.mdl");
    new 
steamID[35], weaponName[21], key[64];
    
get_user_authid(idsteamIDcharsmax(steamID));
    
get_weaponname(weaponIDweaponNamecharsmax(weaponName));
    
    
formatex(keycharsmax(key), "%s-%s-v"steamIDweaponName);
    
nvault_set(gVaultkeyv_model);
    
    
formatex(keycharsmax(key), "%s-%s-p"steamIDweaponName);
    
nvault_set(gVaultkeyp_model);
}

GetModels(idweaponIDv_model[], v_model_lenp_model[], p_model_len) {
    new 
steamID[35], weaponName[21], key[64];
    
get_user_authid(idsteamIDcharsmax(steamID));
    
get_weaponname(weaponIDweaponNamecharsmax(weaponName));
    
    
formatex(keycharsmax(key), "%s-%s-v"steamIDweaponName);
    
nvault_get(gVaultkeyv_modelv_model_len);
    
    
formatex(keycharsmax(key), "%s-%s-p"steamIDweaponName);
    
nvault_get(gVaultkeyp_modelp_model_len);
}

if(
v_model[0]) {

}
if(
p_model[0]) {


But it gave a compile error.
Help me.
reidark is offline
Exolent[jNr]
AMX Mod X Moderator
Join Date: Feb 2007
Location: Tennessee
Old 04-11-2012 , 00:05   Re: Model bugued.
Reply With Quote #4

Because you don't know what you're doing.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-11-2012 , 18:13   Re: Model bugued.
Reply With Quote #5

You're not even precaching any models..

+ You're not even setting a model...

+ You don't have any functions where you can set a model..
__________________
Experience Mode: [100%]
HNS Achievements: [50%]
Member Menu: [100%]
Contact me for more info.

Skype:
jonas.schoenmakers
Steam:
Napoleon_be144
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
reidark
Member
Join Date: Jan 2011
Old 04-11-2012 , 19:14   Re: Model bugued.
Reply With Quote #6

Quote:
Originally Posted by Exolent[jNr] View Post
Because you don't know what you're doing.
THIS!
I don't understand nVault and Pawn, sorry
reidark is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 04-11-2012 , 20:13   Re: Model bugued.
Reply With Quote #7

So post in Suggetions/Requests.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Reply


Thread Tools
Display Modes

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 03:16.


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