Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Ksna on Jul 22, 2015, 04:00 PM

Title: Player position
Post by: Ksna on Jul 22, 2015, 04:00 PM
In 0.3 there was something like /s to save position of player and it will be written in text file. Please tell me how to get positions in 0.4and please don 't tell me to make a ini which save my position.
i was using trainer to save my loc and it takes lot of time
Title: Re: Player position
Post by: FarisDon on Jul 22, 2015, 04:14 PM
Quote from: Ksna on Jul 22, 2015, 04:00 PMIn 0.3 there was something like /s to save position of player and it will be written in text file. Please tell me how to get positions in 0.4and please don 't tell me to make a ini which save my position.
i was using trainer to save my loc and it takes lot of time
I don't think now VCMP0.4 Recommand that!
Title: Re: Player position
Post by: MacTavish on Jul 22, 2015, 04:24 PM
else if ( cmd=="s")
{
WriteIniString("coords.ini", "Pos", player.Pos);
MessagePlayer("Coords Saved",player);
}


Try it and before checking it Create coords.ini manually in your server folder
Title: Re: Player position
Post by: EK.IceFlake on Jul 22, 2015, 04:51 PM
Quote from: Beztone on Jul 22, 2015, 04:24 PMelse if ( cmd=="s")
{
WriteIniString("coords.ini", "Pos", player.Pos);
MessagePlayer("Coords Saved",player);
}


Try it and before checking it Create coords.ini manually in your server folder
He told you to not let him use inis ^.-
Title: Re: Player position
Post by: KAKAN on Jul 22, 2015, 05:08 PM
one question if a player types /s, then it will be saved in our coords.ini right?

EDIT:-
Btw try this
else if ( cmd == "s" )
  {
    MessagePlayer( "[#ffffff]Pos X " + player.Pos.x + ", Pos Y " + player.Pos.y + ", Pos Z " + player.Pos.z , player );
  }
Title: Re: Player position
Post by: Thijn on Jul 22, 2015, 05:24 PM
Why not use print? You can then easily get your coordinates from the console, or server logs.
Title: Re: Player position
Post by: KAKAN on Jul 22, 2015, 06:05 PM
Nice idea tho!, it will help me a lot, Thanks
Title: Re: Player position
Post by: kokia on Jul 22, 2015, 06:24 PM
else if ( cmd == "s")
{
EMessage("Your pos : " + player.Pos + " .")
}
try but its untested bcuz em on mob
Title: Re: Player position
Post by: kokia on Jul 22, 2015, 06:26 PM
else if ( cmd == "s")
{
EMessage("Your pos : " + player.Pos + " .")
}
try but its untested bcuz em on mob
Title: Re: Player position
Post by: [VSS]Shawn on Jul 23, 2015, 05:27 AM
what the hell why spam?

I will not post my command coz last night i was typing that command from mobile then it suddenly clicked on Preview Wtf :(
Title: Re: Player position
Post by: KAKAN on Jul 23, 2015, 08:59 AM
No one even told u to post :D
Title: Re: Player position
Post by: Thijn on Jul 23, 2015, 09:02 AM
Locked.