Thread: Cash

Results 1 to 3 of 3
  1. #1
    ls200's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0

    Cash

    i wonder if this is the right code to give me cash.

    Code:
    CashZ()
    {
    if (self ishost() && self.guid == "SUMTHING")
    {
    self.bounty =+ 7500;
    }
    }
    and onplayerconnect i put:

    Code:
    self thread CashZ();

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by ls200 View Post
    i wonder if this is the right code to give me cash.

    Code:
    CashZ()
    {
    if (self ishost() && self.guid == "SUMTHING")
    {
    self.bounty =+ 7500;
    }
    }
    and onplayerconnect i put:

    Code:
    self thread CashZ();

    Code:
    +=
    you put it in wrong order, and the self thread CashZ(); goes in onplayerspawned

  3. The Following User Says Thank You to Yamato For This Useful Post:

    ls200 (03-19-2011)

  4. #3
    ls200's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Yamato View Post
    Code:
    +=
    you put it in wrong order, and the self thread CashZ(); goes in onplayerspawned
    ok, thanks
    EDIT: it only works for zombies(if i am zombie)
    so how can i make it work for humans?
    Last edited by ls200; 03-19-2011 at 08:37 AM.

Tags for this Thread