Jump to content

  •  

Photo

Abuse kill "Stop killing player"


Best Answer Cretino, 04 April 2016 - 10:08 PM

I think is it you want:
 

Spoiler


@EDIT

 

Fixed little mistake. :)

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 Photons

Photons

    Newbie

  • Members
  • Pip
  • 6 posts
  • Github:dicko

Posted 04 April 2016 - 09:05 AM

 

-    script    killing    -1,{
OnPCKillEvent:
    set .@counttopunish, 3; // 3 times kill in same minute = OUT
    if ( killedrid == getcharid(3) ) end;
    attachrid killedrid;
    .@charid = getcharid(0);
    attachrid killerrid;
    setd "@count"+ gettime(2) +"_"+ killedrid, getd( "@count"+ gettime(2) +"_"+ killedrid ) +1;
    if ( getd( "@count"+ gettime(2) +"_"+ killedrid ) < .@counttopunish )
        getitem2 7420, 1,1,0,0, 254, 0, .@charid % pow(2,16), .@charid / pow(2,16);
    else {
        announce strcharinfo(0) +", Stop killing "+ rid2name(killedrid) +" !!!", 0;
        warp "Save", 0,0;
    }
    end;
}
 

 


This is from annieruru~ script but instead of counting the skulls killed by a player. i want it to count the kills of a player in one minute can someone help me? thanks

Edited by Photons, 04 April 2016 - 09:07 AM.


#2 Photons

Photons

    Newbie

  • Members
  • Pip
  • 6 posts
  • Github:dicko

Posted 04 April 2016 - 02:41 PM

bump



#3 Cretino

Cretino

    Advanced Member

  • Members
  • PipPipPip
  • 50 posts

Posted 04 April 2016 - 10:08 PM   Best Answer

I think is it you want:
 

Spoiler


@EDIT

 

Fixed little mistake. :)


Edited by Cretino, 04 April 2016 - 10:13 PM.


#4 Photons

Photons

    Newbie

  • Members
  • Pip
  • 6 posts
  • Github:dicko

Posted 05 April 2016 - 05:14 AM

Thank youuuuuuuuuuuuuuuu :)






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 38 user(s)