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

0 Members and 1 Guest are viewing this topic.

O_GREEN_O

  • Cheater Apprentice
  • *
  • Posts: 10
    • View Profile
Vehicles,players map mark
« on: June 04, 2012, 06:51:36 pm »
I tried to find this script, but it does not exist in our D:

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #1 on: June 04, 2012, 06:55:38 pm »
heres a tip

setgroupiconsvisible

createmarkerlocal

go to work.
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

joopig

  • Insane Joker
  • ****
  • Posts: 602
    • View Profile
    • A Place Of Dreams
Re: Vehicles,players map mark
« Reply #2 on: June 04, 2012, 06:58:48 pm »
Code: [Select]
hint "Adding Player Markers";

unitList = allUnits;
j = count unitList;
i = 0;
markPos = true;

while {markPos} do
{
unitList = allUnits;
j = count unitList;
i = 0;

for "i" from 0 to j do
{
unit = unitList select i;
pos = position unit;
deleteMarkerLocal ("playerMarker"+ (str i));
marker = "playerMarker" + (str i);
marker = createMarkerLocal [marker,pos];
marker setMarkerTypeLocal "mil_dot";
marker setMarkerPosLocal (pos);
marker setMarkerColorLocal("ColorRed");
marker setMarkerTextLocal format ["%1",name unit];
};
sleep 0.5;
};
hint "Player Marking Stopping";

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #3 on: June 04, 2012, 07:00:01 pm »
Code: [Select]
hint "Adding Player Markers";

unitList = allUnits;
j = count unitList;
i = 0;
markPos = true;

while {markPos} do
{
unitList = allUnits;
j = count unitList;
i = 0;

for "i" from 0 to j do
{
unit = unitList select i;
pos = position unit;
deleteMarkerLocal ("playerMarker"+ (str i));
marker = "playerMarker" + (str i);
marker = createMarkerLocal [marker,pos];
marker setMarkerTypeLocal "mil_dot";
marker setMarkerPosLocal (pos);
marker setMarkerColorLocal("ColorRed");
marker setMarkerTextLocal format ["%1",name unit];
};
sleep 0.5;
};
hint "Player Marking Stopping";

or copy paste it and learn nothing.  :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

joopig

  • Insane Joker
  • ****
  • Posts: 602
    • View Profile
    • A Place Of Dreams
Re: Vehicles,players map mark
« Reply #4 on: June 04, 2012, 07:03:34 pm »
or copy paste it and learn nothing.  :icon_laugh
Thats what they came here for might as well give them what they want.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #5 on: June 04, 2012, 07:06:07 pm »
or copy paste it and learn nothing.  :icon_laugh
Thats what they cam here for might as well give them what they want.

Much better to teach them by pointing them in the right direction , or they will keep doing it.

Copy paste is a sure fire way to get lazy.
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

joopig

  • Insane Joker
  • ****
  • Posts: 602
    • View Profile
    • A Place Of Dreams
Re: Vehicles,players map mark
« Reply #6 on: June 04, 2012, 07:09:16 pm »
Much better to teach them by pointing them in the right direction , or they will keep doing it.

Copy paste is a sure fire way to get lazy.
They see an example look how it works and alter it to their liking if they actually want to learn, if they don't they get working code to have fun with, everyone wins.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #7 on: June 04, 2012, 08:02:33 pm »
Much better to teach them by pointing them in the right direction , or they will keep doing it.

Copy paste is a sure fire way to get lazy.
They see an example look how it works and alter it to their liking if they actually want to learn, if they don't they get working code to have fun with, everyone wins.

Take it you copy paste a lot then.
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

O_GREEN_O

  • Cheater Apprentice
  • *
  • Posts: 10
    • View Profile
Re: Vehicles,players map mark
« Reply #8 on: June 04, 2012, 08:39:45 pm »
Thank you so much, tell me please how to make a map of how vehicles op spawn vehicles (i try spawn but im death :D )



i am retard

cairney

  • Relentless Teamkiller
  • **
  • Posts: 58
  • There's no certainty ? only opportunity.
    • View Profile
Re: Vehicles,players map mark
« Reply #9 on: June 04, 2012, 09:03:30 pm »
Much better to teach them by pointing them in the right direction , or they will keep doing it.

Copy paste is a sure fire way to get lazy.
They see an example look how it works and alter it to their liking if they actually want to learn, if they don't they get working code to have fun with, everyone wins.

Thanks for posting this. I've been wondering about it for a bit, so it is good to be able to read the code like you said, see how it works, analyse it and try to improve it.

@Medic

I don't see why you try to call these guys out left, right and centre... they might be selling a mod-app, but, so what if yours is better? They have fun using mod-apps and are helping others learn as well... Medic stop caring about how big you 'e-penis' is and start to help make the posts on here a bit better/higher quality... I am not saying I am an amazing poster or that I post some really helpful shit, but you seem to only care about calling people out, internet fame and the odd riddle or two.  If I had your ability and skill/experience - which you do have admittedly - I would stop caring about all that fame bullshit and just fuck some shit up/have some fun.

Uruoki

  • Poptart
  • *
  • Posts: 2
    • View Profile
Re: Vehicles,players map mark
« Reply #10 on: June 04, 2012, 09:08:10 pm »
Much better to teach them by pointing them in the right direction , or they will keep doing it.

