Hi everybody
How can i know the player name( for example) or the reference of player entity that is playing now in Multi-user?
thanks for all.
which is the name of player that is playing now in MP?
Moderator: Core Staff
-
- CJ Wannabe
- Posts: 12
- Joined: May 24th, 2008, 9:31 am
-
- Too cool for CoDJumper
- Posts: 3617
- Joined: August 28th, 2007, 11:46 am
- Location: Melbourne, Australia
Re: which is the name of player that is playing now in MP?
self.name or players name.thader2005 wrote:Hi everybody
How can i know the player name( for example) or the reference of player entity that is playing now in Multi-user?
thanks for all.


-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: which is the name of player that is playing now in MP?
<variable> = getentarray("player","classname");
trigger waittill("trigger",<variable>)
The name of a player can be whatever you want if you reference it correctly.
With single player, there is only one player, so you do not need to do anything, but with MP you must find the player first, either by using an array or some form of trigger.
trigger waittill("trigger",<variable>)
The name of a player can be whatever you want if you reference it correctly.
With single player, there is only one player, so you do not need to do anything, but with MP you must find the player first, either by using an array or some form of trigger.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: Amazon [Bot] and 3 guests