Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
killmessage for team
#1
I tried to make a killmessage for 1 team:

Code:
doKillMessage
{
    self endon("disconnect");
    
    if (self [[level.axis]]();)
    {
        self iprintln("You killed a ^1Traitor")
    }
    
    else
    
    {
        self iprintln("You killed a ^2Innocent")    
    }

}
but it actually dont works (i knew it! Tongue)

so i want to ask: How to make it right?
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#2
if(self.team == "axis")
[Image: MaEIQ.png]
Reply

#3
Code:
if(self.team == "axis")

EDIT: @Pozzuh beat me Fuu
[Image: b_560_95_1.png]
Reply

#4
oops, forgot something -> its when the player is killed

that before it search what team it is
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#5
So u ant a message when u were killed or when u killed someone?
Reply

#6
when u killed someone
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#7
In maps/mp/gametypes/_globallogic_player.gsc script, you can edit the 'Callback_PlayerKilled' function. A few lines into the function, insert something like this:

PHP Code:
if(isDefined(attacker))
{
        
attacker thread doKillMessage();


And put the function you made into the same script file:

PHP Code:
doKillMessage()
{
        
self endon("disconnect");
    
        if (
self.team == "axis")
        {
                
self iprintln("You killed a ^1Traitor")
        }

        else
        {
                
self iprintln("You killed a ^2Innocent")    
        }


This should work Smile
Reply

#8
nope it dont works -> syntax error
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#9
Code:
doKillMessage()
{
        self endon("disconnect");
    
        if (self.team == "axis")
        {
                self iprintln("You killed a ^1Traitor");
        }

        else
        {
                self iprintln("You killed a ^2Innocent");
        }
}
[Image: MaEIQ.png]
Reply

#10
Oops, sorry, I just copy-pasted your code from above, Pozzuh's got it
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 3,813 04-24-2014, 19:31
Last Post: Casper
Question Help Team DAMAGE offhand E-losev 0 2,274 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 4,334 09-12-2013, 17:32
Last Post: Yamato
  Name Team CheGuevara 1 2,850 06-01-2013, 14:15
Last Post: Yamato
  [Release] Team Customizer iPaddie 35 26,035 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 5,114 04-10-2013, 15:23
Last Post: x1412
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 6,525 03-15-2013, 12:53
Last Post: lammv
  Sending a plaeyr to axis or allies team lammv 0 1,887 01-26-2013, 18:59
Last Post: lammv
  [Request] Team change by admin command. Dumas 10 8,340 11-29-2012, 21:38
Last Post: 99IRock
Question Help MW3 infected team help koro35 12 8,641 11-23-2012, 07:45
Last Post: 99IRock

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.