Copy paste is a sure fire way to get lazy.
They see an example look how it works and alter it to their liking if they actually want to learn, if they don't they get working code to have fun with, everyone wins.

Thanks for posting this. I've been wondering about it for a bit, so it is good to be able to read the code like you said, see how it works, analyse it and try to improve it.

@Medic

I don't see why you try to call these guys out left, right and centre they might be selling a mod-app, but, so what if yours is better? They have fun using mod-apps and are helping others learn as well... Medic stop caring about how big you 'e-penis' is and start to help make the posts on here a bit better/higher quality... I am not saying I am an amazing poster or that I post some really helpful shit, but you seem to only care about calling people out, internet fame and the odd riddle or two.  If I had your ability and skill/experience - which you do have admittedly - I would stop caring about all that fame bullshit and just fuck some shit up/have some fun.

Why you calling him out like that? Calling the kettle black are we?

cairney

  • Relentless Teamkiller
  • **
  • Posts: 58
  • There's no certainty ? only opportunity.
    • View Profile
Re: Vehicles,players map mark
« Reply #11 on: June 04, 2012, 09:12:03 pm »
Much better to teach them by pointing them in the right direction , or they will keep doing it.

Copy paste is a sure fire way to get lazy.
They see an example look how it works and alter it to their liking if they actually want to learn, if they don't they get working code to have fun with, everyone wins.

Thanks for posting this. I've been wondering about it for a bit, so it is good to be able to read the code like you said, see how it works, analyse it and try to improve it.

@Medic

I don't see why you try to call these guys out left, right and centre they might be selling a mod-app, but, so what if yours is better? They have fun using mod-apps and are helping others learn as well... Medic stop caring about how big you 'e-penis' is and start to help make the posts on here a bit better/higher quality... I am not saying I am an amazing poster or that I post some really helpful shit, but you seem to only care about calling people out, internet fame and the odd riddle or two.  If I had your ability and skill/experience - which you do have admittedly - I would stop caring about all that fame bullshit and just fuck some shit up/have some fun.

Why you calling him out like that? Calling the kettle black are we?

I really didn't want to respond to this, but I feel forced to respond.

I've been here since 2009 it isn't long in comparison to some other members, but I have seen enough of this 'fame-game' stuff and general flaming/attitude... it is in nearly every thread and it isn't helping anyone. I've watched all of this for a long time like a few others around here and finally thought I should post what I thought of it @Uruoki you have been registered a day if you stick around you will understand.

I'm not trying to start more shit, but just stating the way I view things.

/also responds to below post
« Last Edit: June 04, 2012, 09:35:42 pm by cairney »

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Vehicles,players map mark
« Reply #12 on: June 04, 2012, 09:12:27 pm »
Much better to teach them by pointing them in the right direction , or they will keep doing it.

Copy paste is a sure fire way to get lazy.
They see an example look how it works and alter it to their liking if they actually want to learn, if they don't they get working code to have fun with, everyone wins.

Thanks for posting this. I've been wondering about it for a bit, so it is good to be able to read the code like you said, see how it works, analyse it and try to improve it.

@Medic

I don't see why you try to call these guys out left, right and centre... they might be selling a mod-app, but, so what if yours is better? They have fun using mod-apps and are helping others learn as well... Medic stop caring about how big you 'e-penis' is and start to help make the posts on here a bit better/higher quality... I am not saying I am an amazing poster or that I post some really helpful shit, but you seem to only care about calling people out, internet fame and the odd riddle or two.  If I had your ability and skill/experience - which you do have admittedly - I would stop caring about all that fame bullshit and just fuck some shit up/have some fun.

Your doing exactly what your complaining about cairney , think before you post.
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

Jagfreeze

  • Intentional Cheater
  • **
  • Posts: 27
    • View Profile
Re: Vehicles,players map mark
« Reply #13 on: June 06, 2012, 01:53:21 pm »
This only shows players but not vehicles. How do I get it to show vehicles on the map?

BanHammer

  • Intentional Cheater
  • **
  • Posts: 46
    • View Profile
Re: Vehicles,players map mark
« Reply #14 on: June 06, 2012, 02:36:33 pm »
This only shows players but not vehicles. How do I get it to show vehicles on the map?

Code: [Select]
hint "Adding Vehicle Markers";

unitList = allMissionObjects "LandVehicle"; // or unitList = nearestobjects [[8000,8000],["air","car","tank"],20000]; //or  unitList = allmissionobjects "LandVehicle" + allmissionobjects "Air";
j = count unitList;
i = 0;
markPos = true;

while {markPos} do
{
unitList = allMissionObjects "LandVehicle";
j = count unitList;
i = 0;

for "i" from 0 to j do
{
unit = unitList select i;
                        _name = configName (configFile >> "CfgVehicles" >> (typeof unit)); // or _name = gettext (configFile >> "CfgVehicles" >> (typeof unit) >> "displayName");
pos = position unit;
deleteMarkerLocal ("playerMarker"+ (str i));
marker = "playerMarker" + (str i);
marker = createMarkerLocal [marker,pos];
marker setMarkerTypeLocal "mil_dot";
marker setMarkerPosLocal (pos);
marker setMarkerColorLocal("ColorRed");
marker setMarkerTextLocal format ["%1",_name];
};
sleep 0.5;
};
hint "Vehicle Marking Stopping";
« Last Edit: June 06, 2012, 02:59:29 pm by BanHammer »