ManDay 0 Posted May 29, 2007 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
Taurus 20 Posted May 29, 2007 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
ManDay 0 Posted May 29, 2007 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
Taurus 20 Posted May 29, 2007 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
Junker 0 Posted May 29, 2007 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
ManDay 0 Posted May 29, 2007 Thanks. But you should contemplate to read before you post See here for the In-Game Commands: http://community.bistudio.com/wiki/Multiplayer_Server_Commands But I don't know how to call them trough a script. Maybe I will take a look at dr-Eyeballs thing there later to check it out Share this post Link to post Share on other sites