- 0
Problema event
-
Similar Content
-
- 7 answers
- 1,670 views
-
- 3 answers
- 1,921 views
-
- 3 replies
- 236 views
-
- 1 reply
- 191 views
-
- 1 answer
- 590 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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