#I need help because i get an issue of theres no player in periodical event
1 messages · Page 1 of 1 (latest)
all players aint a thing bro
every 9 seconds:
loop players:
if "%region at player%" isn't "pvp"
give loop-player 1 of random item out of all items
I assume that would work
but watch out with the
if "%region at player%"
for some reason when u put %region% in quotation makes it seems to say the region name and what world it is. Example say there is a region in world "games" and its called "myregion". Doing send "%region at player%" to player
(say player is in region 1)
it returns this in chat
myregion in world games
@wooden bear
that code it's wrong
on join:
while player is online:
if player isn't in region "pvp":
give player 1 of random item out of all items
wait 9 seconds
it's better to use join event's rather than periodical events
all players is a thing
the only error in the original skript is %region at player% should be %region at loop-player%, but you can switch to the method that SnowUlises1221 shows if you want
zamn
Why use all players when u can use players
because
it's easier to understand your own code
when you re-read it later on
correction: all players is a thing