[Pedido] txdname e texturename
#1

Estava precisando fazer um SetObjectMaterial com armas, mas pra isso preciso dos txdname e texturename de 6 itens:
DESERT
348

SHOTGUN
349

SPAZ
351

MP5
353

AK
355

M4
356

RIFLE
357

SNIPER
358

Alguйm poderia pegar pra mim? Porque meu map editor estб crashando e nгo sei como fazer ele rodar no linux...
Se tiver outro meio de pegar isso tambйm por favor me avisem.
Reply
#2

Код HTML:
Model: desert_eagle
Model Textures: 
Material: 0 split: 0 Tex: desert_eagle2
Material: 0 split: 0 Alp: desert_eagle2
Material: 0 split: 0 Tex: muzzle_texture4
Material: 0 split: 0 Alp: muzzle_texture4

TXD textures:
muzzle_texture4
desert_eagleicon
desert_eagle2
Код HTML:
Model: chromegun
Model textures:
Material: 0 split: 0 Tex: gun_chrome_shot2
Material: 0 split: 0 Alp: gun_chrome_shot2
Material: 0 split: 0 Tex: muzzle_texture4
Material: 0 split: 0 Alp: muzzle_texture4

TXD textures:
muzzle_texture4
gun_chrome_shot2
chromegunicon
Код HTML:
Model shotgspa
Model textures:
Material: 0 split: 0 Tex: gun_spas12
Material: 0 split: 0 Alp: gun_spas12
Material: 1 split: 1 Tex: gun_trigs_16col
Material: 1 split: 1 Alp: gun_trigs_16col
Material: 0 split: 0 Tex: muzzle_texture4
Material: 0 split: 0 Alp: muzzle_texture4

TXD textures:
shotgspaicon
muzzle_texture4
gun_trigs_16col
gun_spas12
Код HTML:
Model: mp5lng
Model textures:
Material: 0 split: 0 Tex: gun_mp5_LONG2
Material: 0 split: 0 Alp: gun_mp5_LONG2
Material: 0 split: 0 Tex: muzzle_texture4
Material: 0 split: 0 Alp: muzzle_texture4

TXD textures:
muzzle_texture4
mp5lngicon
gun_mp5_LONG2
Код HTML:
Model: ak47
Model textures:
Material: 0 split: 0 Tex: ak47
Material: 0 split: 0 Alp: ak47
Material: 0 split: 0 Tex: muzzle_texture4
Material: 0 split: 0 Alp: muzzle_texture4

TXD textures:
muzzle_texture4
ak47icon
ak47
Код HTML:
Model: m4
Model textures:
Material: 0 split: 0 Tex: gun_m4
Material: 0 split: 0 Alp: gun_m4
Material: 0 split: 0 Tex: muzzle_texture4
Material: 0 split: 0 Alp: muzzle_texture4

TXD texture:
muzzle_texture4
M4icon
gun_m4
Код HTML:
Model: cuntgun
Model texture: 
Material: 0 split: 0 Tex: countryside_rifle
Material: 0 split: 0 Alp: countryside_rifle
Material: 0 split: 0 Tex: muzzle_texture4
Material: 0 split: 0 Alp: muzzle_texture4

TXD texture:
muzzle_texture4
cuntgunicon
countryside_rifle
aquele +rep
Reply
#3

o meu +rep vai receber tava precisando mesmo.
Reply
#4

Te reputei, mas como seria?

PHP код:
                new txdname[30], texturename[30];
                if(
imodel == 24) {
                    
txdname "desert_eagle";
                    
texturename "muzzle_texture4";
                }
                else if(
imodel == 29) {
                    
txdname "mp5lng";
                    
texturename "muzzle_texture4";
                }
                else if(
imodel == 25) {
                    
txdname "chromegun";
                    
texturename "muzzle_texture4";
                }
                else if(
imodel == 27) {
                    
txdname "shotgspa";
                    
texturename "muzzle_texture4";
                }
                else if(
imodel == 30) {
                    
txdname "ak47";
                    
texturename "muzzle_texture4";
                }
                else if(
imodel == 31) {
                    
txdname "m4";
                    
texturename "muzzle_texture4";
                }
                else if(
imodel == 33) {
                    
txdname "cuntgun";
                    
texturename "muzzle_texture4";
                }
                else if(
imodel == 34) {
                    
txdname "???";
                    
texturename "muzzle_texture4";
                }
                if(
DropInfo[i][dropItype] == 2SetDynamicObjectMaterial(DropInfo[i][dropObject], 0GetGunObjectID(imodel), txdnametexturenameCOLOR_BRONZE);
                else if(
DropInfo[i][dropItype] == 3SetDynamicObjectMaterial(DropInfo[i][dropObject], 0GetGunObjectID(imodel), txdnametexturenameCOLOR_SILVER);
                else if(
DropInfo[i][dropItype] == 4SetDynamicObjectMaterial(DropInfo[i][dropObject], 0GetGunObjectID(imodel), txdnametexturenameCOLOR_GOLD);
                else if(
DropInfo[i][dropItype] == 5SetDynamicObjectMaterial(DropInfo[i][dropObject], 0GetGunObjectID(imodel), txdnametexturenameCOLOR_PLATINUM); 
Reply
#5

o que vocк esta tentando fazer?
Reply
#6

Quote:
Originally Posted by iLordGG
Посмотреть сообщение
o que vocк esta tentando fazer?
Tenho um sistema de tintas nas armas, que dai quando dropasse a arma se ela tivesse tinta, jogasse outra por cima com colorido, por isso preciso das armas, pra jogar por cima.
Reply
#7

Preciso de:
txdname The name of the txd file which contains the replacement texture (use "none" if not required)
texturename The name of the texture to use as the replacement (use "none" if not required)

Como eu vi na wiki de SetObjectMaterial
https://sampwiki.blast.hk/wiki/SetObjectMaterial
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)