Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
dominik120

KillerID?

Recommended Posts

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);
}

Share this post


Link to post

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?

Share this post


Link to post
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!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×