我正在玩 Garry's Mod,我正在尝试制作一个 e2 芯片,该芯片允许我将枪支添加到价格表中,例如“!name store 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)