Chat print help.
Hello.
This a simple cod that allows you to use amx_freezetime in stead of amx_cvar mp_freezetime. The THING is that it doen`t print the command in the server`s general chat. I want it to say on the chat "Command : <admin who uses the command> Changed cvar <freezetime,limitteams or any cvar i wait to put in the plugin> to 1" COULD someone please add the line for this with red color ( so i know what is added) and someone please explain every single letter`s function ? Example : new name[32],com[32] // we will use name as a variable for the admins name and com variable for the commad QUESTION 2 : How i add a wait period in a plugin ? Because I done this : client_cmd (print_chat;wait;wait;snapshot;wait;wait;) server_cmd (around 40 waits here) server_cmd (ban client) . Is there a special line for those waits ? lie in stead of using 40 waits like that just type : server_wait_20_seconds :)) I hope someone help me with this . I must say i`m a total n00b at coding , i just copy a part of a cod , ad another part from another plugin and from 2 part i make 1 plugin and register the plugin under everybody`s names :)) . So it won`t be stealing. Thank you for you`r time . Code:
#include <amxmodx> |
Re: Chat print help.
Please use the [php] tag's when posting code and the command you're looking for is client_print
PHP Code:
Your Message must always be in "" but can also contain %s %i %d depending on what type of info being shown (%s = strings, etc.) where I have "ThingstoShowInMessage" is where you'd put the things you're wanting to show through the %'s |
Re: Chat print help.
First of all , thank you for you`r reply.
ThingstoShowInMessage should be "adminname, clientname" But how i make adminname = the name of the admin that executed the command And how i make clientname = the client on wich the command was used. PHP Code:
But it won`t work like this because i dont have "new adminname[32] and other stuff". Can you please write the whole code that is being used by the client_print function above ? And explain to me the whole thing ? I wan`t to know this so in the future i won`t boder anyone else . Second question : If in stead of freeze time is KICK command. I want this : PHP Code:
In question 1 , the one above you will explain hot i get adminname defined , now explain how i get adminname AND clientname defined (defined i mean to make the function work fine) THANK YOU |
Re: Chat print help.
anyone reply ? please....
|
Re: Chat print help.
show full code
|
Re: Chat print help.
Quote:
If you want you can add in the code with red color the code for what i want and maybe explain everything you add . Exept for the client_print line , i know how it works. I don`t know hot you add the strings. Thank you. |
Re: Chat print help.
you mean this?
PHP Code:
|
Re: Chat print help.
Quote:
|
Re: Chat print help.
Quote:
set_task(22.0,"wait",id) , and this will execute wait function 22 times ? PHP Code:
|
Re: Chat print help.
No, set_task(22.0, "function") will execute function after 22 seconds.
Function is a function not a command like wait. For example CmdFreezetime is a function in your code, not a command. |
| All times are GMT -4. The time now is 14:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.