Skin

« Older   Newer »
 
  Share  
.
  1. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    ragazzi nella lux c'è un comando usaskin e salvaskin! però vorrei metterli in gm con i soliti fwrite ecc visto che li nella lux usa ldudb!
    in pratica ho gia fatto il comando per settare le skin! ora mi server un comando che mi salva la skin che ho in quell'istante quindi getplayerskin ecc d mi salva il nome del player in un file .txt con accanto l'id della skin appena salvata! quindi ogni nome una skin dedicata.. poi volevo un comando che fa mettere la skin salvata appunto legge il nome del player nel file txt e quindi la skin e la setta! qualcuno che perfavore puo farmelo? :(
     
    .
  2. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    up
     
    .
  3.     +1   +1   -1
     
    .
    Avatar

    Senior Member

    Group
    Owners
    Posts
    18,167
    Reputazione
    +4,067
    Location
    San Siro

    Status
    Anonymous
    Sono d'accordo con l'aiutare, col darti una mano, ma non devi approfittarne e prenderti tutto il braccio
     
    .
  4. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    scusa se ho fatto troppo discussione in una volta!!! volevo farne una sola ma però mi sono venute i mente queste cose durante i giorni! dopo questa non chiedero piu aiuto per un po faccio da solo! sapresti aiutarmi almeno solo in questo perfavore?
     
    .
  5. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    UP

    Edited by Mr.Giovanni96 - 11/3/2015, 23:13
     
    .
  6. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    UP
     
    .
  7.     +1   -1
     
    .
    Avatar

    Senior Member

    Group
    Owners
    Posts
    18,167
    Reputazione
    +4,067
    Location
    San Siro

    Status
    Anonymous
    Sono d'accordo con l'aiutarti, ma non è che le cose te le posso fare io
     
    .
  8. TheRafaxato
        +1   -1
     
    .

    User deleted


    Googla, fai gli enum, definisci la cartella ecc ecc.
     
    .
  9. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    non ho trovato niente di questo genere su google..
     
    .
  10. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    up
     
    .
  11. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    up
     
    .
  12. Mr.Giovanni96
        +1   -1
     
    .

    User deleted


    up
     
    .
  13. Amnesia~.
        +1   -1
     
    .

    User deleted


    up
     
    .
  14.     +1   -1
     
    .
    Avatar

    Member

    Group
    Member
    Posts
    260
    Reputazione
    +15
    Location
    Milano

    Status
    Anonymous
    L'ho fatto in dini,ricorda l'include "dini.inc" e la cartella "SkinUtenti" in scriptfiles.

    HTML
    #include <a_samp>
    #include <dini>

    #define GAMEMODE 1
    #define FILTERSCRIPT 0


    #if GAMEMODE == 1
    public OnGameModeInit()
    {
    return 1;
    }
    main(){}
    #endif

    #if FILTERSCRIPT == 1
    #if defined FILTERSCRIPT

    public OnFilterScriptInit()
    {
    return 1;
    }

    public OnFilterScriptExit()
    {
    return 1;
    }
    #endif
    #endif

    public OnPlayerDisconnect(playerid, reason)
    {
    new fileditesto[128], NomePlayer[MAX_PLAYER_NAME];
    GetPlayerName(playerid, NomePlayer, sizeof(NomePlayer));
    format(fileditesto, sizeof(fileditesto), "\\SkinUtenti\\%­s.ini", NomePlayer);//"SkinUtenti" è il nome della tua cartella in scriptfiles.
    if(!dini_Exists(fileditesto))
    dini_Create(fileditesto);
    dini_IntSet(fileditesto, "Skin Attuale:",GetPlayerSkin(playerid));
    return 1;
    }

    public OnPlayerSpawn(playerid)
    {
    new fileditesto[128], NomePlayer[MAX_PLAYER_NAME];
    GetPlayerName(playerid, NomePlayer, sizeof(NomePlayer));
    format(fileditesto, sizeof(fileditesto), "\\SkinUtenti\\%­s.ini", NomePlayer);
    if(dini_Exists(fileditesto))
    {
    SetTimerEx("SalvataggioSpawn", 100, false, "d", playerid);
    }
    return 1;
    }

    forward SalvataggioSpawn(playerid);
    public SalvataggioSpawn(playerid)
    {
    new fileditesto[128], NomePlayer[MAX_PLAYER_NAME];
    GetPlayerName(playerid, NomePlayer, sizeof(NomePlayer));
    format(fileditesto, sizeof(fileditesto), "\\SkinUtenti\\%­s.ini", NomePlayer);
    SetPlayerSkin(playerid, dini_Int(fileditesto, "Skin Attuale:"));
    return 1;
    }


    Edited by Heagab - 26/3/2015, 22:46
     
    .
  15. _Geko_
        +1   -1
     
    .

    User deleted


    se glie lo fai tu non impara mai, almeno spiegagli il codice
     
    .
16 replies since 11/3/2015, 03:35   295 views
  Share  
.
Top