AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client_print (https://forums.alliedmods.net/showthread.php?t=89383)

One 04-05-2009 17:38

client_print
 
how can i add anything between player name & text. like :

client_print(id, "%s @CT-Base : Hi", Name)

Owyn 04-05-2009 17:45

Re: client_print
 
your example should work fine

One 04-05-2009 17:50

Re: client_print
 
realy? i writed the same thing around 6 month ago & didnt use this anymore. idk. i cant remember if this is right or wrong :mrgreen::shock:

sry i´m to old :cry: Grandpa:cry:

fysiks 04-05-2009 17:51

Re: client_print
 
Quote:

Originally Posted by .Owyn. (Post 798306)
your example should work fine

Incorrect.

Code:

client_print(id, print_chat, "message here %s", stuff)

One 04-05-2009 18:20

Re: client_print
 
now i can remember :

client_print(id, print_chat, "%s @CT-Base : Hi", name)

EDIT: how can i print this in say_team??

fysiks 04-05-2009 18:22

Re: client_print
 
That only prints it to "id". There is no concept of say_team when using client_print(). Although, you could emulate it.

One 04-05-2009 18:25

Re: client_print
 
Quote:

Originally Posted by fysiks (Post 798340)
That only prints it to "id". There is no concept of say_team when using client_print(). Although, you could emulate it.

damn, there could i need help .

i have no idea how can i emulate it :( better said : i dont think if i can do this :cry: damn

Starsailor 04-05-2009 19:05

Re: client_print
 
client_cmd(id, "say_team %s @CT-Base : Hi", name)

fysiks 04-05-2009 19:09

Re: client_print
 
Quote:

Originally Posted by Starsailor (Post 798382)
client_cmd(id, "say_team %s @CT-Base : Hi", name)

That will show

Quote:

(TEAM) MyPlayerName: MyPlayerName @CT-Base : Hi
Which is not quite what he wants.

@One: You can do it with ColorChat. Then only send to people on his team.

One 04-05-2009 19:11

Re: client_print
 
noway??


All times are GMT -4. The time now is 02:22.

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