peilis mod
peilis mod
Sveiki,gal zino kas is kur knife parsisiusti kaip eini i apacia isai ir kruvina?radau bet netoks koks noriu pvz kaip zm serve?
-- 2016 Spa 22 18:05 --
ir pluginuka gal prie to pacio kad pasikeistu:)
-- 2016 Spa 22 18:05 --
ir pluginuka gal prie to pacio kad pasikeistu:)
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: peilis mod
https://forums.alliedmods.net/showthread.php?p=96783 tai jaigu nori kitokio knife
tos dalies biski nesupratau eini i apacia ir jis kruvina
kad atsiustu naujus
ir kad pakeistu i naujus cia pasikeisk
![Šypsosi :)](./images/smilies/smile.gif)
kad atsiustu naujus
Code: Select all
precache_model("models/tavo_modelis.mdl") // pries papjaunantprecache_model("models/tavo_modelis2.mdl") // papjovius kitoks
ir kad pakeistu i naujus cia pasikeisk
Code: Select all
public chuckyknife(id){ new clip, ammo, wpnid = get_user_weapon(id,clip,ammo) if (wpnid == CSW_KNIFE) { entity_set_string(id, EV_SZ_viewmodel, "models/tavo_modelis.mdl") } return PLUGIN_HANDLED} public chuckyknifewob(id){ new clip, ammo, wpnid = get_user_weapon(id,clip,ammo) if (wpnid == CSW_KNIFE) { entity_set_string(id, EV_SZ_viewmodel, "models/tavo_modelis2.mdl") } return PLUGIN_HANDLED}
Re: peilis mod
O jai deti ten su tuo pluginu kur davei nuoroda nepasikeis?
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: peilis mod
ten kur daviau nuoroda tai yra skinas knife o kai papjauni pakeicia i toki pati tik kruvinaneris111 wrote:O jai deti ten su tuo pluginu kur davei nuoroda nepasikeis?
![Šypsosi :)](./images/smilies/smile.gif)
Re: peilis mod
Dekingas.
-- 2016 Spa 24 11:40 --
Gal kas zino graziu ginklu is kur parsisiusti?
-- 2016 Spa 24 11:40 --
Gal kas zino graziu ginklu is kur parsisiusti?
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: peilis mod
taip zinau numeciau tau nuoroda i pmneris111 wrote:Dekingas.
-- 2016 Spa 24 11:40 --
Gal kas zino graziu ginklu is kur parsisiusti?
![Šypsosi :)](./images/smilies/smile.gif)
Re: peilis mod
Aciu.o plugino reik?
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: peilis mod
na taip http://amxmodx.lt/viewtopic.php?f=17&t=7505neris111 wrote:Aciu.o plugino reik?
Re: peilis mod
Su knife pasidariau,o su ginklais tas pats pluginas?
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: peilis mod
neris111 wrote:Su knife pasidariau,o su ginklais tas pats pluginas?
CSW_M4A1
cia nsustatai koki gun keis siuo atveju emka jaigu
if(weapon == CSW_M4A1)
visiems jaigu if(get_user_flags(id) & Flagas && weapon == CSW_M4A1)
tai tik turintiesm flaga #define Flagas ADMIN_LEVEL_H
= t privilegija Code: Select all
#include <cstrike>#include <engine> #define Flagas ADMIN_LEVEL_H //tavo vip flagas public plugin_init(){ register_event("CurWeapon","CurWeapon","be","1=1");} public plugin_precache(){ precache_model("models/naujas/v_knife.mdl"); precache_model("models/naujas/p_knife.mdl"); precache_model("models/naujas/v_m4a1.mdl"); precache_model("models/naujas/p_m4a1.mdl"); } public CurWeapon(id){ new weapon = read_data(2); if(get_user_flags(id) & Flagas && weapon == CSW_KNIFE) // turintiesm flag { entity_set_string(id, EV_SZ_viewmodel, "models/naijas/v_knife.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/naujas/p_knife.mdl") } if(weapon == CSW_M4A1) // ginklas { entity_set_string(id, EV_SZ_viewmodel, "models/naujas/v_m4a1.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/naujas/p_m4a1.mdl") }}
Who is online
Users browsing this forum: No registered users and 1 guest