AlliedModders

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

wonsae 04-10-2006 22:34

say commands
 
well, i don't think it's much of a scripting problem but whenever i register a command with say with it it doesn't work like this
Code:
register_clcmd("say /test","test")

but when i would use /test it would just come out as /test nothing would happen but when i take off the say and do it in the console /test it would work[/small]

YamiKaitou 04-11-2006 00:47

It only works without the "say ..." part. clcmd's assume that you are using the "say" or "say_team"

wonsae 04-11-2006 08:49

oh but if i take out the say part it still doesn't work with say, it only works if i do it in console

wouter 04-11-2006 09:12

try this
Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say /test","test")   } public test(id) {     client_print(id, print_chat, "[TEST] test") }

Hawk552 04-11-2006 09:51

Quote:

Originally Posted by YamiKaitou
It only works without the "say ..." part. clcmd's assume that you are using the "say" or "say_team"

Totally wrong. Here are the differences:
  • register_concmd - Both the server and client can use this command.
  • register_clcmd - Only the client can use this command.
  • register_srvcmd - Only the server can use this command.

YamiKaitou 04-12-2006 01:17

Quote:

Originally Posted by Hawk552
Quote:

Originally Posted by YamiKaitou
It only works without the "say ..." part. clcmd's assume that you are using the "say" or "say_team"

Totally wrong. Here are the differences:
  • register_concmd - Both the server and client can use this command.
  • register_clcmd - Only the client can use this command.
  • register_srvcmd - Only the server can use this command.

oh, guess I... don't know what I was thinking. Thanks for clearing me up

wonsae 04-12-2006 10:15

thanks for the help guys and somehow all my clcmd's with say just started working out of the blue


All times are GMT -4. The time now is 16:34.

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