Results 1 to 9 of 9
  1. #1
    Erige's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Twisted

    Question [SOLVED] [help] onplayerspawned()

    hey guys if i had an onplayerspawned() that looks like this..
    onPlayerSpawned() { self en - Anonymous - pPY4yNFy - Pastebin.com

    How would I add this to it? as in what would it look like...im new at modding.
    if(self isHost()) { - Anonymous - c8pFm3b0 - Pastebin.com

    Thanks guys
    Last edited by Insane; 09-19-2010 at 09:43 PM.

  2. #2
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,661
    My Mood
    Dead

    Thumbs up

    Err.
    That's pseudocode with your functions, Big doubt about the if(self isHost()) part.
    Well, As it could be trueval I don't know, Never messed around with GSC's.

    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread doDvars();
                    if(self isHost())
    		{
    		    self thread doGod();
    		}
    	}
    }
    Love You All~

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

    Erige (09-19-2010)

  4. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,331
    My Mood
    Breezy
    As Mel said, that's kinda like pseudocode cause your asking to... err, never mind
    Anyway, what Mel wrote in the codebox is correct
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  5. The Following User Says Thank You to master131 For This Useful Post:

    Erige (09-21-2010)

  6. #4
    Erige's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Twisted
    wait what do u mean pseudocode? whats wrong with it

  7. #5
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,331
    My Mood
    Breezy
    Because you told us to merge doDvars, if(self isHost()) and doGod and we weren't sure if you wanted doDvars under if(self isHost()) and vice-versa.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  8. The Following User Says Thank You to master131 For This Useful Post:

    Erige (09-19-2010)

  9. #6
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,661
    My Mood
    Dead
    Quote Originally Posted by Erige View Post
    wait what do u mean pseudocode? whats wrong with it
    Pseudocode is more theorical than practical code because it is an "idea" of code we do without knowing what it will actually do inside the desired context.

    Did you really needed help only with that thing ?
    Love You All~

  10. #7
    Erige's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Twisted
    got what i needed thanks

  11. #8
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,331
    My Mood
    Breezy
    Quote Originally Posted by Melodia View Post
    Pseudocode is more theorical than practical code because it is an "idea" of code we do without knowing what it will actually do inside the desired context.

    Did you really needed help only with that thing ?
    Doh, me dumb dumb.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  12. #9
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    yalll are right

    /Marked as Solved
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

Similar Threads

  1. [SOLVED] [Help]Delays in Banning
    By Viperm123 in forum Call of Duty Modern Warfare 2 Help
    Replies: 10
    Last Post: 06-05-2010, 11:42 AM
  2. [SOLVED] Help with aimbot
    By karloxxx in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 05-25-2010, 04:53 PM
  3. [Solved]help!
    By /b/oss in forum Visual Basic Programming
    Replies: 4
    Last Post: 02-26-2010, 09:55 AM
  4. [Solved]Help please
    By zmansquared in forum Visual Basic Programming
    Replies: 2
    Last Post: 02-24-2010, 12:41 AM
  5. ADMINS CROSS OUT SOLVED HELP THREADS!
    By tenko in forum Combat Arms Discussions
    Replies: 1
    Last Post: 10-02-2009, 05:44 AM