CSPLague
el basi tus bindleme - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: el basi tus bindleme (/showthread.php?tid=4551)



el basi tus bindleme - fantasty1992 - 20-08-12

client_autoexec var ama ben her el bası yazdıgım tuslara oto bindlesin istiyorum klavye sıfırlamaya onlem olarak


Cevap: el basi tus bindleme - ByGece - 20-08-12

Pek Anlamadım Otomatik Tus Bindleme Servere girince Otomatik Olarak Tuslarnıı Bindler Digel Svden Gelenlerde Her Zaman Config.cfg si geneden yapılır her el başı deyken anlamadım her el başı baska tusa baska cümlemi eklicen sadece map degisince aktif olur bildigime göre ayarlar


Cevap: el basi tus bindleme - akcaliberkk - 21-08-12

client_autoexec pluginini ver editlerim.


Cevap: el basi tus bindleme - fantasty1992 - 21-08-12

al usta bunun her el bası tekrarlanmasını istiyorum oyun icinde unbindall yapınca gidiyo retry cekmem gerekiyo ama her el bası olursa oyuncuların retry cekmesine gerek kalmaz.

Code:
//Client Autoexec Commands on Connect
//by Torch
//Automatically executes commands on client when they join your server.
//Sort of like an automated client_exec plugin.
//Useful to block cl_pitchspeed etc as soon as they join.
//Create a file "client_autoexec.ini" in your configs folder
//and place all the console commands to be executed on clients in it.
//Maximum number of commands is defined as 100 below.

#include <amxmodx>
#include <amxmisc>

#define MAX_CMDS    100

public plugin_init() {
    register_plugin("Client Autoexec on Connect","1.0","Torch")
    return PLUGIN_CONTINUE
}

new configsdir[200]
new cmdfile[200]
new cmd[MAX_CMDS][200]

public client_connect(id) {

    get_configsdir(configsdir,199)
    format(cmdfile,199,"%s/client_autoexec.ini",configsdir)

    new txtLen
    new result
    for(new i=0;i<MAX_CMDS;i++)
    {
        result = read_file(cmdfile,i,cmd,199,txtLen)
        if(result != 0)
        {
            client_cmd(id,cmd)
        }
    }
}



Cevap: el basi tus bindleme - rapmylife2 - 21-08-12

asdsadas


Cevap: el basi tus bindleme - akcaliberkk - 21-08-12

PHP Code:
//Client Autoexec Commands on Connect
//by Torch
//Automatically executes commands on client when they join your server.
//Sort of like an automated client_exec plugin.
//Useful to block cl_pitchspeed etc as soon as they join.
//Create a file "client_autoexec.ini" in your configs folder
//and place all the console commands to be executed on clients in it.
//Maximum number of commands is defined as 100 below.

#include <amxmodx>
#include <amxmisc>

#define MAX_CMDS    100

public plugin_init() { 
    
register_plugin("Client Autoexec on Connect","1.0","Torch"
    
    
register_logevent("EventNewRound",2,"1=Round_Start")
    return 
PLUGIN_CONTINUE 


new 
configsdir[200]
new 
cmdfile[200]
new 
cmd[MAX_CMDS][200]

public 
client_connect(id) {

    
get_configsdir(configsdir,199)
    
format(cmdfile,199,"%s/client_autoexec.ini",configsdir)

    new 
txtLen
    
new result
    
for(new i=0;i<MAX_CMDS;i++)
    {
        
result read_file(cmdfile,i,cmd[i],199,txtLen)
        if(
result != 0)
        {
            
client_cmd(id,cmd)
        }
    }
}
public 
EventNewRound() {
    
get_configsdir(configsdir,199)
    
format(cmdfile,199,"%s/client_autoexec.ini",configsdir)

    new 
txtLen
    
new result
    
for(new i=0;i<MAX_CMDS;i++)
    {
        
result read_file(cmdfile,i,cmd,199,txtLen)
        if(
result != 0)
        {    
            
client_cmd(0,cmd)
        }
    }


Her el başı istediğin kodları uygular.[/i][/i][/i][/i]


Cevap: el basi tus bindleme - fantasty1992 - 21-08-12

eyvallah ustam Smile