Author Topic: Vehicles,players map mark  (Read 7785 times)

0 Members and 1 Guest are viewing this topic.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #60 on: June 20, 2012, 03:04:33 pm »
How visible on map only cops? (in Life Missions)

been a long time since i even looked at that mission , try compareing class types , or maybe role variable.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

s0beit

  • Relentless Teamkiller
  • **
  • Posts: 94
    • View Profile
Re: Vehicles,players map mark
« Reply #61 on: June 27, 2012, 02:16:12 am »
They actually put it right in the script

Code: [Select]
_copnumber = 1;
_copmarkerarray = [];
_copmarkernamearray = [];

while {_copnumber <= copscount} do

{

_copmarker       = createMarkerLocal[format["cop%1_marker", _copnumber], [-100, -100]];
_copmarkerarray       = _copmarkerarray + [_copmarker];
_markername           = format["cop%1_marker", _copnumber];
_copmarkernamearray   = _copmarkernamearray + [_markername];
_copmarker setMarkerShapeLocal  "ICON";
_markername setMarkerTypeLocal  "Dot";
_markername setMarkerColorLocal "ColorBlue";
_markername setMarkerSizeLocal  [1.2, 1.2];
format["cop%1_marker", _copnumber]
setMarkerTextLocal format["Cop%1" , _copnumber];
_copnumber = _copnumber + 1;

};

{_x SetMarkerPosLocal [(getMarkerPos "marker_dead" select 0)-1000,(getMarkerPos "marker_dead" select 1)-1000]} forEach _copmarkernamearray;

while {true} do

{

_counter = 0;

while {_counter < count coparray} do

{

_cop = coparray select _counter;
if (isnull _cop or !isPlayer _cop or copmarker_on == 0) then

{

(_copmarkernamearray select _counter) SetMarkerPosLocal (getmarkerpos "marker_dead");

}
else
{

if (alive _cop) then {(_copmarkernamearray select _counter) SetMarkerPosLocal [position _cop select 0, position _cop select 1];};
sleep 1;

};

_counter = _counter + 1;

};

sleep 1;

};

};

You can just jack the whole thing, probably (minor edits)

Also, anyone know how to check if a vehicle is occupied?

EDIT: Nvm, I just ended up doing the reverse

Code: [Select]
if(isNull assignedVehicle player) then {
« Last Edit: June 27, 2012, 02:22:07 am by s0beit »

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #62 on: June 27, 2012, 02:22:26 am »
They actually put it right in the script

Code: [Select]
_copnumber = 1;
_copmarkerarray = [];
_copmarkernamearray = [];

while {_copnumber <= copscount} do

{

_copmarker       = createMarkerLocal[format["cop%1_marker", _copnumber], [-100, -100]];
_copmarkerarray       = _copmarkerarray + [_copmarker];
_markername           = format["cop%1_marker", _copnumber];
_copmarkernamearray   = _copmarkernamearray + [_markername];
_copmarker setMarkerShapeLocal  "ICON";
_markername setMarkerTypeLocal  "Dot";
_markername setMarkerColorLocal "ColorBlue";
_markername setMarkerSizeLocal  [1.2, 1.2];
format["cop%1_marker", _copnumber]
setMarkerTextLocal format["Cop%1" , _copnumber];
_copnumber = _copnumber + 1;

};

{_x SetMarkerPosLocal [(getMarkerPos "marker_dead" select 0)-1000,(getMarkerPos "marker_dead" select 1)-1000]} forEach _copmarkernamearray;

while {true} do

{

_counter = 0;

while {_counter < count coparray} do

{

_cop = coparray select _counter;
if (isnull _cop or !isPlayer _cop or copmarker_on == 0) then

{

(_copmarkernamearray select _counter) SetMarkerPosLocal (getmarkerpos "marker_dead");

}
else
{

if (alive _cop) then {(_copmarkernamearray select _counter) SetMarkerPosLocal [position _cop select 0, position _cop select 1];};
sleep 1;

};

_counter = _counter + 1;

};

sleep 1;

};

};

You can just jack the whole thing, probably (minor edits)

Also, anyone know how to check if a vehicle is occupied?

if ( !count (crew _x)  ) on one's home.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

serfma

  • Intentional Cheater
  • **
  • Posts: 28
    • View Profile
Re: Vehicles,players map mark
« Reply #63 on: June 27, 2012, 03:08:40 am »
Just a heads-up for anyone, specifically noobs ;), don't try to use Player/Vehicle Markers in DayZ or OA for that matter as you'll be detected running the script and be Globally Banned. Unless you know what you're doing, of course.

Oh and also, make sure that if you're trying to spawn Ammo Crates for weapons, that it doesn't loop and spawn crates constantly. LOL.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #64 on: June 27, 2012, 03:10:27 am »
Just a heads-up for anyone, specifically noobs ;), don't try to use Player/Vehicle Markers in DayZ or OA for that matter as you'll be detected running the script and be Globally Banned. Unless you know what you're doing, of course.

Oh and also, make sure that if you're trying to spawn Ammo Crates for weapons, that it doesn't loop and spawn crates constantly. LOL.

Good idea.  :icon_thumbsup  :icon_laugh
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

