28.11.2016, 13:13
(
Последний раз редактировалось Gusteakas; 29.11.2016 в 12:29.
)
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.
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; }