[Qfunction] How Do You Show a Users name in a command,

daydie

Banned
Banned
Golden Oldie
Aug 26, 2004
635
0
103
If i was going to make a Command in Q Function,

With GMexecute Hair <NAME> 1

how do i make it so who ever has or who ever wants a hair cut,
Can have 1,

I have used these commands but no luck:

<$username>
%s
%d


Does any1 have the command for this,

/daydie
 

wanabee

Golden Oldie
Golden Oldie
Jul 10, 2004
723
4
155
newbury
If i was going to make a Command in Q Function,

With GMexecute Hair <NAME> 1

how do i make it so who ever has or who ever wants a hair cut,
Can have 1,

I have used these commands but no luck:

<$username>
%s
%d


Does any1 have the command for this,

/daydie

sorry maybe jumping the gun a bit but wouldnt it be easier to use the beauty npc script.
 
Upvote 0

Dave85

LOMCN Veteran
Veteran
Jan 20, 2006
267
2
45
Hair Style Script:
=========================================
[@main]
#IF
gender man
#ACT
goto @Male
#ELSEACT
goto @Female

[@Male]
#SAY
Hi <$USERNAME> fancy a hair cut?\ \ \
<Bald/@hair1> - <Normal/@hair2> \ \
<Close/@exit>

[@Female]
#SAY
Hi <$USERNAME> fancy a hair cut?\ \ \
<Dark Blue/@hair1> - <Normal/@hair2> \ \
<Close/@exit>

[@hair1]
#ACT
HAIRSTYLE 0
close

[@hair2]
#ACT
HAIRSTYLE 1
close

=======================================

This is what is used to changed hair styles.

p.s. to see a players name in a npc script its cap sencetive <$USERNAME>
 
Upvote 0

lifco

Untrusted Member
Legendary
Golden Oldie
Loyal Member
Jul 6, 2004
3,400
66
175
UK/Italy
For one GMEXECUTE is not used in dm2 servers

second you could do it like this, make a item that is clickable then it will gen the script you could get a msg coming up in the chat box and change the hair at the same time

its a shame coz say with 1.9 and hero files you could just use CMD and set it to @hair or something or like i said a clickable item

lif
 
Upvote 0

daydie

Banned
Banned
Golden Oldie
Aug 26, 2004
635
0
103
i use clickable items, Its just the @hair <name> (1-4)

And i cannot use normal script since my DM2 normal one is not coded.

ill try Self see if it works, and btw GMexecute works on my DM2 dunno why, (SVN) EvilMir.
 
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
GMEXECUTE works just fine... unless its been removed recently...
 
Upvote 0

MiloFoxburr

LOMCN VIP
VIP
Mar 23, 2003
7,276
207
350
Dublin, Ireland
For one GMEXECUTE is not used in dm2 servers

second you could do it like this, make a item that is clickable then it will gen the script you could get a msg coming up in the chat box and change the hair at the same time

its a shame coz say with 1.9 and hero files you could just use CMD and set it to @hair or something or like i said a clickable item

lif

Lifco don't spread false information please

GMEXECUTE works fine in the DM2 files

DM2 also has the STDModeFunc script which allows NPC scripts to be executed when you double click an item
 
Last edited:
Upvote 0

lifco

Untrusted Member
Legendary
Golden Oldie
Loyal Member
Jul 6, 2004
3,400
66
175
UK/Italy
i tho GMEXECUTE did not work on 2.3, when it comes to 2.3 servers i dont know tons :) but saying that, not much has changed from the files i use,
iam sorry if i got it wrong this time,

lif
 
Upvote 0

mazz

Dedicated Member
Dedicated Member
Aug 6, 2008
193
2
45
If i was going to make a Command in Q Function,

With GMexecute Hair <NAME> 1

how do i make it so who ever has or who ever wants a hair cut,
Can have 1,

I have used these commands but no luck:

<$username>
%s
%d


Does any1 have the command for this,

/daydie

Ive had this problem before Its <$USERNAME> not <$username>
its case senitive



EVILD
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
why have u bumped a thread over 2years old?
Shes good at doing things like that you see, also spamming the help section thread when she could just keep it all in one.
I have been trying to say this to mods, but iceman just loves to give me infractions I guess :001_smile:
 
Upvote 0