Raised This Month: $9 Target: $400
 2% 

[req] edit please


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-13-2021 , 17:27   [req] edit please
Reply With Quote #1

Quote:
/*============================================ ====================================
Библиотеки
============================================= ====================================*/
#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>
/*============================================ ====================================
Загрузка файлов
============================================= ====================================*/
new v_knife [] = "models/jd_knife/v_knife_jd.mdl"
new p_knife [] = "models/jd_knife/p_knife_jd.mdl"
new v_knife2 [] = "models/v_knife.mdl"
new p_knife2 [] = "models/p_knife.mdl"
/*============================================ ====================================
Данные о плагине
============================================= ====================================*/
public plugin_init()
{
register_plugin("VIP KNIFE JD", "1.0", "Jack Daniel`s")
RegisterHam(Ham_Item_Deploy, "weapon_knife", "knife_user", 1)
}

public plugin_precache()
{
precache_model(v_knife)
precache_model(p_knife)
precache_model(v_knife2)
precache_model(p_knife2)
}
/*============================================ ====================================
Гл. Функция
============================================= ====================================*/
public knife_user(wpn)
{
static id; id = get_pdata_cbase(wpn, 41, 4)
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
set_pev(id, pev_viewmodel2, v_knife)
set_pev(id, pev_weaponmodel2, p_knife)
}
else
{
set_pev(id, pev_viewmodel2, v_knife2)
set_pev(id, pev_weaponmodel2, p_knife2)
}
}
/*============================================ ====================================
Концовка
============================================= ====================================*/
can edit not work i not see 3 weapon skins knife degle ak m4 awp
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
Theodore Bagwell
Member
Join Date: Jan 2021
Location: USA
Old 02-14-2021 , 06:04   Re: [req] edit please
Reply With Quote #2

PHP Code:
/*============================================ ====================================
includes
============================================= ====================================*/
#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>
/*============================================ ====================================
Location of models
============================================= ====================================*/
new v_knife [] = "models/jd_knife/v_knife_jd.mdl"
new p_knife [] = "models/jd_knife/p_knife_jd.mdl"
new v_knife2 [] = "models/v_knife.mdl"
new p_knife2 [] = "models/p_knife.mdl"

new v_deagle [] = "models/Yourfolder/v_deagle.mdl"
new p_deagle [] = "models/Yourfolder/p_deagle.mdl"
new v_deagle2 [] = "models/v_deagle.mdl"
new p_deagle2 [] = "models/p_deagle.mdl"

new v_ak47 [] = "models/Yourfolder/v_ak47.mdl"
new p_ak47 [] = "models/Yourfolder/p_ak47.mdl"
new v_ak472 [] = "models/v_ak47.mdl"
new p_ak472 [] = "models/p_ak47.mdl"

new v_m4a1 [] = "models/Yourfolder/v_m4a1.mdl"
new p_m4a1 [] = "models/Yourfolder/p_m4a1.mdl"
new v_m4a12 [] = "models/v_m4a1.mdl"
new p_m4a12 [] = "models/p_m4a1.mdl"

new v_awp [] = "models/Yourfolder/v_awp.mdl"
new p_awp [] = "models/Yourfolder/p_awp.mdl"
new v_awp2 [] = "models/v_awp.mdl"
new p_awp2 [] = "models/p_awp.mdl"
/*============================================ ====================================
Start
============================================= ====================================*/
public plugin_init()
{
register_plugin("VIP KNIFE JD""1.0""Jack Daniel`s")
RegisterHam(Ham_Item_Deploy"weapon_knife""knife_user"1)
RegisterHam(Ham_Item_Deploy"weapon_deagle""deagle_user"1)
RegisterHam(Ham_Item_Deploy"weapon_ak47""ak47_user"1)
RegisterHam(Ham_Item_Deploy"weapon_m4a1""m4a1_user"1)
RegisterHam(Ham_Item_Deploy"weapon_awp""awp_user"1)
}

public 
plugin_precache()
{
precache_model(v_knife)
precache_model(p_knife)
precache_model(v_knife2)
precache_model(p_knife2)
precache_model(v_deagle)
precache_model(p_deagle)
precache_model(v_deagle2)
precache_model(p_deagle2)
precache_model(v_ak47)
precache_model(p_ak47)
precache_model(v_ak472)
precache_model(p_ak472)
precache_model(v_m4a1)
precache_model(p_m4a1)
precache_model(v_m4a12)
precache_model(p_m4a12)
precache_model(v_awp)
precache_model(p_awp)
precache_model(v_awp2)
precache_model(p_awp2)
}
/*============================================ ====================================
Handler
============================================= ====================================*/
public knife_user(wpn)
{
static 
idid get_pdata_cbase(wpn414)
if(
get_user_flags(id) & ADMIN_LEVEL_H)
{
set_pev(idpev_viewmodel2v_knife)
set_pev(idpev_weaponmodel2p_knife)
}
else
{
set_pev(idpev_viewmodel2v_knife2)
set_pev(idpev_weaponmodel2p_knife2)
}
}

