Page 6 of 6 FirstFirst ... 456
Results 51 to 52 of 52

Thread: Give Weapon (but only once?)

  1. #51
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    207

    Default

    Quote Originally Posted by ViPER View Post
    Also, since your taking away everything why not -

    Code:
                    if(local.player.dmteam == axis)
                    {
                    local.player takeall
                    local.player give models/weapons/kar98sniper.tik
                    local.player thread death
                    }
                    else if(local.player.dmteam == allies)
                    {               
                    local.player takeall
                    local.player give models/weapons/springfield.tik
                    local.player thread death
                    }

    This script is a lot better, it doesn't work completely correctly, but, at least it's getting closer, I tried all the allied weapons (USA) and it works correctly, I tried all the German weapons (and the Kar98 rifle works, but, when I send "kill" in console I respawn without the "only sniper" and I get Rifle, plus grenades and pistol, only with this slot, when I choose all the other weapons, it works correctly, I get the Sniper Kar98 scoped).

  2. #52
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    207

    Default

    Quote Originally Posted by verruguitens View Post
    This script is a lot better, it doesn't work completely correctly, but, at least it's getting closer, I tried all the allied weapons (USA) and it works correctly, I tried all the German weapons (and the Kar98 rifle works, but, when I send "kill" in console I respawn without the "only sniper" and I get Rifle, plus grenades and pistol, only with this slot, when I choose all the other weapons, it works correctly, I get the Sniper Kar98 scoped).
    I tried again and it doesn't work, in all the weapons it does the same, at the beginning it puts the default weapons and when I give it restart then it puts the snipa, it doesn't work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •