AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Saying stuff enabling commands (https://forums.alliedmods.net/showthread.php?t=53901)

EliteSoldier 04-13-2007 00:16

Saying stuff enabling commands
 
For instance, if I want somebody to say 'flashlight on' the plugin would enable impulse 100 (flashlight) on the client, how would I do that?

scrtxxcaz 04-13-2007 02:57

Re: Saying stuff enabling commands
 
try this..
Code:

//may have to define fun and engine
public plugin_int()
{
        register_clcmd("say","say_text")
}
public say_text(id)
{
        new said[192]
        read_args(said,191)
        if(containi(said,"flashlight") != -1 && containi(said,"on") != -1)
        {
                client_cmd(id, "impulse 100")
        }
 
}

i think thats right.......try it

scrtxxcaz 04-13-2007 23:48

Re: Saying stuff enabling commands
 
opps i meant #include < > not define


All times are GMT -4. The time now is 06:42.

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