Jump to content

- Advertisement -
Photo

Eroare Plugin

- - - - -

  • Please log in to reply
1 reply to this topic

#1
ucigasu

ucigasu

    New Member

  • Membru
  • 21 posts
  • 13 topics
  • Joined 17-February 11

1. Auto_raspuns l am numit eu ! Orice cuvant care il scrii in chat iti da raspuns-ul ala ideea e ca eu vreau doar daca scrie aim, codat, etc

 /* Plugin generated by AMXX-Studio */

#include < amxmodx >

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Ciprian"

public plugin_init ( )
{
   register_plugin ( PLUGIN, VERSION, AUTHOR );  
   register_clcmd ( "say", "HookSay" );
   register_clcmd ( "say_team", "HookSay" );
}

public HookSay ( id ) {
   static s_Args[ 192 ];
  
   read_args ( s_Args, charsmax ( s_Args ) );
   remove_quotes ( s_Args );
  
   if ( containi ( s_Args, "codat" ) || containi ( s_Args, "cod" ) || containi ( s_Args, "aim" ) || containi ( s_Args, "wall" ) ) {
      client_print ( id, print_chat, "*** Pentru a anunta un codat folositi say_team @ mesaj ex: u@ nume codat" );
      return PLUGIN_HANDLED;
   }
  
   return PLUGIN_CONTINUE;
}  

Edited by ucigasu, 17 February 2019 - 04:09 PM.


#2
renko

renko

    Fost Moderator

  • Retired
  • 808 posts
  • 67 topics
  • Joined 01-January 17
  • Country: Country Flag

Pe viitor completeaza campurile de nume cu ceva mai sugestiv.

exemplu:

#define PLUGIN "AutoReply"
#define VERSION "1.0"
#define AUTHOR "Ciprian"

In plus, pluginul este nefolositor. Poti folosi pluginuri pentru mesaje automate. Scanand chat-ul dupa cuvintele "aim", "wall" consuma resurse aiurea si nu este necesar.


Edited by renko, 17 February 2019 - 08:41 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users