Raised This Month: $ Target: $400
 0% 

Saying stuff enabling commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EliteSoldier
Junior Member
Join Date: Feb 2007
Old 04-13-2007 , 00:16   Saying stuff enabling commands
Reply With Quote #1

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?
EliteSoldier is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 04-13-2007 , 02:57   Re: Saying stuff enabling commands
Reply With Quote #2

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
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress

Last edited by scrtxxcaz; 04-13-2007 at 03:04. Reason: dont know
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 04-13-2007 , 23:48   Re: Saying stuff enabling commands
Reply With Quote #3

opps i meant #include < > not define
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
Reply


Thread Tools
Display Modes

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 06:42.


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