Advertisement
sseebbyy

ConsoleChat_ByMoby_ForVCMP

Apr 30th, 2012
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.93 KB | None | 0 0
  1. //ConsoleChat made by Moby !
  2. #include <a_vcmp>
  3. #include <dutils>
  4.  
  5. #define BLUE 0x377DFFFF
  6.  
  7. #pragma unused PRIVATE_Last_Money
  8. #pragma unused ret_memcpy
  9.  
  10. public OnRconCommand(cmd[])
  11. {
  12.     new tmp[256];
  13.     new idx;
  14.     new cmdt[256];
  15.     cmdt = strtok(cmd,idx);
  16.    
  17.     if(strcmp(cmdt,"/say",true) == 0)
  18.     {
  19.         tmp = strtok(cmd,idx);
  20.         if (!strlen(tmp)) printf(">>ConsoleError: /say [message]");
  21.         else {
  22.             new string[256];
  23.             format(string,sizeof(string),">>Owner: %s",cmd[5]);
  24.             SendClientMessageToAll(BLUE,string);
  25.             printf(string);
  26.         }
  27.     return 1;
  28.     }
  29.     return 0;
  30. }
  31.  
  32. public OnFilterScriptInit()
  33. {
  34.     print("------------------------------------------------------------------------------");
  35.     print(" ConsoleChat System (by Moby) is loaded. ");
  36.     print("------------------------------------------------------------------------------");
  37.     return 1;
  38. }
  39.  
  40. public OnFilterScriptExit()
  41. {
  42.     return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement