Gmod表达式2文本命令

时间:2016-03-12 06:45:24

标签: garrys-mod

我正在玩Garry的Mod,我试图制作一个e2芯片,允许我将枪支添加到价目表中,例如"!name 商店名称"然后" + AK47- $ 500 "。这是我到目前为止所做的,我似乎无法弄清楚如何让屏幕说出我说的话!

    @name manual prices screen
@inputs Screen:wirelink
@outputs 
@persist A:array Cname:string [M1 M2 M3 M4]:array
@trigger 
runOnChat(1)

Say = owner():lastSaid():explode(" ")

if(Say[1,string] == "+")
{
    chatClk(owner())
        hideChat(1),Screen:writeString("Prices:" ,1,3,100,5,0)
}


if(Say[1,string] == "!name")
{
    Name = owner():lastSaid():explode(" ")(Say[2,string])
    print(Name:name() + " added")
 M4[M4:count()+1,entity] = Player
 Screen[2041] = 1
}

interval(100)

0 个答案:

没有答案