Post: Run script on suicide

05-31-2017, 01:51 AM #1
Hackusater
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); When I play zombieland, all of the zombies kill themselves to earn money. The zombieland gives a player $100 per each death. I was wondering if there was a way to run a script if a player kills them self.*


If(Player death =*"MOD_SUICIDE"
{
player money - 100;
}

I don't need to know how to take away players money or anything because that was just an example. I just need to know how to activate a script when you suicide.
(adsbygoogle = window.adsbygoogle || []).push({});
05-31-2017, 08:45 AM #2
anthonything
Space Ninja
Originally posted by Hackusater View Post
When I play zombieland, all of the zombies kill themselves to earn money. The zombieland gives a player $100 per each death. I was wondering if there was a way to run a script if a player kills them self.*


If(Player death =*"MOD_SUICIDE"
{
player money - 100;
}

I don't need to know how to take away players money or anything because that was just an example. I just need to know how to activate a script when you suicide.


MonitorDeath()
{
while(1)
{
self waittill( "damage", amount, attacker, dir, point, mod );
if(mod == "MOD_SUICIDE" || attacker == self && self.health < 2)
self.cash -= 100;
}
}
05-31-2017, 10:20 AM #3
Joynah
Save Point
Originally posted by DamnMagician View Post
MonitorDeath()
{
while(1)
{
self waittill("death");
self.cash -= 100;
}
}


Thats not even what he is asking for you low life
05-31-2017, 10:51 AM #4
Patrick
League Champion
Originally posted by Joynah View Post
Thats not even what he is asking for you low life


Yes it is you dumbass?
He is asking how to take away money if the "zombies" commit suicide.

P.S. Nice rep.
05-31-2017, 08:16 PM #5
anthonything
Space Ninja
Originally posted by Joynah View Post
Thats not even what he is asking for you low life


Hmm. So when are you kiddos going to be done following me around taking shots? I mean it seriously looks bad on you all when you just keep following me around everywhere like little fanboys. Instead of being a dipshit, you could have given the answer - you know, if you had actually known it.
05-31-2017, 08:17 PM #6
anthonything
Space Ninja
Originally posted by Patrick View Post
Yes it is you dumbass?
He is asking how to take away money if the "zombies" commit suicide.

P.S. Nice rep.


Yeah he is a dumbass, but yeah I messed up a bit because he only wants suicides to be recognized and I typed it up when I was playing a zombies game and wasnt really paying attention. I fixed it for the rando who asked the question though.
06-01-2017, 03:40 AM #7
Saber_JZY
Bounty hunter
Originally posted by DamnMagician View Post
Hmm. So when are you kiddos going to be done following me around taking shots? I mean it seriously looks bad on you all when you just keep following me around everywhere like little fanboys. Instead of being a dipshit, you could have given the answer - you know, if you had actually known it.


Lol, how can people follow you around if there's only 3 sections to the Gsc bo2 section.

1: mods/scripts
2: questions
3: answers questions.

It's not like people can stalk your YouTube like I used to do Winky Winky because it's no longer active.

Anyways, pretty sure he was calling you out because you messed the first code up!
06-01-2017, 05:15 AM #8
Joynah
Save Point
Originally posted by JZY View Post
Lol, how can people follow you around if there's only 3 sections to the Gsc bo2 section.

1: mods/scripts
2: questions
3: answers questions.

It's not like people can stalk your YouTube like I used to do Winky Winky because it's no longer active.

Anyways, pretty sure he was calling you out because you messed the first code up!


Correct. The queen of GSC messed up & he also groaned at me 3 times for asking a question, in the damn question section.
The idiot is just proving he has no life groaning, multiple replies, gets his mate to say shit, ffs you wonder why your life sucks, Anthony.
Anyways, I'mma go back to my life then come back when i'm not busy to have another laugh at this fool wasting his time acting tough over a forum lol.
06-01-2017, 05:23 AM #9
Saber_JZY
Bounty hunter
Originally posted by Joynah View Post
Correct. The queen of GSC messed up & he also groaned at me 3 times for asking a question, in the damn question section.
The idiot is just proving he has no life groaning, multiple replies, gets his mate to say shit, ffs you wonder why your life sucks, Anthony.
Anyways, I'mma go back to my life then come back when i'm not busy to have another laugh at this fool wasting his time acting tough over a forum lol.


Lmfao, " queen of Gsc " dam, lol, almost everyone has an issue with Serious, your not the only one, but I guess everyone is kinda used to it these days, but he did provide and correct the code for this thread, and as for the groan option, I think people just do it for the lols Smile
06-01-2017, 08:18 AM #10
anthonything
Space Ninja
Originally posted by Joynah View Post
Correct. The queen of GSC messed up & he also groaned at me 3 times for asking a question, in the damn question section.
The idiot is just proving he has no life groaning, multiple replies, gets his mate to say shit, ffs you wonder why your life sucks, Anthony.
Anyways, I'mma go back to my life then come back when i'm not busy to have another laugh at this fool wasting his time acting tough over a forum lol.


You are that salty over me groaning you? Seems pretty sad. And btw: 3 groans on the same post/replies = 1 minute. So, no, it has nothing to do with being a no life, its a quick and painless process that obviously pissed you off which is funny as fuck. I dont get my friends to say anything either, its generally just something friends do when they see a randy attacking one of their friends.

But hey, if groaning pisses you off, I got something for ya Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo