(10-26-2011, 20:28)OrangePL Wrote: self takeweapon(self getcurrentweapon());
it will execute only once at onplayerspawned so it means only primary wep will be taken
Thx
If i want to put a Massage like "You're the first." on the screen of the player, who has make the first kill of the round, what must i do?
Thx for all answers
EDIT:
I have a idea for a solution:
First i have add a Variable:
Code:
init()
{
...
level.firstkill = 0;
...
}
Then i have add some lines in
incCodPoints( amount )
Code:
incCodPoints( amount )
{
if( level.firstkill = 0 )
{
allclientsprint(self.name+ "HAS MADE THE FIRST KILL!!!");
level.firstkill = 1;
}
}
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?