Checkpoint dissappears
#6

Quote:
Originally Posted by Micko123
Посмотреть сообщение
PHP код:
hook OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == pizzaCheckpoint[playerid])
    {
        if(
IsPlayerAttachedObjectSlotUsed(playeridPIZZA_INDEX))
        {
            new 
string[126], earning random(5);
            
pizzaEarnings[playerid] += earning;
                    
            if(
pizzaDeliveryTimeLeft[playerid] > 0)
            {
                
pizzaDeliveryTimeLeft[playerid] = 0;
                
KillTimer(pizzaDeliveryTimer[playerid]);
                new 
tips random(MAX_TIP);
                
pizzaTips[playerid] += tips;
                
PlayerTextDrawHide(playeridpizzaTextDraw5[playerid]);
                
PlayerTextDrawHide(playeridpizzaTextDraw7[playerid]);
                
PlayerPlaySound(playerid11390.00.00.0);
           }    
           
ClearAnimations(playerid);
           
DestroyDynamicCP(pizzaCheckpoint[playerid]);
        }
        else
        {
           
SendClientMessage(playerid, -1"Here goes your message");
           return 
1;
        }
    }
    return 
1;

The checkpoint still dissappears when I enter it and the text is showed.
Reply


Messages In This Thread
Checkpoint dissappears [solved] - by Gusteakas - 28.11.2016, 13:13
Re: Checkpoint dissappears - by Micko123 - 28.11.2016, 17:47
Re: Checkpoint dissappears - by Gusteakas - 28.11.2016, 19:04
Re: Checkpoint dissappears - by Gusteakas - 28.11.2016, 22:23
Re: Checkpoint dissappears - by Micko123 - 29.11.2016, 07:32
Re: Checkpoint dissappears - by Gusteakas - 29.11.2016, 11:25

Forum Jump:


Users browsing this thread: 1 Guest(s)