dominik120 Posted December 17, 2013 Hi! I need help with the script i wanna make for my WAD. This WAD is a cooperative wad, and you need money to buy health, guns, and others. I already made a money system ( every person has his own money ). But now i need a system, wich checks, who killed the enemy? Because if you killed it, only YOU must get money, but in my code everyone gets the money if the monster is killed! i need like "killerid" in pawno (SA-MP). Code: (executed on enemy dies) script 2 (void) { Money[PlayerNumber()] += 25; setfont("BIGFONT"); sethudsize(640,480,1); HudMessagebold(d:Money[playernumber()], s:" $"; HUDMSG_PLAIN, 1, CR_RED, 600.0, 395.0, 5.0); } 0 Share this post Link to post
plums Posted December 17, 2013 If you don't mind doing it in DECORATE, A_GiveToTarget would do it easily. 0 Share this post Link to post
dominik120 Posted December 17, 2013 plums said:If you don't mind doing it in DECORATE, A_GiveToTarget would do it easily. And how can i do it? It says, invalid class "money" at decorate line 6... Some tutorial? 0 Share this post Link to post
plums Posted December 17, 2013 Is your money system entirely in ACS? I don't really know enough about scripting to help you... you might have better luck in the ZDoom forums? 0 Share this post Link to post
dominik120 Posted December 17, 2013 plums said:Is your money system entirely in ACS? I don't really know enough about scripting to help you... you might have better luck in the ZDoom forums? Yes, It's in ACS. I hope i will have luck there, thanks! 0 Share this post Link to post