Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted (edited)

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

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.