Raised This Month: $ Target: $400
 0% 

Get client stuff


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DHJ
Member
Join Date: Feb 2007
Old 02-07-2009 , 08:59   Get client stuff
Reply With Quote #1

How to get client stuff like money, health and how to set client money, and give items

And how to send a message to a client like es_tell/es.tell in eventscripts. I know how to send a global message, but can't figure out to send a chat message to one client

Last edited by DHJ; 02-07-2009 at 09:09.
DHJ is offline
BAILOPAN
Join Date: Jan 2004
Old 02-07-2009 , 17:34   Re: Get client stuff
Reply With Quote #2

Properties: http://wiki.alliedmods.net/Entity_Properties

Messaging players is usually done by sending TextMsg/SayText usermessages.

You can also look at the source code to various SourceMod functions for hints on this. SourceMod is open source under the GNU General Public License: http://hg.alliedmods.net/sourcemod-central (note, if you do choose to use direct source code from SourceMod, you must obey the terms of the license).

GiveNamedItem (in extensions/sdktools/vnatives.cpp) wraps CBasePlayer::GiveNamedItem
__________________
egg

Last edited by BAILOPAN; 02-07-2009 at 17:42.
BAILOPAN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode