Question with entrances
#1

Hi im creating entrances system and I would like to ask you how should I do that if there's a player in entrance enter or exit that he could enter/exit with [ENTER] key..That's my code:
Код:
forward Tunelis(tekstas[],Float:IejimasX,Float:IejimasY,Float:IejimasZ,Float:IsejimasX,Float:IsejimasY,Float:IsejimasZ,interjeras);
public Tunelis(tekstas[],Float:IejimasX,Float:IejimasY,Float:IejimasZ,Float:IsejimasX,Float:IsejimasY,Float:IsejimasZ,interjeras)
{
	new msg[256];
	format(msg,sizeof(msg),"[%s]\n[ENTER]",tekstas);
	Create3DTextLabel(msg,0x008080FF,IejimasX,IejimasY,IejimasZ,10.0, 0, 0);
	new msg1[256];
	format(msg1,sizeof(msg1),"[%s IЉĖJIMAS]\n[ENTER]",tekstas);
	Create3DTextLabel(msg1,0x008080FF,IsejimasX,IsejimasY,IsejimasZ,10.0, 0, 0);
	print("[TUNELIAI] Uћkrauti");
	return 1;
}
I know that I have to do something in OnPlayerKeyStateChange but I cant manage to work it out by myself
Reply


Messages In This Thread
Question with entrances - by Burning - 09.08.2014, 12:28
Re: Question with entrances - by kamiliuxliuxliux - 09.08.2014, 12:39
Re: Question with entrances - by Burning - 09.08.2014, 12:41
Re: Question with entrances - by kamiliuxliuxliux - 09.08.2014, 12:43
Re: Question with entrances - by Burning - 09.08.2014, 12:44
Re: Question with entrances - by kamiliuxliuxliux - 09.08.2014, 12:52
Re: Question with entrances - by Burning - 09.08.2014, 14:55
Re: Question with entrances - by SKAzini - 09.08.2014, 15:44

Forum Jump:


Users browsing this thread: 2 Guest(s)