![]() |
|
Message after First kill. - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Message after First kill. (/Thread-Message-after-First-kill.html) |
Message after First kill. - gumpo03 - 10-27-2011 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: 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...) RE: Massage after First kill. - JariZ - 10-27-2011 I'd like an massage right now.... no but forreal, I'll help you once im home 1/2 hours RE: Massage after First kill. - Rendflex - 10-27-2011 (10-27-2011, 11:12)gumpo03 Wrote: If it's a "if" operator, then "=" has to be "==". Like this: Code: incCodPoints( amount )
{
if( level.firstkill == 0 )
{
allclientsprint(self.name+ " HAS MADE THE FIRST KILL!!!");
level.firstkill = 1;
}
}But there should be easier ways of doing this :p And I don't think this will work, but I just fixed your code for now. RE: Massage after First kill. - zxz0O0 - 10-27-2011 massage != message RE: Massage after First kill. - gumpo03 - 10-27-2011 (10-27-2011, 11:17)jariz Wrote: I'd like an massage right now.... Ok thx ![]() (10-27-2011, 11:19)Rendflex Wrote:(10-27-2011, 11:12)gumpo03 Wrote: Oh like php ![]() thank you, i would test it. Thank you Rendflex ![]() It works now
RE: Massage after First kill. - AZUMIKKEL - 10-27-2011 You guys are all wrong. This guy wants to reward a player by giving him a nice relaxing massage after a stressful kill. None of you guys know how it is to be in a war. All a soldier wants, is a nice relaxing massage. RE: Massage after First kill. - d0h! - 10-27-2011 cough changed thread title |