Jump to content
Sign in to follow this  
ManDay

Name of a player

Recommended Posts

I must have missed that one completly. Im coding OFP since the very first beginning but I never got to know a function which returns the name of the player (like "ManDay") or something. But I see at at variant places - like the "Evolution" Mission or dr eyeballs dialog templates. what is this function? cant find it in the wiki.

And - referring to the diag-tmpl: How can you put a #kick user into a script? echoing? al right. but how can you access server functions?

Share this post


Link to post
Share on other sites
I must have missed that one completly. Im coding OFP since the very first beginning but I never got to know a function which returns the name of the player (like "ManDay") or something. But I see at at variant places - like the "Evolution" Mission or dr eyeballs dialog templates. what is this function? cant find it in the wiki.

And - referring to the diag-tmpl: How can you put a #kick user into a script? echoing? al right. but how can you access server functions?

the server functions are explained on the wiki, look for dedicated server, server or something like it.

it also is shipped with the dedicated server distribution.

on your name question.

its easier than you would imagine

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">name player

Not to mention that you see the player names listed on the "view player listing" accessed via your keybinding, I think its default to "tab"

Share this post


Link to post
Share on other sites

I think you are getting me completly wrong. Don't know whether this occurs due to my english or to your actual misunderstanding...

Ok - then name function is clear know. Is there net-global variable of all players in the game?

refering to the server-funktions:

I wonder how can you be able to kick a player per script? how can you start a vote by scripting it?

Share this post


Link to post
Share on other sites
I think you are getting me completly wrong. Don't know whether this occurs due to my english or to your actual misunderstanding...

Ok - then name function is clear know. Is there net-global variable of all players in the game?

refering to the server-funktions:

I wonder how can you be able to kick a player per script? how can you start a vote by scripting it?

aha, well english isn't my native language, so seeing your reply i think i've misunderstood you.

That I do not know how it would be possible to do from a script.

I dunno either how to initiate a vote, but it "should" say in the documentation me thinks.

Share this post


Link to post
Share on other sites

try this

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Hint Format ["%1", Name Player]

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  

×