Configstring: Difference between revisions

From WolfWiki
Jump to navigation Jump to search
MSch (talk | contribs)
No edit summary
MSch (talk | contribs)
No edit summary
Line 6: Line 6:
A user Configstring gets written in the log file with a line starting with ''UserInfoChanged'' which mustn't be mistaken for one with ''Userinfo''.
A user Configstring gets written in the log file with a line starting with ''UserInfoChanged'' which mustn't be mistaken for one with ''Userinfo''.


To access a user's Configstring you can't just use et.trap_GetConfigstring(slotNumber) but must use et.trap_GetConfigstring(et.CS_PLAYERS<ref>689 for those of you that don't use etconst.lua</ref> + slotNumber)
To access a user's Configstring you can't just use et.trap_GetConfigstring(slotNumber) but must use et.trap_GetConfigstring(et.CS_PLAYERS + slotNumber)


<pitatable columns=3 headlines="key;name;description" widths="40;220;450" headerfontcolor="#FFFFFF">
<pitatable columns=3 headlines="key;name;description" widths="40;220;450" headerfontcolor="#FFFFFF">
Line 25: Line 25:
tv;ETTV slave;etpro only
tv;ETTV slave;etpro only
</pitatable>
</pitatable>
== Notes ==
et.CS_PLAYERS = 689 for those of you that don't use etconst.lua
Source:  http://bani.anime.net/banimod/forums/viewtopic.php?t=5412
Source:  http://bani.anime.net/banimod/forums/viewtopic.php?t=5412
<references/>
[[Category:ETPro]]
[[Category:ETPro]]
[[Category:Lua]]
[[Category:Lua]]
[[Category:ETPro:Mods]]
[[Category:ETPro:Mods]]

Revision as of 19:51, 28 August 2006


Configstrings can be accessed with et.trap_GetConfigstring and et.trap_SetConfigstring and the String utility functions

User Configstring

A user Configstring gets written in the log file with a line starting with UserInfoChanged which mustn't be mistaken for one with Userinfo.

To access a user's Configstring you can't just use et.trap_GetConfigstring(slotNumber) but must use et.trap_GetConfigstring(et.CS_PLAYERS + slotNumber)

keynamedescription
nNick 
tTeam1=Axis, 2=Allies, 3=Spectators
cClass0=Soldier, 1=Medic, 2=Engineer, 3=FieldOps, 4=CovertOps
rRank 
mMedals 
sSkills 
dnDisguised name 
drDisguised rank 
wWeapon 
lwLatched weaponWeapon on next spawn
swLatched secondary weaponSecondary weapon on next spawn
pPrivilege level0=Peon, referee (vote), referee (password), semiadmin, rconauth - etpro only
ssStat Saver Stats restored by stat saver
scShoutcasteretpro only
tvETTV slaveetpro only


Notes

et.CS_PLAYERS = 689 for those of you that don't use etconst.lua Source: http://bani.anime.net/banimod/forums/viewtopic.php?t=5412 <references/>