Something like that or?Code:if((self.name == "Bob1") || (self.name == "Bob2")) pTotal = 50000
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:
That gives me 50000, while this makes everyone else have 100Code:if(self isHost())pTotal = 50000;
What im trying to do, is basically defind a varible if a players name is "this cetain name"Code:self.TotalZombiePoints = pTotal + 100;
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 = friend1Anyone know a way i could do this? Thanks!Code:So then i would go if(self friend1())pTotal = 50000
Something like that or?Code:if((self.name == "Bob1") || (self.name == "Bob2")) pTotal = 50000
I figured it out! THANKS ANYWAYS GUYS!
no double posting. read the rules
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
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;
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
Moved to help.
[center]
Back in '10
Got a question?PM/VM me!
I read them all.
Also contact me via MSN.
vlad@mpgh.net