Plugin uri :D

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
unkk
Membru, skill 0
Membru, skill 0
Posts: 23
Joined: 13 May 2010, 15:22
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 4 times
Contact:

30 Sep 2010, 18:23

1. un plugin care sa ti incarce arma automat dupa ce ai facut un kill (frag)
2. un plugin care nu te lasa sa intri pe server daca ai mai putin de 3 litere in nume si mai mult de 5 semne
3. un plugin care sa ti incarce viata automat dupa ce ai facut un kill

Multumesc :D
unkk
Membru, skill 0
Membru, skill 0
Posts: 23
Joined: 13 May 2010, 15:22
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 4 times
Contact:

01 Oct 2010, 00:26

Eu accept pe server jucatori cu semne dar nu exagerat de multe .. cealalta parte cu ~ ` e buna si cu player si unnamed ... dar nu stiu cum sa scot doar chestia aia din plugin care da kick la cei cu toate semnele .. in rest e bun pluginul :D daca stie cineva sa l modifice chiar il rog frumos sa scoata doar chestia aia care da kick la playerii cu toate semnele si sa lase doar celelalte doua .. si sa mi afiseze codul ! Multumesc :D
S3ekEr^

01 Oct 2010, 06:31

Poftim .

Code: Select all

/* Kick Player AMX MOD X Plugin !
* Author : SAMURAI 
* Version : 0.3

* Update from 0.3 to 0.4
- now players who have on him nicknames "!" "@" "#" "$" "&" "*" "(" ")"[" "]" "{" "}" "~" "`" "^" will be kicked
   Update doned by Savag3 !

* Update from 0.2 to 0.3
- fixed constant
- change set_task function from 10 seconds to 0 (users will be kicked on connecting)
- added new codes : users with name "unnamed" and "player" will be kicked

* Update from 0.1 to 0.2
- Fixed return problem
* 

*      Have a nice day now
*/


#include <amxmodx> 


#define PLUGIN_NAME "Kick Name"
#define PLUGIN_VERSION "0.4"
#define PLUGIN_AUTHOR "SAMURAI" 


public client_connect(id) 
{ 
     if(!get_cvar_num("sv_kickplayer")) return PLUGIN_CONTINUE 
     new name[32] 
     get_user_name(id,name,31)  
      
      
     if(containi(name, "`") != -1 || containi(name, "~") != 1 )

     if(containi(name, "!") != -1 || containi(name, "@") != 1 )

     if(containi(name, "#") != -1 || containi(name, "$") != 1 )

     if(containi(name, "&") != -1 || containi(name, "*") != 1 )

     if(containi(name, "(") != -1 || containi(name, ")") != 1 )

     if(containi(name, "[") != -1 || containi(name, "]") != 1 )

     if(containi(name, "{") != -1 || containi(name, "}") != 1 )
     
     if(equal(name, "player") != -1 || equal(name, "unnamed") != 1 )
     
     	set_task(0.0, "kickem", id)
          
	  
     return PLUGIN_CONTINUE 
} 

public kickem(id)
	server_cmd("amx_kick #%d Please change your nickname !" , get_user_userid(id)) 
  
  
public plugin_init() 
{ 
     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR) 
     register_cvar("sv_kickplayer", "1") 
}
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 20:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 176 times
Been thanked: 401 times

01 Oct 2010, 16:38

1 si 3 impreuna:
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < hamsandwich >
#include < fun >

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


public plugin_init ( ) {
    register_plugin ( PLUGIN, VERSION, AUTHOR );
    
    RegisterHam ( Ham_Killed, "player", "fw_PlayerKilled", 1 );
}

public fw_PlayerKilled ( e_Victim, e_Attacker, ShouldGib ) {
    if ( is_user_alive ( e_Attacker ) ) {
        client_cmd ( e_Attacker, "+reload; wait; wait; -reload" );
        set_user_health ( e_Attacker, 100 );
    }
    
    return HAM_HANDLED;
}
Post Reply

Return to “Cereri”

  • Information