Raised This Month: $51 Target: $400
 12% 

[REQ] AWP model


Post New Thread Reply   
 
Thread Tools Display Modes
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-25-2016 , 02:39   Re: [REQ] AWP model
Reply With Quote #11

Try this:

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

#define NEW_MODEL    "models/v_awp_new.mdl"

public plugin_init( )
{
    
register_plugin"Awp model""1.0""Craxor" );
    
register_event("CurWeapon""cdxw""be""1=1");
}

public 
cdxwid )
{
    if( 
has_all_flags(id"o" ) && get_user_weaponid ) == CSW_AWP )
    {
        
set_pevidpev_viewmodel2NEW_MODEL );
    }

At this line:
Code:
#define NEW_MODEL   "models/v_awp_new.mdl"

You will find the new weapon model Name and location for set it.

Test and tell my if is working.

Note: That wiill you need a new awp name located in models/ with name "v_awp_new.mdl".
Craxor is offline
Send a message via ICQ to Craxor
JusTGo
Veteran Member
Join Date: Mar 2013
Old 01-25-2016 , 04:45   Re: [REQ] AWP model
Reply With Quote #12

Quote:
Originally Posted by Craxor View Post
Try this:

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

#define NEW_MODEL    "models/v_awp_new.mdl"

public plugin_init( )
{
    
register_plugin"Awp model""1.0""Craxor" );
    
register_event("CurWeapon""cdxw""be""1=1");
}

public 
cdxwid )
{
    if( 
has_all_flags(id"o" ) && get_user_weaponid ) == CSW_AWP )
    {
        
set_pevidpev_viewmodel2NEW_MODEL );
    }

At this line:
Code:
#define NEW_MODEL   "models/v_awp_new.mdl"

You will find the new weapon model Name and location for set it.

Test and tell my if is working.

Note: That wiill you need a new awp name located in models/ with name "v_awp_new.mdl".
you should precashe the new model
__________________
JusTGo is offline
Basakot
Junior Member
Join Date: Jan 2015
Location: Resita, Romania
Old 01-25-2016 , 07:47   Re: [REQ] AWP model
Reply With Quote #13

Does not work, giving me an error when i try to buy the weapon, thanks for trying.
Basakot is offline
Send a message via Skype™ to Basakot
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-25-2016 , 12:24   Re: [REQ] AWP model
Reply With Quote #14

Quote:
Originally Posted by Basakot View Post
Does not work, giving me an error when i try to buy the weapon, thanks for trying.
You should provide us with the error message if you want it to be fixed.
klippy is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 01-25-2016 , 14:42   Re: [REQ] AWP model
Reply With Quote #15

Quote:
Originally Posted by KliPPy View Post
That's why he posted in the Suggestions forum instead of Scripting Help. He most likely has no knowledge of programming, and is seeking help from someone who does.
The way I see it, this is more of a Scripting Help topic.
redivcram is offline
Adventx
Member
Join Date: Feb 2014
Location: Romania
Old 01-25-2016 , 14:59   Re: [REQ] AWP model
Reply With Quote #16

Try this plugin https://forums.alliedmods.net/showthread.php?t=250244
Adventx is offline
Send a message via Yahoo to Adventx
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-26-2016 , 03:14   Re: [REQ] AWP model
Reply With Quote #17

Lol, please escuse me JustGO, thanks.


Now you can use, i'm sure is working perfect:

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

#define NEW_MODEL    "models/v_awp_new.mdl" 

public plugin_init( ) 

    
register_plugin"Awp model""1.0""Craxor" ); 
    
register_event("CurWeapon""cdxw""be""1=1"); 


public 
plugin_precache()
{
    
precache_model(NEW_MODEL);
}
public 
cdxwid 

    if( 
has_all_flags(id"o" ) && get_user_weaponid ) == CSW_AWP 
    { 
        
set_pevidpev_viewmodel2NEW_MODEL ); 
    } 

Craxor is offline
Send a message via ICQ to Craxor
Basakot
Junior Member
Join Date: Jan 2015
Location: Resita, Romania
Old 01-26-2016 , 12:03   Re: [REQ] AWP model
Reply With Quote #18

Yep, works. Thanks guys for the help!
Basakot is offline
Send a message via Skype™ to Basakot
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 06:22.


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