Hi, i'm creating a race map and just want to create a little trolling script where people teleport somewhere else when they write "delete map" in the chat.
The problem: I usually work in the map editor / local server and if I write "delete map" I get a debugmessage ("what the :O").
If I write "delete map" in a hosted server of a friend it does work and teleport me.
My questions: why the script works different and can I make it work in the map editor somehow?
function memestars(text, element)
if string.match(text, "delete map") then
if isElement(element) and getElementType(element) == 'player' then
bigbitch = getPedOccupiedVehicle(element)
setElementPosition(bigbitch, 5202, 256, 87)
else
iprint("wat the :O: ", text, element)
end
end
end
addEventHandler("onChatMessage", root, memestars)