Help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Normalguy

Active Member
Apr 19, 2018
98
0
0
Skript Version: lastest
Skript Author: Bensku
Minecraft Version: any

code:
on packet:
if event-string is "PacketPlayInPositionLook" or "PacketPlayInLook":
if {maker.%player%} is true:
set {_pitchml} to player's pitch
set {_pitchm2} to round({_pitchml})
add {_pitchm2} to {aim::*}
send "&3[MashineLearning] &3%{_pitchm2}%" to player
on packet:
if event-string is "PacketPlayInPositionLook" or "PacketPlayInLook":
if {maker.%player%} is false:
set {_pitch1} to player's pitch
set {_pitch2} to round({_pitch1})
if {aim::*} contains "%{_pitch2}%":
send "HAX"
This is not completed. it didn't says HAX
sorry it is hard to explain. This is learing thing it save pitch and round it and save it in the variable {aim::*}
if player's pitch is in the {aim::*} send HAX
 
Could you paste your code into a code block please? Its quite hard to read.

If I am understanding this correct (sorry i have never used packets) I would assume you need to add who you are sending "hax" to... like to player? To an admin?
 
Sorry this is my iPad. It saves rounded pitches in the (aim::*) and if player’s rounded pitch is In the variable it will say hax to player
[doublepost=1525625719,1525625661][/doublepost]I tryed it many times but doesn’t say hax
 
send "hax" to player

or try: broadcast "hax" , in order to check if your skript is working at all
 
your list variable contains syntax is not correct. this is a know bug. use this instead:

code_language.skript:
if contains({aim::*}, player) is true:
      broadcast "hax"
[doublepost=1525791211,1525791176][/doublepost]message "hax" to player
 
Status
Not open for further replies.