[Ajuda] Sobre essA FS
#2

Abra o Filterscript e substitua a callback OnPlayerEditAttachedObject por essa:

pawn Код:
public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
                                   Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
                                   Float:fRotX, Float:fRotY, Float:fRotZ,
                                   Float:fScaleX, Float:fScaleY, Float:fScaleZ )
{
    new debug_string[256+1];
    format(debug_string,256,"SetPlayerAttachedObject(playerid,%d,%d,%d,%f,%f,%f,%f,%f,%f,%f,%f,%f)\n\r",
        index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);

    print(debug_string);
    SendClientMessage(playerid, 0xFFFFFFFF, debug_string);
    new File: fp = fopen("AttachedObject.txt", io_append);
    fwrite(fp, debug_string);
    fclose(fp);
   
    SetPlayerAttachedObject(playerid,index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);
    SendClientMessage(playerid, 0xFFFFFFFF, "You finished editing an attached object");
   
    return 1;
}
Quando vocк terminar de editar vai ver as coordenadas e vai ficar salvo no arquivo AttachedObject na pasta scriptfiles.
Reply


Messages In This Thread
Sobre essA FS - by zGuigui2068 - 28.01.2015, 17:46
Re: Sobre essA FS - by MultiKill - 28.01.2015, 17:57
Re: Sobre essA FS - by zGuigui2068 - 28.01.2015, 18:13
Re: Sobre essA FS - by MultiKill - 28.01.2015, 18:19
Re: Sobre essA FS - by zGuigui2068 - 28.01.2015, 18:27
Re: Sobre essA FS - by MultiKill - 28.01.2015, 18:28
Re: Sobre essA FS - by zGuigui2068 - 28.01.2015, 18:30
Re: Sobre essA FS - by zGuigui2068 - 28.01.2015, 19:01
Re: Sobre essA FS - by MultiKill - 28.01.2015, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)