Bind help me!

Сообщения
31
Реакции
4
I think it needs to split with the parse function. but i don't know how to divide

Код:
// Example
// send_bind(id,"bind ^"f^" ^"example^"") I want to do like this

// but the content of binds.ini such
// bind "f" "say example" // binds.ini read

public exec(id) {
    
    get_configsdir(configsdir,199)
    format(cmdfile,199,"%s/binds.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)
        {
            
            formatex(cmd[i], 512, "^"%s^"",cmd[i])
            send_bind(id,cmd[i])
            
        }
    }
    
    return PLUGIN_HANDLED
}
 
Сообщения
432
Реакции
409
Помог
14 раз(а)
We are not supporting slowhacking, so ask in another place
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу