- 0
Problema event
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
TheGodfather
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
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now