Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with weapon changing?
#1
Hello, I am a beginner to modding. Yea, I already read the "Intro to .gsc modding." can someone please check my code to find any errors? Thanks
Code:
onPlayerSpawned()
{
    self endon("disconnect");

    for(;;)
    {
        self waittill("spawned_player");
                                self giveWeapon ( "famas_mp" );
                                self switchToWeapon( "famas_mp" );
        self setPerk("specialty_Lightweight");
    }
}
My file is also down below.
[Image: mca.png]
Add me on steam! otterm
Reply

#2
(07-11-2011, 03:10)GoldenWrapper Wrote: Hello, I am a beginner to modding. Yea, I already read the "Intro to .gsc modding." can someone please check my code to find any errors? Thanks
Code:
onPlayerSpawned()
{
    self endon("disconnect");

    for(;;)
    {
        self waittill("spawned_player");
                                self giveWeapon ( "famas_mp" );
                                self switchToWeapon( "famas_mp" );
        self setPerk("specialty_Lightweight");
    }
}
My file is also down below.

Try now, Nyan Cat

self giveweapon("famas_mp",0,false);
wait 0.05;
self switchtoweapon("famas_mp",0,false);
self _setperk("specialty_lightweight");
Reply

#3
self setperk("specialty_lightweight");
[Image: lQDUjba.jpg]
Reply

#4
(07-11-2011, 08:42)Brant Aldrige Wrote: Ed Hardy prosecution or formal wear and a testament to the recognition in the eyes of the people around you. Ed Hardy responses to the closing of the hot summer. Ed Hardy UK shorts, available in different colors, with their shirts, shoes and sunglasses are very comfortable and can give a fresh appearance. Ed Hardy clothing can be proclaimed as a quotient of fashion in the true sense of the word now, click our shop to buy designer t-shirts, you may receive big surprise! Our address is the Ed Hardy UK online sale. I am there for you!



---------------------------------------------------------------------------------------

[Image: backflip-500x200px.jpg]
ed hardy swimsuit,ed hardy caps,ed hardy Sneakers

Nyan Cat
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 2,787 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 6,082 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 4,403 09-15-2013, 16:43
Last Post: DidUknowiPwn
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 30,818 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,449 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 2,713 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 4,371 04-20-2013, 09:13
Last Post: Dominator56
  [Release] !weapon Plugin 8q4s8 40 23,823 03-24-2013, 17:02
Last Post: X-Track
  [Release] Black Ops ZM & MP weapon ID's JariZ 7 29,301 03-01-2013, 22:04
Last Post: JariZ
  [Request] Weapon info Hud hillbilly 5 3,605 03-01-2013, 02:30
Last Post: archit

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.