Jump to content
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    Problème de Model


    TVNR
     Share

    Recommended Posts

    Voici mon probleme, je viens de voir ca dans la console :

     

    Error: could not load file models/player/admin_ct/admin_ct.md

     

    En fait ce qui ce passe est que l'on téléchrage bien les skins sur le serveur, mais le skin n'est pas celui uploader sur le ftp, c'est celui d'une autre team ....

     

     

    #include <amxmod>

    #include <VexdUM>

     

    public plugin_init() {

    register_plugin("AMX Admin Model", "1.1.1", "whitemike")

    register_event("ResetHUD", "resetHud", "b")

    }

     

    public plugin_precache() {

    precache_model("models/player/4everdad_ct/4everdad_ct.mdl")

    precache_model("models/player/4everdad_te/4everdad_te.mdl")

    }

     

    public resetHud(id) {

    set_task(0.2, "resetModel", id)

    }

     

    public resetModel(id) {

    if (get_user_flags(id) & ADMIN_KICK) {

    new userTeam = get_user_team(id)

    if (userTeam == 1) {

    CS_SetModel(id, "admin_te")

    }

    else if(userTeam == 2) {

    CS_SetModel(id, "admin_ct")

    }

    else {

    CS_ClearModel(id)

    }

    }

    return PLUGIN_CONTINUE

    }

     

     

    Et voila le chemin sur le ftp

    /games/halflife/cstrike/models/player/4everdad_ct/4everdad_ct.mdl (mais il a y également un fichier 4everdad_ct.mdl.ztmp)

     

    /games/halflife/cstrike/models/player/4everdad_te/4everdad_te.mdl(mais il a y également un fichier 4everdad_te.mdl.ztmp)

    Link to comment
    Share on other sites

    [...]

    precache_model("models/player/4everdad_ct/4everdad_ct.mdl")

    precache_model("models/player/4everdad_te/4everdad_te.mdl")

    [...]

    CS_SetModel(id, "admin_te")

    [...]

    CS_SetModel(id, "admin_ct")

    [...]

     

    Tu n'aurais pas oublié de remplacer 2 lignes ? :roll:

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

     Share

    ×
    ×
    • Create New...