What's new

Solved A Mod idea

  • Thread starter EG Nightmare
  • Start date
  • Views 536
Status
Not open for further replies.
E

EG Nightmare

Enthusiast
Messages
140
Reaction score
12
Points
70
Sin$
7
I was thinking it would be a good idea for someone to make this new mod!
How it works
When someone calls in a nuke and they earn another one instead of it saying Nuke already inbound it adds time to the nuke

If someone csn work on making this can you send me the code? That would be great





Thank You!
 
E

EG Nightmare

Enthusiast
Messages
140
Reaction score
12
Points
70
Sin$
7
It would but im sorta tired of letting extra nukes go to waste too!
 
Upvote 0
teh1337

teh1337

Some call me the Dear Leader-most just say teh1337
Experienced Veteran Programmer Frame In Gold
Messages
1,555
Reaction score
2,224
Points
375
Sin$
0
Umm....




Make a state ment like if self.kills==25{
self waittill("dpad_left");

x=getDvarInt( "scr_nuketimer" );
setDvar( "scr_nuketimer", x+100);
}

Sorry a bit tired so cant give u great answer
 
Upvote 0
Code Junky

Code Junky

Enthusiast
Messages
427
Reaction score
86
Points
95
Sin$
0
Umm....




Make a state ment like if self.kills==25{
self waittill("dpad_left");

x=getDvarInt( "scr_nuketimer" );
setDvar( "scr_nuketimer", x+100);
}

Sorry a bit tired so cant give u great answer
It would be something like:

if self.kills==25
{
self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" );
self waittill("dpad_left");
x=getDvarInt( "scr_nuketimer" );
setDvar( "scr_nuketimer", x+100);
}
 
Upvote 0
E

EG Nightmare

Enthusiast
Messages
140
Reaction score
12
Points
70
Sin$
7
Do i need to do the dpad setting or can i just add

setDvar( "scr_nuketimer", x+100);
 
Upvote 0
Code Junky

Code Junky

Enthusiast
Messages
427
Reaction score
86
Points
95
Sin$
0
Do i need to do the dpad setting or can i just add

setDvar( "scr_nuketimer", x+100);
I believe it would be...
selfsetclientDvar( "scr_nuketimer",100);
Since you dont declare the value of x you cant use it in the dvar.
Ill look into it after school tomorrow.
 
Upvote 0
Injection

Injection

Enthusiast
Messages
657
Reaction score
82
Points
95
Sin$
0
more like
Code:
if self.kills==25
Newmodidea
{
self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" ); 
{
self waittill("dpad_left");
x=getDvarInt( "scr_nuketimer" );
setDvar( "scr_nuketimer", x+100);
}
}
 
Upvote 0
E

EG Nightmare

Enthusiast
Messages
140
Reaction score
12
Points
70
Sin$
7
Well my dpad settings are full so how do i add this into my Dvars?
 
Upvote 0
M

MaGiicK MoDzZ

Enthusiast
Messages
371
Reaction score
36
Points
85
Sin$
7
Theres a dvar that lets you set how long the nuke timer is? Its basically the same thing, just one one nuke
 
Upvote 0
N

Nickelodeon

Enthusiast
Messages
944
Reaction score
169
Points
125
Sin$
7
more like
Code:
if self.kills==25
Newmodidea
{
self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" ); 
{
self waittill("dpad_left");
x=getDvarInt( "scr_nuketimer" );
setDvar( "scr_nuketimer", x+100);
}
}

Code:
biggerNukeDelay()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "button_x", "+usereload" );

self waittill( "button_x" );
value = getDvarInt( "scr_nuketimer" );
value = value + 60; // add 60 seconds to the timer
setDvar( "scr_nuketimer", value );
self iPrintlnBold( "scr_nuketimer = ", value );
self thread biggerNukeDelay();
}
something like this
 
Upvote 0
Status
Not open for further replies.
Top Bottom
Login
Register