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

#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");

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

#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



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 3,939 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 8,992 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 6,608 09-15-2013, 16:43
Last Post: DidUknowiPwn
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,888 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 4,143 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 6,504 04-20-2013, 09:13
Last Post: Dominator56
  [Release] Black Ops ZM & MP weapon ID's JariZ 7 36,068 03-01-2013, 22:04
Last Post: JariZ
  [Request] Weapon info Hud hillbilly 5 5,911 03-01-2013, 02:30
Last Post: archit
Video [Tutorial] (Video) How to create the Beretta (or any CoD4's weapon) in Black Ops hitmax 19 18,732 02-08-2013, 00:18
Last Post: Gamemaster20
  Weapon IDs? jarniboi 4 4,306 02-07-2013, 21:51
Last Post: 8q4s8

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.