06/03/2022 14:43 
	
	
	bom estou com problema com Checkpoint, quando eu dou /missao
                                         aparece um Checkpoint ate ae tá funcionando, mais quando eu vou no último Checkpoint, entregar a mercadoria ele não desaparece, alguem ae pode me ajuda
Código:
#include <a_samp>
#include <DOF2>
#include <zcmd>
#include <sscanf>
////
#define Missao 21
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
#else
main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}
public OnGameModeExit()
{
    DOF2_Exit();
    return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint( playerid );
    SetPlayerCheckpoint(playerid,-1301.3088,2515.2935,87.1104, 7.0); // entregar mercadoria
    return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == Missao)
    {
        if (response)
        {
           if (listitem == 0)
           {
           SetPlayerCheckpoint(playerid,-1111.3707,-1654.6666,76.3672, 7.0); //pegar mercadoria
                 
           }
     }
}
    return 1;
}
///////
CMD:missao(playerid, params[])
{
   ShowPlayerDialog(playerid, Missao, DIALOG_STYLE_LIST, "Escolha uma Opção","Missão","Escolher","Cancelar");
   return 1;
}
	   
	

 k2bi#9906