Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- PlayerScript OnPVPKill Template by Kaev
- Made for MMONerds.com, Modcraft.io and MCore.cc
- */
- class onPvpKillTemplate : public PlayerScript
- {
- public:
- onPvpKillTemplate() : PlayerScript("onPvpKillTemplate") { }
- void OnPVPKill(Player* killer, Player* killed) override
- {
- if(killer->GetGUID() == killed->GetGUID()) // We don't want to get exploited by player suicide
- return;
- }
- };
- void AddSC_onPvpKillTemplate() // Add this to the ScriptLoader
- {
- new onPvpKillTemplate();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement