Jump to content
Sign in to follow this  
maxch6666

text for a single player

Recommended Posts

Hello, Sorry for my mistakes I'm French ... ortographes

Is it be possible to trigger a text for a player only (for a multiplayer game).

Example: I create a trigger that kills the player when he is away from his helicopter ... When it starts to die, a message appears hint top of the screen but the players know ...

How to apply it only to the player?

Thank you!

Share this post


Link to post
Share on other sites

actually, I came across this post before posting.

I try but it does not work with player in thisList

Here is my code:

_vehicle = _this select 0; 
_vehicle addEventHandler ["GetIn", 
{ 
private ["_NomJoueur", "_TableNom", "_TableHeli", "_Vname"]; 
_veh = _this select 0; 
_pos = _this select 1; 
_unit = _this select 2; 
_TableNom = ["Nom", "Nom2", "Nom3"]; 


if (_veh == helicotaxitrois) then 
{ 
if (typeOf player != "O_Helipilot_F") then
{ 
_v = vehicle player; 
if (driver _v == player) then 
{ 
player action ["eject", _v]; 
hint format["Désolé %1 , tu n'as pas le droit d'utiliser cet helicoptere, tu dois choisir la classe PILOTE TAXI pour pouvoir l'utiliser gratuitement. Tu peux néanmoins en acheter un pour 35 000 Dollars",_unit,_veh]; 

}; 

}; 
}; 
}]; 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×