[SOLVED]two codes im looking for

Posts 1–6 of 6 · Page 1 of 1
[SOLVED]two codes im looking for
im looking to add two thing into the gungame mod. one is anti camping witha stepable time limit and an icon if violated. the other is darker maps like in zombie mod. please help me with the codes. im new to the coding and working on learning it just taking me a little because im a hands on learner
Quote Originally Posted by phantom1151 View Post
im looking to add two thing into the gungame mod. one is anti camping witha stepable time limit and an icon if violated. the other is darker maps like in zombie mod. please help me with the codes. im new to the coding and working on learning it just taking me a little because im a hands on learner
i stopped reading after:
gungame mod
did you know that we have a GSC Modding Section Over There? =/
sorry didnt know i placed it in the wrong spot my bad
/Moved to GSC Help/Discussion
I would assume that you know the basics of GSC scripting, anyway, here is a snippet of code you can add for anti-camping:
Code:
doOwnCamper()
{
 self endon("disconnect");
 self endon("death");
 
 for(;;)
 {
 self.before = self getorigin();
 wait 4;
 self.after = self getorigin();
 if( ( distance(self.before, self.after) < 50) ) {
 self iPrintlnBold("^2Move Your Ass Bitch!");
 self.health = int(self.health / 2); }
 if ( self.health == 1 )
 self suicide();
 }
}
Edit the maximum time you can stay in a spot [4] and the radius [50].

As for zombie mod vision, use this:
Code:
self VisionSetNakedForPlayer("icbm", 0);
/Marked as Solved I Guess
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us