AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] regarding !cmmds (https://forums.alliedmods.net/showthread.php?t=254135)

bsparty 12-30-2014 14:40

[Help] regarding !cmmds
 
If wish to create a plugin whose basic function is to display in chat .
For Example:-
If i type !say Yo All !!

It must show "Yo All !!" in everyone's chat



I m currently trying it to use with ColorChat :bee:

silentscope 12-30-2014 14:53

Re: [Help] regarding !cmmds
 
Code:

register_clcmd("say whatever","myFunction")

bsparty 12-30-2014 14:58

Re: [Help] regarding !cmmds
 
i wish it to use in game !!
say command should be followed after !

bsparty 12-30-2014 15:02

Re: [Help] regarding !cmmds
 
If i wish to display score of any team
For Exam ct score is 15
then i need a code which will work as following

if i type !say score ct-15
it should print chat to all the players in the server "score ct-15"

if i type !say score t-12
it should print chat to all the players in the server "score t-12"

silentscope 12-30-2014 15:11

Re: [Help] regarding !cmmds
 
well, just an example

Code:

#include <amxmodx>

public plugin_init() {
    register_clcmd("say score ct-15", "score_ct")
        register_clcmd("say score t-12", "score_t")
}

public score_ct() {
        client_print(0, print_chat, "Look at him")
}

public score_t() {
        client_print(0, print_chat, "Look at him")
}


bsparty 12-30-2014 15:24

Re: [Help] regarding !cmmds
 
-,- y making fun

Kellan123 12-30-2014 16:14

Re: [Help] regarding !cmmds
 
https://forums.alliedmods.net/showthread.php?t=141832


All times are GMT -4. The time now is 15:26.

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