I getting sick of trying, please help me out of me miserie!!! I want to replace the m1 garand for the kar98..serverside, i spend days and nights and when i finaly thought i had it......i get also an kar98 when i choose sniper, help me please..
main: if(self.haskar == 1) end self.haskar = 1 local.team = self.dmteam self take models/weapons/m1_garand.tik self give models/weapons/kar98.tik while(1) { if(self==NULL || self == NIL) { end } if(self.health == 0) { self.haskar = 0 end } if(self.dmteam == spectator) { self.haskar = 0 end } if(self.dmteam != local.team) { self.haskar = 0 end } wait .2 } end
i replaced the m1_garand to the kar98, but when i spawn i have to get the rifle from my pochket first....someone knows the key so i spawn with the weapon in my hand?
weapontrade.scr -------------------------- waitframe local.n = randomint 99999 self weaponcommand dual targetname ("w" + local.n) local.weap = $("w" + local.n).model if(self.dmteam == "allies") { switch(local.weap) { case " models/weapons/m1_garand.tik" : self take " models/weapons/m1_garand.tik" waitframe self give "models/weapons/kar98.tik" break } } self useweaponclass rifle end
@ loeri, if i use self use "models/weapons/kar98.tik" than i get every gun i take a kar98.... and @ zlatko if i try that nothing happens....maybe im way to noobish and do i everything wrong but it seems in my eye an impossible mod, id never seen it btw lol u think its possible?
Start reading: http://www.modtheater.com/threads/give-take-one-weapon-only.20801/page-2 Starting at response #23 I believe by Lamron.
this one must work , got the same , have it out of a map from lameron , found it in the global map, works like a charme
this is the part were Herr Klugscheisser was talking about. //////////////////////////////////////////////////////////////////////// // replace undesired weapon local.oldweapon = "models/weapons/m1_garand.tik" //the weapon you don't want local.newweapon = "models/weapons/delisle.tik" //replace it with this ///////////////////<------------------- replace it with the kar98.tik waitframe local.n = randomint 99999 self weaponcommand dual targetname ("w" + local.n) local.weap = $("w" + local.n).model if(local.weap == local.oldweapon) { self take local.oldweapon wait .1 // works! self give local.newweapon waitframe // self useweaponclass grenade // self useweaponclass pistol self useweaponclass rifle // self useweaponclass smg // self useweaponclass mg // self useweaponclass heavy } end ////////////////////////////////////////////// awsome invention this search button thingy
self takeall waitframe self give "models/weapons/enfield.tik" waitframe self useweaponclass "rifle" end
you can edit like self takeall //// remove all and wont take handgun or nades waitframe self give "models/weapons/enfield.tik" waitframe self useweaponclass "rifle" end
The method written by Lamron and posted by Nami is the best method. You have to execute that from the Raise_Weapon state or Raise_Rifle state in mike_torso
Tks Guys i finaly got rid of the m1_garand , i didnt myself my but my friend -Gazi- Pacrac fixed it for me He putt it in the mefy ft mod, so if someone wants to see it or use it, post it here and i upload the file, tks all for the great replys!!