public 
deagle_user(wpn)
{
static 
idid get_pdata_cbase(wpn414)
if(
get_user_flags(id) & ADMIN_LEVEL_H)
{
set_pev(idpev_viewmodel2v_deagle)
set_pev(idpev_weaponmodel2p_deagle)
}
else
{
set_pev(idpev_viewmodel2v_deagle2)
set_pev(idpev_weaponmodel2p_deagle2)
}
}

public 
ak47_user(wpn)
{
static 
idid get_pdata_cbase(wpn414)
if(
get_user_flags(id) & ADMIN_LEVEL_H)
{
set_pev(idpev_viewmodel2v_ak47)
set_pev(idpev_weaponmodel2p_ak47)
}
else
{
set_pev(idpev_viewmodel2v_ak472)
set_pev(idpev_weaponmodel2p_ak472)
}
}

public 
m4a1_user(wpn)
{
static 
idid get_pdata_cbase(wpn414)
if(
get_user_flags(id) & ADMIN_LEVEL_H)
{
set_pev(idpev_viewmodel2v_m4a1)
set_pev(idpev_weaponmodel2p_m4a1)
}
else
{
set_pev(idpev_viewmodel2v_m4a12)
set_pev(idpev_weaponmodel2p_m4a12)
}
}

public 
awp_user(wpn)
{
static 
idid get_pdata_cbase(wpn414)
if(
get_user_flags(id) & ADMIN_LEVEL_H)
{
set_pev(idpev_viewmodel2v_awp)
set_pev(idpev_weaponmodel2p_awp)
}
else
{
set_pev(idpev_viewmodel2v_awp2)
set_pev(idpev_weaponmodel2p_awp2)
}
}
/*============================================ ====================================
End
============================================= ====================================*/ 
Theodore Bagwell is offline
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-14-2021 , 06:23   Re: [req] edit please
Reply With Quote #3

Tnx bro i cheh if dis plugin work and say you in her
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-14-2021 , 06:34   Re: [req] edit please
Reply With Quote #4

new v_knife [] = "models/jd_knife/v_knife_jd.mdl"
new p_knife [] = "models/jd_knife/p_knife_jd.mdl"
new v_knife2 [] = "models/v_knife.mdl"
new p_knife2 [] = "models/p_knife.mdl"

new v_deagle [] = "models/Yourfolder/v_deagle.mdl"
new p_deagle [] = "models/Yourfolder/p_deagle.mdl"
new v_deagle2 [] = "models/v_deagle.mdl"
new p_deagle2 [] = "models/p_deagle.mdl"

new v_ak47 [] = "models/Yourfolder/v_ak47.mdl"
new p_ak47 [] = "models/Yourfolder/p_ak47.mdl"
new v_ak472 [] = "models/v_ak47.mdl"
new p_ak472 [] = "models/p_ak47.mdl"

new v_m4a1 [] = "models/Yourfolder/v_m4a1.mdl"
new p_m4a1 [] = "models/Yourfolder/p_m4a1.mdl"
new v_m4a12 [] = "models/v_m4a1.mdl"
new p_m4a12 [] = "models/p_m4a1.mdl"

new v_awp [] = "models/Yourfolder/v_awp.mdl"
new p_awp [] = "models/Yourfolder/p_awp.mdl"
new v_awp2 [] = "models/v_awp.mdl"
new p_awp2 [] = "models/p_awp.mdl"


I not know for knife are 1 model v_knife not haw p model
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-14-2021 , 06:46   Re: [req] edit please
Reply With Quote #5

Plugins are not working server get down
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
Theodore Bagwell
Member
Join Date: Jan 2021
Location: USA
Old 02-14-2021 , 08:56   Re: [req] edit please
Reply With Quote #6

Please use Google Translate and fully explain the problem
Theodore Bagwell is offline
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-14-2021 , 14:15   Re: [req] edit please
Reply With Quote #7

Server go down if i put this plugin in plugins ini and strated!
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-14-2021 , 14:39   Re: [req] edit please
Reply With Quote #8

Because you didn't upload your models. Read the error.

Last edited by OciXCrom; 02-14-2021 at 14:39.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Theodore Bagwell
Member
Join Date: Jan 2021
Location: USA
Old 02-14-2021 , 14:44   Re: [req] edit please
Reply With Quote #9

Are you sure you installed the models? Does the server give an error before running or after running?
Theodore Bagwell is offline
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-16-2021 , 04:07   Re: [req] edit please
Reply With Quote #10

i ulod models, but server chrash and i not see wat haped in concole!
Meybi code haw samting wrong
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
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 18:46.


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