Dear,
I Received pm's about how i added killfeed to the src i'm testing so i searched in RZ about killfeed and don't have a tutorial only one the "Randomized killfeed" and the old tutorial about killfeed the guy just removed it so here the Tutorial hope everyone like it.
Go to your warz_server.sln
Search For this:
Code:void ServerGameLogic::DoKillPlayer(GameObject* sourceObj, obj_ServerPlayer* targetPlr, STORE_CATEGORIES weaponCat, bool forced_by_server, bool fromPlayerInAir, bool targetPlayerInAir )
Now you will see this line:
// vars
Below that add this code:
Code:char plr2msg[128] = {0}; // Remove this line if you use src WarZTHSrc2 if(IsServerPlayer(sourceObj)) { obj_ServerPlayer * killedByPlr = ((obj_ServerPlayer*)sourceObj); if (targetPlr->profile_.CustomerID == killedByPlr->profile_.CustomerID) { sprintf(plr2msg, "Commit Suicide"); char chatmessage[128] = {0}; PKT_C2C_ChatMessage_s n; sprintf(chatmessage, "%s Suicided.",targetPlr->loadout_->Gamertag); r3dscpy(n.gamertag, "<System>"); r3dscpy(n.msg, chatmessage); n.msgChannel = 1; n.userFlag = 2; p2pBroadcastToAll(NULL, &n, sizeof(n), true); } else { sprintf(plr2msg, "KILLED BY %s", killedByPlr->loadout_->Gamertag); // Enable this below to if you have "Player exp from my other tutorial" //gServerLogic.AddPlayerReward(killedByPlr, RWD_PlayerKill, 0);// the 0 can be removed if your not using "Allright source" char chatmessage[128] = {0}; PKT_C2C_ChatMessage_s n; sprintf(chatmessage, "%s Killed By %s.",targetPlr->loadout_->Gamertag,killedByPlr->loadout_->Gamertag); r3dscpy(n.gamertag, "<System>"); r3dscpy(n.msg, chatmessage); n.msgChannel = 1; n.userFlag = 2; p2pBroadcastToAll(NULL, &n, sizeof(n), true); } } else if(sourceObj->isObjType(OBJTYPE_Zombie)) { sprintf(plr2msg, "EATEN BY ZOMBIE"); char chatmessage[128] = {0}; PKT_C2C_ChatMessage_s n; sprintf(chatmessage, "Zombies ate %s",targetPlr->loadout_->Gamertag); r3dscpy(n.gamertag, "<System>"); r3dscpy(n.msg, chatmessage); n.msgChannel = 1; n.userFlag = 2; p2pBroadcastToAll(NULL, &n, sizeof(n), true); } else { sprintf(plr2msg, "Commit Suicide"); }
If you use a old Src like Education and you don't see the line // vars
Serach for this:
Code:r3dOutToLog("%s killed by %s, forced: %d\n", targetPlr->userName, sourceObj->Name.c_str(), (int)forced_by_server);
And add the code below that.
Hope it helps everyone.
Don't forgot to Like me :)



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


