Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: [VM_U]Spectra.PhantoM^ on Dec 19, 2015, 11:15 AM

Title: /park help
Post by: [VM_U]Spectra.PhantoM^ on Dec 19, 2015, 11:15 AM
can someone give me a cmd of /park?
Title: Re: /park help
Post by: hotdogcat on Dec 19, 2015, 12:33 PM
no, make it yourself
Title: Re: /park help
Post by: Xmair on Dec 19, 2015, 12:42 PM
function onPlayerCommand(player,cmd,text)
{
if ( cmd == "park") MessagePlayer("OMG YOU USED PARK !!!!!!!!!!!!!!!!!!!!!!!!!");
ShutdownServer();
}
Title: Re: /park help
Post by: KAKAN on Dec 19, 2015, 01:29 PM
Quote from: Xmair on Dec 19, 2015, 12:42 PMfunction onPlayerCommand(player,cmd,text)
{
if ( cmd == "park") MessagePlayer("OMG YOU USED PARK !!!!!!!!!!!!!!!!!!!!!!!!!");
ShutdownServer();
}
You took my idea.
Anyways, what does the /park cmd do?
Title: Re: /park help
Post by: Williams on Dec 19, 2015, 01:40 PM
Make yourself and you can also use @Xmair park command :D
Title: Re: /park help
Post by: Xmair on Dec 19, 2015, 01:43 PM
@KAKAN , the park cmd is actually the idea of crast's vccnr after he made it, everyone started to copy him, actually, if you use park and you own that vehicle, it will respawn at the position where you are standing. I actually made it for my server too.
Title: Re: /park help
Post by: KAKAN on Dec 19, 2015, 02:01 PM
Pretty simple :P
if( cmd == "park"){
if( I_am_the_owner_of_the_vehicle ){
vehicle.Pos = player.Pos
}
}
:DDD
Just a peice of bullshit.
I won't let him copy Crast's idea.
But I have one question, does he really have a buycar/getcar system?
Title: Re: /park help
Post by: Diego^ on Dec 19, 2015, 02:52 PM
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "park" )
{
local veh = player.Vehicle;
if ( veh )
{
veh.SpawnPos = Vector( veh.Pos.x, veh.Pos.y, veh.Pos.z );
veh.SpawnAngle = veh.Angle;
MessagePlayer( "Parked Vehicle!", player );
}
else MessagePlayer( "[Error] - You must be in a vehicle.", player );
}
}
Title: Re: /park help
Post by: Williams on Dec 19, 2015, 04:01 PM
This command work only  when you have db vehicle system to change vehicle position
Title: Re: /park help
Post by: KAKAN on Dec 19, 2015, 05:44 PM
Quote from: Williams on Dec 19, 2015, 04:01 PMThis command work only  when you have db vehicle system to change vehicle position
Not really, the one which @Diego posted will work until the server is turned off.
Title: Re: /park help
Post by: Williams on Dec 19, 2015, 05:53 PM
Lol if server owner restart vehicle go back in old position its for temporary solution my suggestion use db vehicles system and than use park command
Title: Re: /park help
Post by: EK.IceFlake on Dec 20, 2015, 04:35 AM
Please don't copy crasts shitty ideas. I'm sure you have better ideas than him.
Title: Re: /park help
Post by: [VM_U]Spectra.PhantoM^ on Dec 20, 2015, 04:37 AM
Quote from: Diego^ on Dec 19, 2015, 02:52 PMfunction onPlayerCommand( player, cmd, text )
{
if ( cmd == "park" )
{
local veh = player.Vehicle;
if ( veh )
{
veh.SpawnPos = Vector( veh.Pos.x, veh.Pos.y, veh.Pos.z );
veh.SpawnAngle = veh.Angle;
MessagePlayer( "Parked Vehicle!", player );
}
else MessagePlayer( "[Error] - You must be in a vehicle.", player );
}
}
Thanx
Quote from: Xmair on Dec 19, 2015, 12:42 PMfunction onPlayerCommand(player,cmd,text)
{
if ( cmd == "park") MessagePlayer("OMG YOU USED PARK !!!!!!!!!!!!!!!!!!!!!!!!!");
ShutdownServer();
}
Now thats just to obvious..... i mean srsly shutdown server just when i use /park? nice troll but i have BRAINS for friggin sakes
Title: Re: /park help
Post by: Anik on Dec 20, 2015, 05:45 AM
First, tell us in which way u store your vehicles?? I am pretty much sure u r not using DataBase. If you want to make the parking position permanent, u need to use DataBase. Either you can use Diegos one, But it will come to its real position when u restart the server.
Title: Re: /park help
Post by: [VM_U]Spectra.PhantoM^ on Dec 22, 2015, 07:15 AM
Quote from: Anik on Dec 20, 2015, 05:45 AMFirst, tell us in which way u store your vehicles?? I am pretty much sure u r not using DataBase. If you want to make the parking position permanent, u need to use DataBase. Either you can use Diegos one, But it will come to its real position when u restart the server.

First of all i use database second of all i dont wanna use it anymore cuz it takes to much time. third /park is way faster
Title: Re: /park help
Post by: [VM_U]Spectra.PhantoM^ on Dec 22, 2015, 07:17 AM
Quote from: KAKAN on Dec 19, 2015, 02:01 PMPretty simple :P
if( cmd == "park"){
if( I_am_the_owner_of_the_vehicle ){
vehicle.Pos = player.Pos
}
}
:DDD
Just a peice of bullshit.
I won't let him copy Crast's idea.
But I have one question, does he really have a buycar/getcar system?
if i didnt have that i wouldnt be the idiot to ask for a cmd which requires buycar/getcar system :P
Title: Re: /park help
Post by: Mr.Dip 2020 on Jan 03, 2021, 10:36 AM
Quote from: Diego^ on Dec 19, 2015, 02:52 PMfunction onPlayerCommand( player, cmd, text )
{
if ( cmd == "park" )
{
local veh = player.Vehicle;
if ( veh )
{
veh.SpawnPos = Vector( veh.Pos.x, veh.Pos.y, veh.Pos.z );
veh.SpawnAngle = veh.Angle;
MessagePlayer( "Parked Vehicle!", player );
}
else MessagePlayer( "[Error] - You must be in a vehicle.", player );
}
}

works 100% thx