Solved A simple and quick 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 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!

Status
Not open for further replies.

Before3_

New Member
Apr 19, 2019
9
0
0
24
First of all, hello. I am in need of your help and I hope you can do it. (I'm new to Skript)
Finally, let's start.

I need to know how to give permission from skript to users of my server for example.

command / mdll1:
trigger:
if player's balance is below 100000:
send "You do not have enough money" to player
stop
else:
remove 100000 from player's balance
set {shop} to true
send "& aCompra Exitosa" to player
make console execute "pex user% player% add mmedals.novato"

I'm using the permission plugin. PermissionEx
I await your answers.
 
Last edited:
First of all, hello. I am in need of your help and I hope you can do it. (I'm new to Skript)
Finally, let's start.

I need to know how to give permission from skript to users of my server for example.

command / mdll1:
trigger:
if player's balance is below 100000:
send "You do not have enough money" to player
stop
else:
remove 100000 from player's balance
set {shop} to true
send "& aCompra Exitosa" to player
make console execute "pex user% player% add mmedals.novato"

I'm using the permission plugin. PermissionEx
I await your answers.

First of all, I recommend you use <=, <, >, >= instead of "below" or that kind of thing..
code_language.skript:
#from
if player's balance is below 100000:
#to
if player's balance < 100000:
Second, be sure to use the variables well. If a variable is intended for the player's personal use, add the %player% after the first value of the variable, for example:
code_language.skript:
#If a variable is directed to a player.
set {shop.%player%} to true#Or the value you want.
#if the variable is to general use. Then
set {shop} to true#Or the value you want.
And Finally, if you have the SharpSk 1.6.3, you can put:
code_language.skript:
pex add perm[ission] %string% to %sender%
Keep in mind that in skript, both "String" and "Text" can mean the same thing (in my point of view).
String is the meaning you will give, for example:
code_language.skript:
pex add permission "youserver.chatformat.vip" to player#Or "%player%" | argument 1, or event-player.
 
Last edited:
First of all, hello. I am in need of your help and I hope you can do it. (I'm new to Skript)
Finally, let's start.

I need to know how to give permission from skript to users of my server for example.

command / mdll1:
trigger:
if player's balance is below 100000:
send "You do not have enough money" to player
stop
else:
remove 100000 from player's balance
set {shop} to true
send "& aCompra Exitosa" to player
make console execute "pex user% player% add mmedals.novato"

I'm using the permission plugin. PermissionEx
I await your answers.
You have a typo in your command, use `"pex user %player% add mmedals.novato"` instead
 
Status
Not open for further replies.