serfma

  • Intentional Cheater
  • **
  • Posts: 28
    • View Profile
Re: Vehicles,players map mark
« Reply #65 on: June 27, 2012, 03:15:29 am »
Just a heads-up for anyone, specifically noobs ;), don't try to use Player/Vehicle Markers in DayZ or OA for that matter as you'll be detected running the script and be Globally Banned. Unless you know what you're doing, of course.

Oh and also, make sure that if you're trying to spawn Ammo Crates for weapons, that it doesn't loop and spawn crates constantly. LOL.

Good idea.  :icon_thumbsup  :icon_laugh

It was a huge accident. No one was around to see, I just fled the scene immediately. I was organizing my scripts and all, and I accidentally had the ammo script that was called, to the crate script. :P

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #66 on: June 27, 2012, 03:19:32 am »
Just a heads-up for anyone, specifically noobs ;), don't try to use Player/Vehicle Markers in DayZ or OA for that matter as you'll be detected running the script and be Globally Banned. Unless you know what you're doing, of course.

Oh and also, make sure that if you're trying to spawn Ammo Crates for weapons, that it doesn't loop and spawn crates constantly. LOL.

Good idea.  :icon_thumbsup  :icon_laugh

It was a huge accident. No one was around to see, I just fled the scene immediately. I was organizing my scripts and all, and I accidentally had the ammo script that was called, to the crate script. :P

try writing your name with them in the sky ( they float in mid air ) or T K C with the boxes lol be funny as fuck to see that pop up in a server.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

serfma

  • Intentional Cheater
  • **
  • Posts: 28
    • View Profile
Re: Vehicles,players map mark
« Reply #67 on: June 27, 2012, 03:22:57 am »
Just a heads-up for anyone, specifically noobs ;), don't try to use Player/Vehicle Markers in DayZ or OA for that matter as you'll be detected running the script and be Globally Banned. Unless you know what you're doing, of course.

Oh and also, make sure that if you're trying to spawn Ammo Crates for weapons, that it doesn't loop and spawn crates constantly. LOL.

Good idea.  :icon_thumbsup  :icon_laugh

It was a huge accident. No one was around to see, I just fled the scene immediately. I was organizing my scripts and all, and I accidentally had the ammo script that was called, to the crate script. :P

try writing your name with them in the sky ( they float in mid air ) or T K C with the boxes lol be funny as fuck to see that pop up in a server.

How would I go about doing that? For one; the createVehicle command is blacklisted by BE, Two; It spawns two boxes ;), and three; i'm globally banned or else I would. LOL :D

serfma

  • Intentional Cheater
  • **
  • Posts: 28
    • View Profile
Re: Vehicles,players map mark
« Reply #68 on: June 27, 2012, 08:23:46 am »
Just a heads-up for anyone, specifically noobs ;), don't try to use Player/Vehicle Markers in DayZ or OA for that matter as you'll be detected running the script and be Globally Banned. Unless you know what you're doing, of course.

Oh and also, make sure that if you're trying to spawn Ammo Crates for weapons, that it doesn't loop and spawn crates constantly. LOL.

Good idea.  :icon_thumbsup  :icon_laugh

It was a huge accident. No one was around to see, I just fled the scene immediately. I was organizing my scripts and all, and I accidentally had the ammo script that was called, to the crate script. :P

try writing your name with them in the sky ( they float in mid air ) or T K C with the boxes lol be funny as fuck to see that pop up in a server.

http://dayzmod.com/forum/showthread.php?tid=22495

Lolol.
« Last Edit: June 27, 2012, 10:29:18 am by serfma »

s0beit

  • Relentless Teamkiller
  • **
  • Posts: 94
    • View Profile
Re: Vehicles,players map mark
« Reply #69 on: June 27, 2012, 10:28:34 am »
LOLOLOLOLOLOLOLOL.

did your string of LOLs really need to be posted twice?

serfma

  • Intentional Cheater
  • **
  • Posts: 28
    • View Profile
Re: Vehicles,players map mark
« Reply #70 on: June 27, 2012, 10:29:31 am »
LOLOLOLOLOLOLOLOL.

did your string of LOLs really need to be posted twice?

There ya go, one's shorter than the other. ;)

Lookie there, they're already blaming you MrMedic, you must be very popular!  :icon_thumbsup

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #71 on: June 27, 2012, 01:01:49 pm »
looks good that 'whoever did it'  :icon_shifty
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #72 on: June 27, 2012, 10:05:07 pm »
now you know your not supposed to mention sales on the forum. :icon_biggrin2
« Last Edit: June 28, 2012, 01:54:43 am by ZOldDude »
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

serfma

  • Intentional Cheater
  • **
  • Posts: 28
    • View Profile
Re: Vehicles,players map mark
« Reply #73 on: June 27, 2012, 10:06:43 pm »
Oh and I wonder if I should spell the boxes to say "MrMedic loves you"  :D

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #74 on: June 27, 2012, 10:08:30 pm »
Oh and I wonder if I should spell the boxes to say "MrMedic loves you"  :D

lol tkc would be better and easier. but if you feel the need to , then please feel free to do so.

« Last Edit: June 27, 2012, 10:23:29 pm by MrMedic »
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157