Forum Jump :

Author Message


Posts: 4
Rank:


Level: Member

Country: de
Location: Baden-Würtemberg
Occupation:
Age: 23
In-game name: splash58

 
#196676 Posted at 2017-03-24 20:27        
     
Hello guys,
I want to make a safezone script and every single script I saw were either not working or were really complicated.
So what I did is just setting down a trigger with the following parameters.
Type:
none
Activation:
Any Player
Activationtype:
present
repeatable:
true
server only:
false
Condition:
this

On Act:
player allowDamage false; hint parseText format["<t color= '#41c54a'>you have just entered the safezone</t>"];
On Deact:
player allowDamage true; hint parseText format["<t color= '#fa1107'>you just left the safezone</t>"];

This is working perfectly in Singleplayer. But on a MP server it works for some players but not for others. I think there is something wrong with the object class "player". I tried out a bunch of other object classes tho none were working. So is there any kind of Object that is defining the real players?

Thank you guys so much.