Checkpoint dissappears
#1

Hello.

How I can do that the checkpoint would not dissappear when I do something in else statement? I want to print the message to remind player something and get back later but the checkpoint dissappears.

Код:
hook OnPlayerEnterDynamicCP(playerid, checkpointid)
{
	if(checkpointid == pizzaCheckpoint[playerid])
	{
        if(IsPlayerAttachedObjectSlotUsed(playerid, PIZZA_INDEX))
        {
            new string[126], earning = 5 + random(5);
            pizzaEarnings[playerid] += earning;
            		
            if(pizzaDeliveryTimeLeft[playerid] > 0)
            {
                pizzaDeliveryTimeLeft[playerid] = 0;
                KillTimer(pizzaDeliveryTimer[playerid]);
                
                new tips = 1 + random(MAX_TIP);
                pizzaTips[playerid] += tips;
    			
    		PlayerTextDrawHide(playerid, pizzaTextDraw5[playerid]);
            	PlayerTextDrawHide(playerid, pizzaTextDraw7[playerid]);
            	PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
	    }
			
	    ClearAnimations(playerid);
	    DestroyDynamicCP(pizzaCheckpoint[playerid]);
        }
        else
        {
	// else statement
	}
        }
	return 1;
}
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)