Hi,
I want to print a massage in Chat, after the first kill of this round.
The massage should be like this "*PLAYERNAME* HAS MADE THE FIRST KILL!!!"
My idea for a Solution was:
First i have add a Variable:
Then i have add some lines in incCodPoints( amount )
This should, if the player is the first player who make a Kill [level.firstkill = 0], print an message " *PLAYERNAME* HAS MADE THE FIRST KILL!!!".
After, it should set level.firstkill to 1. So nobody can make the firstkill again in this round.
The problem is:
if i start a Game with this mod, there comes a Error-Message:
"Server script compile error.
Bad syntax."
What is false in this script?
_______________________________________________________________
ORIGINAL THREAD (nobody has answered me...)
I want to print a massage in Chat, after the first kill of this round.
The massage should be like this "*PLAYERNAME* HAS MADE THE FIRST KILL!!!"
My idea for a Solution was:
First i have add a Variable:
Code:
init()
{
...
level.firstkill = 0;
...
}
Code:
incCodPoints( amount )
{
if( level.firstkill = 0 )
{
allclientsprint(self.name+ " HAS MADE THE FIRST KILL!!!");
level.firstkill = 1;
}
}
After, it should set level.firstkill to 1. So nobody can make the firstkill again in this round.
The problem is:
if i start a Game with this mod, there comes a Error-Message:
"Server script compile error.
Bad syntax."
What is false in this script?
_______________________________________________________________
ORIGINAL THREAD (nobody has answered me...)
Sorry for bad English -> *GERMAN*