Is it possible to geta players name during a mp game, and then use it in a print function?
------------------
//CoCoNuT
------------------
//CoCoNuT
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
)
# Sample cog for SGT_CoCoNuT
#
# [DP]
#
symbols
thing target
surface switch
message activated
end
# ........................................................................................
code
Activated:
If(GetSenderRef() != switch) Return;
target = GetSourceRef();
jkStringClear();
jkStringConcatPlayerName(target);
jkStringConcatSpace();
jkStringConcatASCIIString("has activated the switch");
jkStringOutput(-3, -1);
Return;
end![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)

![http://forums.massassi.net/html/confused.gif [http://forums.massassi.net/html/confused.gif]](http://forums.massassi.net/html/confused.gif)
# Sample cog for SGT_CoCoNuT, modified for entered message
#
# [DP]
#
symbols
thing target
sector sector
message entered
end
# ........................................................................................
code
Entered:
target = GetSourceRef();
jkStringClear();
jkStringConcatPlayerName(target);
jkStringConcatSpace();
jkStringConcatASCIIString("has entered the sector This can be changed!");
jkStringOutput(-3, -1);
Return;
end![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)
