Raised This Month: $ Target: $400
 0% 

two diffrent skins ak47 model for player


Post New Thread Reply   
 
Thread Tools Display Modes
Tote
Senior Member
Join Date: Jul 2023
Old 08-24-2023 , 12:47   Re: two diffrent skins ak47 model for player
Reply With Quote #11

Quote:
Originally Posted by Hakim Azizov View Post
thanks bro for motivating me) i hope you and other friends will help. thanks
Done. Made it as u said.
Changes made at line 123 and line 124
EDIT: Not sure what you meant, But i made it to not reset weapon (remove) weapon because it was resetting weapon on player spawn thats why it was resetting guns i guess. Maybe if its not what u want take look at stock UTIL DROPWEAPON in your code
Attached Files
File Type: sma Get Plugin or Get Source (rpgmode.sma - 34 views - 19.0 KB)

Last edited by Tote; 08-24-2023 at 12:49.
Tote is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 08-24-2023 , 15:58   Re: two diffrent skins ak47 model for player
Reply With Quote #12

Quote:
Originally Posted by Tote View Post
Done. Made it as u said.
Changes made at line 123 and line 124
EDIT: Not sure what you meant, But i made it to not reset weapon (remove) weapon because it was resetting weapon on player spawn thats why it was resetting guns i guess. Maybe if its not what u want take look at stock UTIL DROPWEAPON in your code

bro thanks for helping but this code isnot as i wanted.

Simply i want:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <fakemeta_util>
#include <engine>

new g_ak47_1[33], g_ak47_2[33]
new const 
g_ak47_1_model[] = "models/zombie_plague/v_ak47_anubis.mdl"
new const g_ak47_2_model[] = "models/zombie_plague/v_ak47_elite.mdl"

public plugin_init(){
    
RegisterHam(Ham_Spawn"player","ham_spawn_post",1)
    
register_event("CurWeapon""event_cur_weapon""be""1=1")
}
public 
plugin_precache(){
    
precache_model(g_ak47_1_model)
    
precache_model(g_ak47_2_model)
}
public 
event_cur_weapon(id)
{
    if (
g_ak47_1[id] && get_user_weapon(id) == CSW_AK47)
        
set_pev(idpev_viewmodel2g_ak47_1_model)
    if (
g_ak47_2[id] && get_user_weapon(id) == CSW_AK47)
        
set_pev(idpev_viewmodel2g_ak47_2_model)
}

public 
ham_spawn_post(id)
{
    if(!
is_user_alive(id))
        return
    
    
g_ak47_1[id] = give_item(id"weapon_ak47")
    
g_ak47_2[id] = give_item(id"weapon_ak47")

To get two ak47 in the same time.

Please helpp mee or i will be crazyy

Last edited by Hakim Azizov; 08-24-2023 at 15:59.
Hakim Azizov is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 08-26-2023 , 05:53   Re: two diffrent skins ak47 model for player
Reply With Quote #13

willn't i get any help?
Hakim Azizov is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-26-2023 , 22:40   Re: two diffrent skins ak47 model for player
Reply With Quote #14

If i have tine its done this week
__________________
Jhob94 is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 08-27-2023 , 10:09   Re: two diffrent skins ak47 model for player
Reply With Quote #15

do you have reapi?
lexzor is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 08-28-2023 , 04:29   Re: two diffrent skins ak47 model for player
Reply With Quote #16

Quote:
Originally Posted by lexzor View Post
do you have reapi?
no bro. i dont use. rather my cs 1.6 doesn't see it (modules and other reapi files)

Errors of reapi :

L 05/04/2022 - 03:24:22: [ReAPI] ReGameDll: isn't available
L 05/04/2022 - 03:24:22: [AMXX] Displaying debug trace (plugin "ze_infection_effect.amxx")
L 05/04/2022 - 03:24:22: [AMXX] Run time error 10: native error (native "rg_remove_item")
L 05/04/2022 - 03:24:22: [AMXX] [0] ze_infection_effect.sma::task_remove_effect`

Last edited by Hakim Azizov; 08-28-2023 at 04:31.
Hakim Azizov is offline
Hakim Azizov
Member
Join Date: Mar 2023
Old 09-15-2023 , 11:53   Re: two diffrent skins ak47 model for player
Reply With Quote #17

Waiting for plugin :d
Hakim Azizov is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 09-15-2023 , 12:12   Re: two diffrent skins ak47 model for player
Reply With Quote #18

It’s on new plugins submissions. Virtual Weapon Slots
__________________
Jhob94 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 18:17.


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