09.08.2014, 12:28
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:
I know that I have to do something in OnPlayerKeyStateChange but I cant manage to work it out by myself
Код:
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; }