streamer - DynamicCP
#1

Hello,

I'm doing a simple delivery system with dynamic checkpoints, using the include "streamer", but it's not working properly.
The right thing would be to enter the checkpoint and start the job, destroy it, create another checkpoint, and when he entered that new checkpoint, he would finish the job.
But he's just starting out and finishing work at the same checkpoint instantly.

What am I doing wrong?






The code:


PHP код:

                    CheckCarregar_TransportadorRefC
[playerid] = CreateDynamicCP(-1005.3510,-676.9293,32.00787.0, -1, -1playeridSTREAMER_CP_SD, -10);
                    
SetPlayerMapIcon(playerid0, -1005.3510,-676.9293,32.007800xFF0000AA0); 
PHP код:

public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == CheckCarregar_TransportadorRefC[playerid])
    {
        if(
IsPlayerInVehicleJob_01(playerid))
        {
            if(
IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
            {
                
DestroyDynamicCP(CheckCarregar_TransportadorRefC[playerid]);
                
RemovePlayerMapIcon(playerid0);
                
SendClientMessage(playerid, -1"loading.");
                
CheckDes_TransportadorRefC[playerid] = CreateDynamicCP(264.9304,1388.5432,10.58597.0, -1, -1playeridSTREAMER_CP_SD, -10);
                
SetPlayerMapIcon(playerid0264.9304,1388.5432,10.585900xFF0000AA0);
            } else 
SendClientMessage(playerid, -1"Vocк nгo estб com o trailer da sua profissгo engatado");
        } else return 
SendClientMessage(playerid, -1"Esse nгo й seu veiculo de trabalho");
    }
    if(
checkpointid == CheckDes_TransportadorRefC[playerid])
    {
        if(
IsPlayerInVehicleJob_01(playerid))
        {
            if(
IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
            {
                
DestroyDynamicCP(CheckDes_TransportadorRefC[playerid]);
                
Player[playerid][pTrabalhando] = false;
                
SendClientMessage(playerid, -1"finished.");
                
RemovePlayerMapIcon(playerid0);
            } else 
SendClientMessage(playerid, -1"Vocк nгo estб com o trailer da sua profissгo engatado");
        } else return 
SendClientMessage(playerid, -1"Esse nгo й seu veiculo de trabalho");
    }
    return 
1;

Sorry for my bad English, this is not my language forum, but I came to do this post here because the creator of the streamer is from that area.
Reply


Messages In This Thread
streamer - DynamicCP - by Cauezin - 19.03.2019, 22:00
Re: streamer - DynamicCP - by justinnater - 21.03.2019, 01:03
Re: streamer - DynamicCP - by Cauezin - 21.03.2019, 18:33
Re: streamer - DynamicCP - by antixgaming - 22.03.2019, 19:06
Re: streamer - DynamicCP - by Pottus - 23.03.2019, 04:24

Forum Jump:


Users browsing this thread: 2 Guest(s)