Announcement

Collapse
No announcement yet.

[coding by me]Player position output

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [coding by me]Player position output

    function cmd_test(player)
    local x, y, z = GetPlayerLocation(player)
    AddPlayerChat(player, ("[position] x %f y %f z %f a %f"):format(x,y,z,GetPlayerHeading(player)))
    print(("[position] x %f y %f z %f a %f"):format(x,y,z,GetPlayerHeading(player)))
    end
    AddCommand("save", cmd_test)

    command : /save

    output : Dedicated Server Console And Game Chat Screen

    I copy and use the values ​​in the console window.

    heading value is an player angle value.

    #2
    Nice job! I just tested it and it works great!

    Comment

    Working...
    X