Here's a few functions to find stuff like the players xfire, email, website ect... if you have those's variables set, players can read them now.
getXfire() returns players xfire name
getEmail() returns players email account
getAIM() instant messenger
getMSN() microsoft nets
getGtalk() Gtalk
ect...
You can set these variables with cl_xfire, cl_email, cl_aim, ect...
Code:
/******************************************************************************/
e2function string entity:getXfire()
if(!validEntity(this)) then return "" end
if(!this:IsPlayer()) then return "" end
return this:GetXFire()
end
e2function string entity:getEmail()
if(!validEntity(this)) then return "" end
if(!this:IsPlayer()) then return "" end
return this:GetEmail()
end
e2function string entity:getAIM()
if(!validEntity(this)) then return "" end
if(!this:IsPlayer()) then return "" end
return this:GetAIM()
end
e2function string entity:getMSN()
if(!validEntity(this)) then return "" end
if(!this:IsPlayer()) then return "" end
return this:GetMSN()
end
e2function string entity:getGtalk()
if(!validEntity(this)) then return "" end
if(!this:IsPlayer()) then return "" end
return this:GetGTalk()
end
e2function string entity:getWebsite()
if(!validEntity(this)) then return "" end
if(!this:IsPlayer()) then return "" end
return this:GetWebsite()
end
e2function string entity:getLocation()
if(!validEntity(this)) then return "" end
if(!this:IsPlayer()) then return "" end
return this:GetLocation()
end
/******************************************************************************/
Posting to see if these would be useful to anyone besides myself, or just so you can add them to your custom e2 extensions.
Bookmarks