My lua script won't work when I add it. You can get a good example of what I'm trying to do here:
When I type 'orderpizza' in the console, it says that it isn't a command, even though it is right here in the script! Any help?
Code:
//Made by Prisima the Fox
COM_AddCommand("orderpizza", orderpizza)
local function orderpizza(player)
if player.playerstate == PST_DEAD
CONS_Printf(player, "You can't eat pizza while you're
dead.")
return
end
if playing
print(player.name+" has ordered a delicious pizza.")
return
end
end