Author Topic: a question  (Read 1847 times)

0 Members and 1 Guest are viewing this topic.

jakuzza88

  • Intentional Cheater
  • **
  • Posts: 41
    • View Profile
a question
« on: January 15, 2011, 04:28:45 pm »
Code: [Select]
if (_civnumber == 2) then

{

if (isciv) exitWith {};

_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;

};

};


how can i get the copmarkers also be visible for civillian ?

Coronel_Niel

  • Insane Joker
  • ****
  • Posts: 846
  • Why can't I pick my own profile picture...
    • View Profile
Re: a question
« Reply #1 on: January 15, 2011, 05:27:17 pm »
Isciv = false
"Now we are going to watch my boys do it" - Joopig

pviera11

  • Online Villain
  • ***
  • Posts: 113
    • View Profile
Re: a question
« Reply #2 on: January 15, 2011, 08:59:34 pm »
Isciv = false

Ive been trying to make this work, with no success.

deezinyamouf

  • Insane Joker
  • ****
  • Posts: 503
  • Abedee-Abedee-Abedee-Abedee- A - FUCK YOU!
    • View Profile
Re: a question
« Reply #3 on: January 15, 2011, 09:56:58 pm »
Isciv = false

Ive been trying to make this work, with no success.


isciv = false ;


Try that?
Some people say I'm crazy, and that PTSD has ruined my ability to interact, and properly communicate with others.

I tell those people to eat a dick.

;-)

M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9185
    • View Profile
    • http://www.tkc-community.net
Re: a question
« Reply #4 on: January 15, 2011, 10:27:58 pm »
I've forgot the syntax, but isn't == what you're after? isciv implies a boolean return value.

Heckling is an art, and game hacking a science.

Coronel_Niel

  • Insane Joker
  • ****
  • Posts: 846
  • Why can't I pick my own profile picture...
    • View Profile
Re: a question
« Reply #5 on: January 15, 2011, 10:37:15 pm »
== is equal to, = is equals. == is used to check if a value is something while = is used to set a value.

I believe your facing a problem as it loads the script at the start and exits there. To force it, make civ = false and then re-execute the file. This will double the markers if it has already been run (already a cop ect)
"Now we are going to watch my boys do it" - Joopig

jakuzza88

  • Intentional Cheater
  • **
  • Posts: 41
    • View Profile
Re: a question
« Reply #6 on: January 15, 2011, 11:58:24 pm »
okay i will try it and thx to all replies

pviera11

  • Online Villain
  • ***
  • Posts: 113
    • View Profile
Re: a question
« Reply #7 on: January 16, 2011, 08:49:02 am »

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: a question
« Reply #8 on: January 16, 2011, 07:48:35 pm »
is that for map ? or onscreen?
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

pviera11

  • Online Villain
  • ***
  • Posts: 113
    • View Profile
Re: a question
« Reply #9 on: January 16, 2011, 08:35:29 pm »
is that for map ? or onscreen?

When you go cop side, the cop markers appear on the map when your a cop, and they follow you around, etc. The marker will say cop 1, or cop 7.
« Last Edit: January 16, 2011, 08:43:30 pm by pviera11 »

pviera11

  • Online Villain
  • ***
  • Posts: 113
    • View Profile
Re: a question
« Reply #10 on: January 16, 2011, 08:36:25 pm »
Also something nice i just learned if you know how to create AI in multiplayer and switch to their bodys so you can control them, you are able to see all the cops on the map.

deezinyamouf

  • Insane Joker
  • ****
  • Posts: 503
  • Abedee-Abedee-Abedee-Abedee- A - FUCK YOU!
    • View Profile
Re: a question
« Reply #11 on: January 16, 2011, 10:42:03 pm »
is that for map ? or onscreen?

When you go cop side, the cop markers appear on the map when your a cop, and they follow you around, etc. The marker will say cop 1, or cop 7.

Why don't you just make yourself a fuckin' cop?

Then the markers'll be on, and you can impound vehicles and all that shit.
Some people say I'm crazy, and that PTSD has ruined my ability to interact, and properly communicate with others.

I tell those people to eat a dick.

;-)

Double Hack

  • Klass Klown
  • ***
  • Posts: 254
  • Do a barrel roll
    • View Profile
Re: a question
« Reply #12 on: January 16, 2011, 10:52:03 pm »
actually, iscop=true does all that, but you cannot see the markers. It might be side scripted, not role


Double H-a-c-k, the Original Spoof clown XD

Coronel_Niel

  • Insane Joker
  • ****
  • Posts: 846
  • Why can't I pick my own profile picture...
    • View Profile
Re: a question
« Reply #13 on: January 16, 2011, 10:53:05 pm »
No one reads ANYTHING do they? I've posted how to make it work. If you can't work out what _art is then don't even bother with this.
"Now we are going to watch my boys do it" - Joopig

jakuzza88

  • Intentional Cheater
  • **
  • Posts: 41
    • View Profile
Re: a question
« Reply #14 on: January 17, 2011, 05:00:01 pm »
okay i tryed it but its not working, i agree with double..