Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script Func_PVP -1,{
- OnPCKillEvent:
- if(!getmapflag(strcharinfo(3),mf_pvp)) end;
- if (getcharid(3) == killedrid) end;
- #PVPPOINTS += .p[0];
- dispbottom "You won " + .p[0] + " pvp points. New pvp points is " + #PVPPOINTS;
- end;
- OnPCDieEvent:
- if (getcharid(3) == killerrid || strcharinfo(3) != "prontera") end;
- if (#PVPPOINTS > .p[1]) {#PVPPOINTS -= .p[1];}
- else {#PVPPOINTS = 0;}
- dispbottom "You lost " + .p[1] + " pvp points. New pvp points is " + #PVPPOINTS;
- end;
- OnCheckPoint:
- dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
- end;
- OnInit:
- setarray .p[0], 2, 0; // points per kill, points per death
- bindatcmd "checkpoints", strnpcinfo(0) + "::OnCheckPoint";
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement