Push a key problem

Posts 1–8 of 8 · Page 1 of 1
Push a key problem
Here is my mod,

I want to make an cordinate mod so everyone can get cordinates easily so they can create forts.

I only have one problem,
this is the code;
Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;


self notifyOnPlayerCommand();
	self notifyOnPlayerCommand("5", "+actionslot 2");
	{
		{
		printPlayerPos()
		{
		self endon("death");
		self endon("disconnect");
	
			for(;;)
			{
				self iPrintLnBold(self getOrigin());
				wait 10.00;
			}
		}
	}
}

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

	for(;;)
	{
		self thread printPlayerPos();
		self notifyOnPlayerCommand();
	}
}
The problem is the following, pressing 5 does nothing! While pressing 5 should bring up the cordinates!

Help please?
-Kamielftw
Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;


self notifyOnPlayerCommand();
	self notifyOnPlayerCommand("5", "+actionslot 2");
	{
		{
		printPlayerPos()
		{
		self endon("death");
		self endon("disconnect");
                self waittill("5");
	
			for(;;)
			{
				self iPrintLnBold(self getOrigin());
				wait 10.00;
			}
		}
	}
}

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

	for(;;)
	{
		self thread printPlayerPos();
		self notifyOnPlayerCommand();
	}
}
That should do it.
Quote Originally Posted by CainFool View Post
Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;


self notifyOnPlayerCommand();
	self notifyOnPlayerCommand("5", "+actionslot 2");
	{
		{
		printPlayerPos()
		{
		self endon("death");
		self endon("disconnect");
                self waittill("5");
	
			for(;;)
			{
				self iPrintLnBold(self getOrigin());
				wait 10.00;
			}
		}
	}
}

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

	for(;;)
	{
		self thread printPlayerPos();
		self notifyOnPlayerCommand();
	}
}
That should do it.

Dude, u changed nothing?
Edit: nvm

EDIT2: Both still do not work...
leave me a vm if i can mark this as solved
Quote Originally Posted by Archangel View Post
leave me a vm if i can mark this as solved
Sure! I will do that, on my iPod right now so cant test atm, however Its 23:00 here so I'll post it tomorrow.
I'm currently not at home right now so I can't test it but it should work:
Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;


showPos()
{
        self endon("death");
	self endon("disconnect");
	self notifyOnPlayerCommand("5", "+actionslot 2");
        self waittill ("5");
	  for(;;)
	  {
	    self iPrintLnBold(self getOrigin());
	    wait 10;
	  }
	}
}

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

	for(;;)
	{
		self waittill("spawned_player");
		self thread showPos();
	}
}
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us