Help with PVP skript

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

zAngryyy

Member
Feb 9, 2021
2
0
1
24
Hi guys, i need your help :emoji_grinning:
I need a skript that when a player kills another one in a certain region, he execute two commands.
Else (if a player is in another region) he will executes two other actions.
I think is will be similiar as this one:

On player kill:
If player is in region1
{
Execute player comando 1
Wait 1 tick
Execute player comando 2
}
else if player is in region2
{
Execute player comando 3
Wait 1 tick
Execute player comando 4
}
 
Code:
on death:
    attacker is a player
    victim is a player
    if victim is in region "myregion1":
        execute console command "say %attacker% killed %victim%"
        ....
    else if ...:
Use attacker/victim, wait, execute console command
 
Code:
on death:
     attacker is a player
     victim is a player
     if "%region at victim%" is "region":
          broadcast "%attacker% killed %victim%" //let's not spam the console with kill/death messages, but rather use the vanilla function for broadcasting messages
     else:
          //do something else ..
 
Status
Not open for further replies.