Jump to content
  • 0

Problema event


TheGodfather

Question

Salut, cand iau aceasta servieta, imi apare un checkpoint pe harta si trebuie sa o duc acolo pentru a castiga eventul dar daca merg la o casa si intru in iconita asta imi spune ca am terminat eventul, ceea ce e incorect image.png.e6a88316f1106b589af3d7da73145017.png

image.png.bd6ddb178cee8a60a86b6cf6464da437.png

aici este partea de cod care verifica daca ai luat servieta:

public OnPlayerPickUpPickup(playerid, pickupid) {
    if(pickupid == CashboxPickup)
        {
            PlayerPlaySound(playerid, 1150, 0, 0, 0);
            new strr[128], pName[MAX_PLAYER_NAME];
            DestroyPickup(CashboxPickup);
            CashboxOwner = playerid;
            GetPlayerName(playerid, pName, sizeof(pName));
            format(strr, 128, "{ff6600}%s {FFFFFF} a luat servieta! Omorati-l pana nu o duce la destinatie!", pName);
            SendClientMessageToAll(0xFFD700AA, strr);
            SendClientMessageToAll(0xFFD700AA,"{FFFFFF}Foloseste{00B1E6} /locate{FFFFFF} pentru a vedea unde se afla posesorul servietei.");
            SendClientMessage(playerid,0xAA3333AA,"{E4B339}Esti in posesia servietei! Du-te cu ea la destinatie cat mai repede!");
            new rand = random(sizeof(DropLocation));
            IsCashBoxStarted = 1;

            CP[playerid] = SetPlayerCheckpointEx(playerid, DropLocation[rand][0], DropLocation[rand][1], DropLocation[rand][2], 3);
        }
}

Edited by TheGodfather
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.