/park help

Started by [VM_U]Spectra.PhantoM^, Dec 19, 2015, 11:15 AM

Previous topic - Next topic

[VM_U]Spectra.PhantoM^

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
Wanna Talk To Me? Come At Irc #Jugo@LUNet

Mr.Dip 2020

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