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?
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?