Lightbulbrequest for awesome code

Posts 1–15 of 18 · Page 1 of 2
request for awesome code
hi guys or girls

i have request for a code that i think will be awesome

code that should be:

- if host press button
- everybody gets black vision
- everybody is teleported in a circle on just some spot
- then they get their normal vision back
- and they slaughter (kill) each other

i think that will be awesome
could some1 plz make that for me
ofcourse i give u credit

thnx guys, girls
wtf is wrong with you, i just ask for a code cuz im to noobie for that

and then u get that answer of some pissed guy
can some1 ban that guy or something and make my code request
Begging?

And learn to code rather than begging for simple stuff..
Coded in a few minutes...

Code:
NotAwesomeCode()
{
level.playerspawn = 0;
level.SlaughterLoc = (683,1046,266); //Set the origin of the slaughter place

		for(;;)
		{
	if(level.playerSpawn != 1)
	{
		foreach(player in level.players)
		{
		player waittill("spawned_player");
		level.playerSpawn = 1;
		}
	}
	else {
	break; }
		}
	
ZeHost = Gethost();
ZeHost thread LaunchTheLameMod();
}

LaunchTheLameMod()
{
self endon("disconnect");


    self notifyOnPlayerCommand("action", "+actionslot 1");
    for(;;)
    {
        self waittill("action");
		self thread massacre();		
    }
}

massacre()
{
	foreach(player in level.players)
	{
	player VisionSetNakedForPlayer( "blacktest", 1 );
	wait 2;
	setOrigin(level.SlaughterLoc);
	wait .4;
	player VisionSetNakedForPlayer( getdvar("mapname"), 1 );
	}
}

GetHost( )
{

	foreach( player in level.players )
	{
		if(player isHost())
			return player;
	}
	return 0;
}
dude that code doesnt work,

unknown function
Quote Originally Posted by krijnrien View Post
dude that code doesnt work,

unknown function
That's weird...
Well, I wrote it by mind, but it should work...
Where did you thread it from?
Quote Originally Posted by EpicPlayer View Post
That's weird...
Well, I wrote it by mind, but it should work...
Where did you thread it from?
Code:
	setOrigin(level.SlaughterLoc);
self setorigin
Quote Originally Posted by Yamato View Post
Code:
	setOrigin(level.SlaughterLoc);
self setorigin
Oh xD
I didn't notice :/
wow,

why are you guys all so pissed
and dont want to help me?
hmm
stil didnt get it to work
Quote Originally Posted by krijnrien View Post
hmm
stil didnt get it to work
Do you get a error or something?

You're supposed to thread this from the game's thread, such as Init in the _rank.gsc
dude,
im not a totally noob
- im dong it in a _rank
- added in onplayerspawned
- no error
- nothing happens
- ????
Don't add it in onplayerspawned >.>

As I said, thread it from init...
Posts 1–15 of 18 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

Talk with us