Raised This Month: $51 Target: $400
 12% 

[ASK] About id Target


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
m4m3ts
Senior Member
Join Date: Jun 2012
Old 02-06-2014 , 03:41   [ASK] About id Target
Reply With Quote #1

client_print(0, print_chat.....bla...bla..bla..

that is print chat for all player right ?

client_print(1,......
so how about idTarget = 1 like above

that chat for who ?

any link explaining about value of idTarget ?
0 = for everyone
1 = ??
2 = ??
3 = ??

thanks b4....
m4m3ts is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-06-2014 , 03:50   Re: [ASK] About id Target
Reply With Quote #2

It would send to the player with that player index.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 02-06-2014 at 03:50.
hornet is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-06-2014 , 03:51   Re: [ASK] About id Target
Reply With Quote #3

If it is not zero (0), it refers to (i.e. must be) the entity id of a player. You should look at the hundreds of plugins that use client_print(), to see how you can get the entity id of a player.

It is generally easier to answer questions that pertain to a specific usage case. For example: "How do I show a chat message to a player when they spawn?"
__________________
fysiks is offline
m4m3ts
Senior Member
Join Date: Jun 2012
Old 02-06-2014 , 09:27   Re: [ASK] About id Target
Reply With Quote #4

oke, thanks...
m4m3ts is offline
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 02-09-2014 , 07:30   Re: [ASK] About id Target
Reply With Quote #5

Yea i thought so doesnt arrays start from 0?
__________________
<3<3
being noob is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-09-2014 , 14:52   Re: [ASK] About id Target
Reply With Quote #6

Quote:
Originally Posted by being noob View Post
Yea i thought so doesnt arrays start from 0?
Your question is not relevant to this thread but yes, arrays are zero indexed.
__________________
fysiks 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 03:51.


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