Results 1 to 9 of 9
  1. #1
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0

    (HELP!) Define Variable For Certain Players (HELP!)

    Hey guys! I need help defining a variable for a certain player. What i mean is im trying to give my friend that i know lots of money, while everyone else still has their standard amount.

    Heres what i do for myself:

    Code:
    if(self isHost())pTotal = 50000;
    That gives me 50000, while this makes everyone else have 100

    Code:
    self.TotalZombiePoints = pTotal + 100;
    What im trying to do, is basically defind a varible if a players name is "this cetain name"

    For example, lets say my friend is Bob. (i know this wont work, just an example of what i think it will turn out to be something like:

    Code:
    self player_bob = friend1
    Code:
    So then i would go if(self friend1())pTotal = 50000
    Anyone know a way i could do this? Thanks!

  2. #2
    Chijiru's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    29
    Reputation
    10
    Thanks
    9
    Code:
    if((self.name == "Bob1") 
    || (self.name == "Bob2"))
    pTotal = 50000
    Something like that or?

  3. #3
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Chijiru View Post
    Code:
    if((self.name == "Bob1") 
    || (self.name == "Bob2"))
    pTotal = 50000
    Something like that or?
    That didnt work, but i only tried this based of your theory:
    Code:
    		if(self.name == "Bob"())pTotal = 99999

  4. #4
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    I figured it out! THANKS ANYWAYS GUYS!

  5. #5
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    287
    My Mood
    Confused
    no double posting. read the rules

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  6. #6
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    458
    Reputation
    126
    Thanks
    537
    My Mood
    Aggressive
    Quote Originally Posted by Chijiru View Post
    Code:
    if((self.name == "Bob1") 
    || (self.name == "Bob2"))
    pTotal = 50000
    Something like that or?
    What he said was perfect.. and you put it in a different way...
    Code:
    if((self.name == "Bob1") 
    || (self.name == "Bob2"))
    {
    pTotal = 50000
    }
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  7. #7
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Actually not, the way that now works that i found out myself is this:

    Code:
    if(self isHost() || self.name == "NAME HERE OF PERSON")pTotal = 50000;

  8. #8
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    458
    Reputation
    126
    Thanks
    537
    My Mood
    Aggressive
    Quote Originally Posted by Pete8497 View Post
    Actually not, the way that now works that i found out myself is this:

    Code:
    if(self isHost() || self.name == "NAME HERE OF PERSON")pTotal = 50000;
    It could work either way as I said you put it in another form.. It doesn't matter you got what you needed..
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  9. #9
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,939
    Reputation
    478
    Thanks
    1,746
    My Mood
    Bored
    Moved to help.


    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

Similar Threads

  1. [Help Request] giving permissions to certain players
    By furmonk in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 06-25-2011, 03:52 AM
  2. waiting for other players stack ..HELP!!!!!!
    By makakas90 in forum Call of Duty Black Ops Help
    Replies: 3
    Last Post: 02-13-2011, 01:33 AM
  3. [HELP]Looking for certain codes
    By TøXiN in forum WarRock Hack Source Code
    Replies: 1
    Last Post: 07-08-2010, 04:41 AM
  4. Funny pic for wow players
    By VectorAimbot in forum General
    Replies: 10
    Last Post: 01-11-2009, 04:23 PM
  5. CA for europe players
    By gnerex in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 08-29-2008, 04:37 PM