Forum Jump :

Author Message


Posts: 11
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Sgt. C. Nanatovich

 
#1 Posted at 2013-10-02 22:35        
     
I have searched up and down, and can't find anything on this. I am sorry if I missed something on it. So, anyways I have a script that goes like this:
if (_art == "handy3") then {
_rolestring = getPlayerUID vehicle player;
_smstext   = _this select 1;
_playerPos = 0;
_playerPos = getPos player; 
_markername = _rolestring;

if (_smstext == "") exitWith {player groupChat localize "STRS_NO_COPMESAGE";};
if ((_smstext call ISSE_str_Length) > 75)exitWith {player groupChat localize "STRS_NO_COPMESSAGE_TOLONG";};	
		
_checkmarkerexistance = getMarkerType "_markername";
if (_checkmarkerexistance != "") then {deleteMarkerLocal "_markername";};


_markerrams = createMarkerLocal ["_markername", _playerPos];
"_markername" setMarkershape "icon";
"_markername" setMarkerColor "ColorRed";
"_markername" setMarkerSize [1, 1];
"_markername" setMarkerType "Marker";
"_markername" setMarkerText _smstext;

player groupchat format ["The police have received your call standby!"];

if (side player == west) then {hint "Someone has called 911 check your map!";};

sleep 360;
deletemarker "_markername";
};
I want it to say say "Someone has called 911, at <coordinates> !" <coordinates> meaning like "025 028" the location of the player. I have no clue how to do that. If anyone knows please tell me one way I could do this.
Also:
I am having a problem where if a civ(civilian) calls 911 it wouldn't tell the cops(blufor) that someone called 911, but if a cop called 911 it would only tell that cop that someone called 911.

This post was edited by ChaseTheFun (2013-10-05 15:56, ago)


Author Message


Posts: 11
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Sgt. C. Nanatovich

 
#2 Posted at 2013-10-04 15:47        
     
bump


Advertisement


Author Message


Posts: 635
Rank:


Level: Member

Country: uk
Location: N.W.
Occupation:
Age: 32
In-game name: big_wilk

 
#3 Posted at 2013-10-04 18:42        
     
oh no.. why bump had to scroll down future.

http://forums.bistudio.com/showthread.php?114172-Get-grid-reference-command

had that saved in my references no idea if it works or not.


Author Message


Posts: 11
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Sgt. C. Nanatovich

 
#4 Posted at 2013-10-05 23:17        
     
Thank you! Now all I need to get is where it sends the message to all the police because somehow it doesn't send it unless a cop calls but then it only shows the cop who called.