AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help with client_cmd function (https://forums.alliedmods.net/showthread.php?t=93027)

goshia 05-23-2009 11:56

Need help with client_cmd function
 
Hello, I'm trying to make a very small plugin, which will set players T button to it's default function

I know it should be like this:

client_cmd
(id, "bind ^"t^" ^"+impulse201^"") but I don't know what to insert before that.

could you help me? Thx in advance

Hunter-Digital 05-23-2009 12:14

Re: Need help with client_cmd function
 
PHP Code:

#include <amxmodx>
 
public plugin_init()
{
      
register_plugin("plugin name""version""author")
}
 
public 
client_connect(id)
{
      
client_cmd(id"bind t ^"impulse 201^"")


it's "impulse 201" for spray logo, not "+impulse201"

also, why would you force players to have T bound to that ?

goshia 05-23-2009 12:25

Re: Need help with client_cmd function
 
Hunter-Digital

Thank you very much, it worked :)

Quote:

also, why would you force players to have T bound to that ?
about that, (s)lowhacking is very popular in my country and I don't want players flooded server with IP advertisments.

once again, thank you


All times are GMT -4. The time now is 01:36.

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