[Ajuda] stremar - dynamiccp
#2

PHP Code:
new CheckCarregar_TransportadorRefC[MAX_PLAYERS];
new 
CheckCarregar_Transportador_Final[MAX_PLAYERS];
CheckCarregar_TransportadorRefC[playerid] = CreateDynamicCP(-1005.3510,-676.9293,32.00787.0, -1, -1playeridSTREAMER_CP_SD, -10);
SetPlayerMapIcon(playerid0, -1005.3510,-676.9293,32.007800xFF0000AA0);
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.");
                
CheckCarregar_Transportador_Final[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");
    }
    else if(
checkpointid == CheckCarregar_Transportador_Final[playerid])
    {
        if(
IsPlayerInVehicleJob_01(playerid))
        {
            if(
IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
            {
                
DestroyDynamicCP(CheckCarregar_Transportador_Final[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;

desta maneira funcionarб corretamente.
Reply


Messages In This Thread
stremar - dynamiccp - by Cauezin - 19.03.2019, 22:38
Re: stremar - dynamiccp - by LeViNS - 20.03.2019, 14:33
Re: stremar - dynamiccp - by Cauezin - 20.03.2019, 20:50

Forum Jump:


Users browsing this thread: 1 Guest(s)