25.01.2018, 02:11
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] == 2) SetDynamicObjectMaterial(DropInfo[i][dropObject], 0, GetGunObjectID(imodel), txdname, texturename, COLOR_BRONZE);
else if(DropInfo[i][dropItype] == 3) SetDynamicObjectMaterial(DropInfo[i][dropObject], 0, GetGunObjectID(imodel), txdname, texturename, COLOR_SILVER);
else if(DropInfo[i][dropItype] == 4) SetDynamicObjectMaterial(DropInfo[i][dropObject], 0, GetGunObjectID(imodel), txdname, texturename, COLOR_GOLD);
else if(DropInfo[i][dropItype] == 5) SetDynamicObjectMaterial(DropInfo[i][dropObject], 0, GetGunObjectID(imodel), txdname, texturename, COLOR_PLATINUM);