ItsMods

Full Version: Stolen Weapons Mod V1.1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
My First mod Cool
Its an very simpel but funny mod Superman

Stolen Weapons V1
if you know an better name, pn me.

Description:
If you kill someone, you will get his weapon.
Thats simpel, but it makes realy fun, if you play it with friends Big Grin

Download:
Megaupload: LINK
Itsmods Direkt: [attachment=1194]

Changelog:
V1.0.1 -> Removed useless code.
V1.0 -> Basic Mod
reminds me what I did to @SE7EN in itsmods mod
Reminds me what I made as a roll in Roll the Dice.


Trivia:
A roll is 1/300 part of the mod
(11-02-2011, 22:04)OrangePL Wrote: [ -> ]reminds me what I did to @SE7EN in itsmods mod

Sorry. I did Not know your Mod... I don't want to make the Same like someone Else. Ididn't have use any of your Code. I have make it by myself.

Now i have seen your Mod. It isn't the Same. My Mod is like, all Players have this Class the hole Time Wink
im not offending you in any way, just telling Wink
Code:
    while(self.myweapon == "none" && self.timesofcheck != 20)
    {
        self.myweapon = self getcurrentweapon();
        self.timesofcheck += 1;
    }
    self.timesofcheck = 0;

this won't work
(11-02-2011, 23:08)AZUMIKKEL Wrote: [ -> ]
Code:
    while(self.myweapon == "none" && self.timesofcheck != 20)
    {
        self.myweapon = self getcurrentweapon();
        self.timesofcheck += 1;
    }
    self.timesofcheck = 0;

this won't work

Why won't work?
On my PC, it works...
Big Grin
Troll
(11-03-2011, 16:13)gumpo03 Wrote: [ -> ]
(11-02-2011, 23:08)AZUMIKKEL Wrote: [ -> ]
Code:
    while(self.myweapon == "none" && self.timesofcheck != 20)
    {
        self.myweapon = self getcurrentweapon();
        self.timesofcheck += 1;
    }
    self.timesofcheck = 0;

this won't work

Why won't work?
On my PC, it works...
Big Grin

On your PC it works because the player's weapon is very rarely "none" ...
(11-03-2011, 16:34)AZUMIKKEL Wrote: [ -> ]
(11-03-2011, 16:13)gumpo03 Wrote: [ -> ]
(11-02-2011, 23:08)AZUMIKKEL Wrote: [ -> ]
Code:
    while(self.myweapon == "none" && self.timesofcheck != 20)
    {
        self.myweapon = self getcurrentweapon();
        self.timesofcheck += 1;
    }
    self.timesofcheck = 0;

this won't work

Why won't work?
On my PC, it works...
Big Grin

On your PC it works because the player's weapon is very rarely "none" ...

Ok i have test it and the mod works without this lines too.
I had add the lines, because, there came often the weapon "none". later i added the lines
Code:
    if(self.myweapon2 != "none")
    {
        self.myweapon = self.myweapon2;
    }
but didn't remove the others.
I will update the upload.

But why won't work?
is "while" not possible in gsc or whats the problem?