already solved

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

Cucu

Member
Jul 12, 2024
1
0
1
I want to make a skript, where if I kill a player, the victim's gamemode changes to adventure mode and the attacker gets an emerald with the victim's name.

First, I wanted to do the gamemode change part:

on damage of a player by player:
on death of %victim%:
execute console command "gamemode adventure %victim%"

When I reload the skript, I get an error message saying "Can't understand this section: on death of %victim%:"
I tried in with death of player/%player%/victim/%victim% and none of those work. Any tips on it?