• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

(Request) Check position script for tfs 0.4

Marko999x

ArchezOt soon
Premium User
Joined
Dec 14, 2017
Messages
3,974
Solutions
103
Reaction score
3,106
Location
Germany
Hey Otland I would like to request a script since I cant find it anywhere on otland :p

as the title says: check position script.
what do I mean with check position?

if a player says as explain the command !position it will apear on chat the position where the players stand atm. as explain 1000,1002,7 you know
if im not wrong does archlight have it xD

whats the point of that script?

To find bugs easier and faster than waiting for a god to show him the position :D thanks
 
Solution
Hey Otland I would like to request a script since I cant find it anywhere on otland :p

as the title says: check position script.
what do I mean with check position?

if a player says as explain the command !position it will apear on chat the position where the players stand atm. as explain 1000,1002,7 you know
if im not wrong does archlight have it xD

whats the point of that script?

To find bugs easier and faster than waiting for a god to show him the position :D thanks
I hope this is what you mean. I would verify the xml entry is going to work with your distro by comparing it with other lines in the script.

talkactions/talkactions.xml
XML:
<talkaction words="!position;/position" event="script" value="current_position.lua"/>
...
Hey Otland I would like to request a script since I cant find it anywhere on otland :p

as the title says: check position script.
what do I mean with check position?

if a player says as explain the command !position it will apear on chat the position where the players stand atm. as explain 1000,1002,7 you know
if im not wrong does archlight have it xD

whats the point of that script?

To find bugs easier and faster than waiting for a god to show him the position :D thanks
I hope this is what you mean. I would verify the xml entry is going to work with your distro by comparing it with other lines in the script.

talkactions/talkactions.xml
XML:
<talkaction words="!position;/position" event="script" value="current_position.lua"/>

talkactions/scripts/current_position.lua
LUA:
function onSay(cid, words, param, channel)
    local position = getPlayerPosition(cid)
    local position_string = "Your current position is: " .. position.x .. ", " .. position.y .. ", " .. position.z
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, position_string)
    return true
end
 
Solution
I hope this is what you mean. I would verify the xml entry is going to work with your distro by comparing it with other lines in the script.

talkactions/talkactions.xml
XML:
<talkaction words="!position;/position" event="script" value="current_position.lua"/>

talkactions/scripts/current_position.lua
LUA:
function onSay(cid, words, param, channel)
    local position = getPlayerPosition(cid)
    local position_string = "Your current position is: " .. position.x .. ", " .. position.y .. ", " .. position.z
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, position_string)
    return true
end

Thats what i needed :D thanks you really much
 
Back
Top