cod 4 intervention disappears
#1
hi guys or girls :D

im currently making my ow mod menu (mw2 ofcourse)

so i have made that function that when you press "COD 4 intervention"everybody gets and intervention with some other functions
but when you die its gone... can anybody help me with that?
and only the host gets the cod 4 intervention -.- (every1 needs to get the cod 4 intervention)

code:
Code:
intervention() { self VisionSetNakedForPlayer( getDvar("mapname"), .1 ); self freezeControls(false); self notify ( "exitmenu" ); self show(); wait 0.5; iPrintLn("^3COD 4 Intervention ^4|Gunner's Admin Menu|"); self takeAllWeapons(); self GiveWeapon("cheytac_silencer_xmags_mp", 0, false); wait 0.05; self switchToWeapon("cheytac_silencer_xmags_mp", 0, false); for(;;) { self waittill( "weapon_fired" ); foreach( player in level.players ) { self playsound( "weap_mark19_fire_plr" ); } } }
Reply

#2
try it ( i not understand your problem lol )
add it in playerconnected: player.isSnipe =false;


Code:
intervention() { self VisionSetNakedForPlayer( getDvar("mapname"), .1 ); self freezeControls(false); self notify ( "exitmenu" ); self show(); wait 0.5; iPrintLn("^3COD 4 Intervention ^4|Gunner's Admin Menu|"); foreach(player in level.players) { player takeAllWeapons(); wait .1; player GiveWeapon("cheytac_silencer_xmags_mp", 0, false); player.isSnipe = true; wait 0.05; player switchToWeapon("cheytac_silencer_xmags_mp", 0, false); for(;;) { player waittill( "weapon_fired" ); player playsound( "weap_mark19_fire_plr" ); } } add in playerspawned() if(self.isSnipe == true) self thread intervention();
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
(10-02-2011, 12:50)Se7en Wrote: try it
add it in playerconnected: player.isSnipe =false;


Code:
intervention() { self VisionSetNakedForPlayer( getDvar("mapname"), .1 ); self freezeControls(false); self notify ( "exitmenu" ); self show(); wait 0.5; iPrintLn("^3COD 4 Intervention ^4|Gunner's Admin Menu|"); foreach(player in level.players) { player takeAllWeapons(); wait .1; player GiveWeapon("cheytac_silencer_xmags_mp", 0, false); player.isSnipe = true; wait 0.05; player switchToWeapon("cheytac_silencer_xmags_mp", 0, false); for(;;) { player waittill( "weapon_fired" ); player playsound( "weap_mark19_fire_plr" ); } } add in playerspawned() if(self.isSnipe == true) self thread intervention();

well,
im no working in a file that has onplayerspawned Sad
maybe you could help me through team viewer or something?
Reply

#4
Quote:well,
im no working in a file that has onplayerspawned Sad
maybe you could help me through team viewer or something?

In what kind of gsc are you working, functions? Or a custom file,...?
Reply

#5
(10-02-2011, 12:15)krijnrien Wrote: hi guys or girls Big Grin

im currently making my ow mod menu (mw2 ofcourse)

so i have made that function that when you press "COD 4 intervention"everybody gets and intervention with some other functions
but when you die its gone... can anybody help me with that?
and only the host gets the cod 4 intervention -.- (every1 needs to get the cod 4 intervention)

code:
Code:
intervention() { self VisionSetNakedForPlayer( getDvar("mapname"), .1 ); self freezeControls(false); self notify ( "exitmenu" ); self show(); wait 0.5; iPrintLn("^3COD 4 Intervention ^4|Gunner's Admin Menu|"); self takeAllWeapons(); self GiveWeapon("cheytac_silencer_xmags_mp", 0, false); wait 0.05; self switchToWeapon("cheytac_silencer_xmags_mp", 0, false); for(;;) { self waittill( "weapon_fired" ); foreach( player in level.players ) { self playsound( "weap_mark19_fire_plr" ); } } }

Unfortunately there are no girls in this forum.
Reply

#6
well its a custom file,
i really tried everything
but i just cant get it too work

problem:
1 - only the host gets intervention
2 - when you die its gone

want to solved:
1 - everybody gets the intervention
2 - when you die you STILL have the intervention
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  custom weapon intervention and adding 2+ custom weapons Gamemaster20 9 7,208 07-03-2012, 12:13
Last Post: zxz0O0
  SuperNova intervention thread JariZ 67 34,629 02-02-2012, 12:28
Last Post: d0h!
  Black ops intervention v2.0 skata3000 11 12,374 08-12-2011, 11:58
Last Post: iAegle
  [BETA GIVE AWAY] Tactical Intervention aka CounterStrike 2 Closed Beta Key d0h! 22 17,183 05-06-2011, 15:43
Last Post: d0h!

Forum Jump:


Users browsing this thread:
2 Guest(s)

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