WarZ_Server.sln
Seach on UserReward.h
Replace to thisCode:enum EPlayerRewardID { RWD_ZombieKill = 1, //Standard RWD_MAX_REWARD_ID = 512, };
Search on UserReward.cpp:Code:enum EPlayerRewardID { RWD_ZombieKill = 1, //Standard RWD_ZombieKillP = 2, RWD_MAX_REWARD_ID = 512, };
Replace to thisCode:void CGameRewards::InitDefaultRewards() { // HERE is COPY-PASTED CODE FROM ExportDefaultRewards() // USED FOR SERVER SetReward(1, "ZombieKill", 5, 5, 10, 10); }
Search on sobj_Zombie.cppCode:void CGameRewards::InitDefaultRewards() { // HERE is COPY-PASTED CODE FROM ExportDefaultRewards() // USED FOR SERVER SetReward(1, "ZombieKill", 10, 10, 10, 10); SetReward(2, "ZombieKillP", 15, 15, 15, 15); }
Replace to thisCode:gServerLogic.AddPlayerReward(plr, RWD_ZombieKill);
Code:if(plr->profile_.ProfileData.isPunisher) { gServerLogic.AddPlayerReward(plr, RWD_ZombieKillP); } else { gServerLogic.AddPlayerReward(plr, RWD_ZombieKill); }



Reply With Quote![[Tutorial] Add Premium Reward](http://ragezone.com/hyper728.png)


