Solved help with victim and attacker

  • 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.
Feb 24, 2017
191
7
0
23
foroendertheth.foroactivo.com
I whant to do like on kill add points to a player but idonkd know how this is what I do

code_language.skript:
on death of player:
    attacker is in "teampvp"
    add 1 to {points.%player%}#I whant to add this to the acttacker
    send "{@logo}&9&lAdd 1 points to your acount"#send this to the attacker

#help me plis
 
I whant to do like on kill add points to a player but idonkd know how this is what I do

code_language.skript:
on death of player:
    attacker is in "teampvp"
    add 1 to {points.%player%}#I whant to add this to the acttacker
    send "{@logo}&9&lAdd 1 points to your acount"#send this to the attacker

#help me plis
Here's the code:

code_language.skript:
    add 1 to {points.%attacker%}
    send "{@logo}&9&lAdd 1 points to your acount" to attacker
 
I whant to do like on kill add points to a player but idonkd know how this is what I do

code_language.skript:
on death of player:
    attacker is in "teampvp"
    add 1 to {points.%player%}#I whant to add this to the acttacker
    send "{@logo}&9&lAdd 1 points to your acount"#send this to the attacker

#help me plis

Almost.

code_language.skript:
on death of player:
    if attacker's region is "teampvp":
        add 1 to {points.%attacker%}
        send "{@logo}&9&lYou have recieved 1 point." to attacker

I'll just assume you're using WorldGuard regions. If not, second line - change it to whatever.
 
Almost.

code_language.skript:
on death of player:
    if attacker's region is "teampvp":
        add 1 to {points.%attacker%}
        send "{@logo}&9&lYou have recieved 1 point." to attacker

I'll just assume you're using WorldGuard regions. If not, second line - change it to whatever.

if attacker's region is "teampvp": this make an error help plis
 
Status
Not open for further replies.