Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ConsoleChat made by Moby !
- #include <a_vcmp>
- #include <dutils>
- #define BLUE 0x377DFFFF
- #pragma unused PRIVATE_Last_Money
- #pragma unused ret_memcpy
- public OnRconCommand(cmd[])
- {
- new tmp[256];
- new idx;
- new cmdt[256];
- cmdt = strtok(cmd,idx);
- if(strcmp(cmdt,"/say",true) == 0)
- {
- tmp = strtok(cmd,idx);
- if (!strlen(tmp)) printf(">>ConsoleError: /say [message]");
- else {
- new string[256];
- format(string,sizeof(string),">>Owner: %s",cmd[5]);
- SendClientMessageToAll(BLUE,string);
- printf(string);
- }
- return 1;
- }
- return 0;
- }
- public OnFilterScriptInit()
- {
- print("------------------------------------------------------------------------------");
- print(" ConsoleChat System (by Moby) is loaded. ");
- print("------------------------------------------------------------------------------");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement