Help with job

  • 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 comminuty!

    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!

Danillka

New Member
Apr 19, 2023
5
0
1
21
bruh i cant do this. I want make doctor for server and i dont know how, i have plan, pls someone help:emoji_frowning:
1. Player (who need help) type in chat /calldoctor
2. Players with permission doctor send in chat message " *nickname player who need help* need help, he's coordinates *xyz* " help pls!!
 
Not entirely sure what you're going for, but I think this is it.
Code:
command /calldoctor:
  trigger:
    loop all players:
      loop-player has permission "doctor"
      send "%player% need help, he's coordinates %player's location%" to loop-player
 
Not entirely sure what you're going for, but I think this is it.
Code:
command /calldoctor:
  trigger:
    loop all players:
      loop-player has permission "doctor"
      send "%player% need help, he's coordinates %player's location%" to loop-player
i need send coordinates to player with permission doctor, not for all players, btw thx!
 
This does that. The line "loop-player has permission "doctor"" acts like an if statement without creating an extra indent. Any line after that within the same section requires that condition to be met. In other words, it's a wall in that indent that only people with permission "doctor" can pass. Try it out and tell me if it works.