[Ajuda] CreateDynamicCP
#4

Use como base:

PHP Code:

new L_CheckPoint01[MAX_PLAYERS]; // CheckPoint carregar 1;
new UL_CheckPoint01[MAX_PLAYERS]; // Checkpoint descarregar 1;
cmd:work(playerid)
{
    
L_CheckPoint01[playerid] = CreateDynamicCP(-1005.3510,-676.9293,32.007810.0, -1, -1playeridSTREAMER_CP_SD, -1,  0);
    
SetPlayerMapIcon(playerid0, -1005.3510,-676.9293,32.007800xFF0000FFMAPICON_GLOBAL);
    return 
1;
}
public 
OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == L_CheckPoint01[playerid])
    {
        
SendClientMessage(playerid, -1"[WORK] Carga carregada, agora vб descarregar.");
        
DestroyDynamicCP(L_CheckPoint01[playerid]);
        
RemovePlayerMapIcon(playerid0);
        
L_CheckPoint01[playerid] = 0;
        
UL_CheckPoint01[playerid] = CreateDynamicCP(-1046.0258,-655.5824,32.007810.0, -1, -1playeridSTREAMER_CP_SD, -1,  0);
        
SetPlayerMapIcon(playerid0, -1046.0258,-655.5824,32.007800xFF0000FFMAPICON_GLOBAL);
        return 
1;
    }
    if(
checkpointid == UL_CheckPoint01[playerid])
    {
        
SendClientMessage(playerid, -1"[WORK] Carga descarregada com sucesso, bom trabalho.");
        
DestroyDynamicCP(UL_CheckPoint01[playerid]);
        
RemovePlayerMapIcon(playerid0);
        
UL_CheckPoint01[playerid] = 0;
        return 
1;
    }
    return 
1;

Reply


Messages In This Thread
CreateDynamicCP - by moura98 - 11.04.2019, 16:35
Re: CreateDynamicCP - by Ermanhaut - 12.04.2019, 08:29
Re: CreateDynamicCP - by moura98 - 12.04.2019, 10:10
Re: CreateDynamicCP - by Cauezin - 12.04.2019, 22:18
Re: CreateDynamicCP - by 1sbedx - 13.04.2019, 01:35

Forum Jump:


Users browsing this thread: 2 Guest(s)