Results 1 to 7 of 7
  1. #1
    Kyouki's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    1

    [Help]Get location

    I don't wanna come over like some beg newb, but is there anyone that know how to get the current location of a player or however they get the X Y Z?

    For example in this mod there was this code: (No Hope ZombieMod by Nukem)
    Code:
    carepack = spawn("script_model", (2850, 164, 165) ); 
    carepack setModel( "com_plasticcase_friendly" );
    carepack Solid();
    carepack CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    
    carepack2 = spawn("script_model", (2850, 132, 146) ); 
    carepack2 setModel( "com_plasticcase_friendly" );
    carepack2 Solid();
    carepack2 CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    Theres like 100 more codes of those, but I want to know how they/he achieved the red marked part.

    Thanks in advance.

  2. #2
    Debugger's Avatar
    Join Date
    Jul 2008
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    9
    It's the parameters of the func...

  3. #3
    Kyouki's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    1
    Okay okay, and how to get those numbers?

  4. #4
    Kyouki's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    1
    Code:
    doPrintLocation()
    {
    self endon("disconnect");
    self endon("death");
    self notifyOnPlayerCommand("5", "+actionslot 2");
    	while ( 1 ) 
    	{
    	self waittill("5");   
    	self iPrintLnBold(self.origin);
    	wait 1;
    	}
    }
    Thanks to Nukem for the code "self.origin".
    This will print out ur current location on the screen.

    *Sorry for doubleposting!*

  5. #5
    iwan's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    dadad
    Posts
    26
    Reputation
    10
    Thanks
    0
    or use mw 2 configuration utility.. Theres 1 app on it that shows ur exact location on teh map >_>
    *It's settles at the Graphics*

  6. #6
    dheir's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Florida
    Posts
    376
    Reputation
    13
    Thanks
    228
    My Mood
    Amused
    What would be great is.....if you posted this shit in the server modding section. THANKS

  7. The Following User Says Thank You to dheir For This Useful Post:

    merked_nub (08-03-2010)

  8. #7
    bickman9678's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Kyouki View Post
    Code:
    doPrintLocation()
    {
    self endon("disconnect");
    self endon("death");
    self notifyOnPlayerCommand("5", "+actionslot 2");
    	while ( 1 ) 
    	{
    	self waittill("5");   
    	self iPrintLnBold(self.origin);
    	wait 1;
    	}
    }
    Thanks to Nukem for the code "self.origin".
    This will print out ur current location on the screen.

    *Sorry for doubleposting!*

    euhm where do i have to put that code to get the location i'm a complete noob in coding and i'm trying to do some smal things to put barriers but i don't know how to start on it

Similar Threads

  1. [Help Request] Need help getting to prestige 1
    By NeedPrestigedinMW2 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 11-07-2011, 10:25 AM
  2. [Help Request] Need help getting hacks to work
    By VpChris in forum Vindictus Help
    Replies: 5
    Last Post: 08-13-2011, 04:00 AM
  3. [Help Request] Need help, Get this when i start crossfire with injector.
    By -zZz- in forum CrossFire Help
    Replies: 4
    Last Post: 07-10-2011, 04:26 PM
  4. [Help]Getting Location of a running process.
    By nathanael890 in forum Visual Basic Programming
    Replies: 3
    Last Post: 09-20-2010, 10:07 AM
  5. i need help getting a korean name
    By scatman65 in forum WarRock Korea Hacks
    Replies: 3
    Last Post: 06-03-2007, 07:31 PM