- 0
Comanda /find
-
Similar Content
-
- 2 answers
- 632 views
-
Am o problema cu un battlepass,de ce nu merge comanda /misiuni cand o scriu,tin sa precizez ca script-ul mi l-a facut chatgpt
By cbnmihaita,
- 2 answers
- 374 views
-
- 3 replies
- 539 views
-
Comanda /spec
By VAurel,
- 4 answers
- 720 views
-
- 3 replies
- 626 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
TheGodfather
Salut, folosesc gamemode-ul bhood editat de hpq123 care este si pe net iar la comanda /find, cand cineva intra intr-un biz sau casa nu imi pune checkpoint la intrarea in casa, si pune unul aiurea, departe. In rest, cand jucatorul nu este intr-o casa sau biz imi arata bine. Ma puteti ajuta sa fac sa mearga?
YCMD:find(playerid, params[], help) {
if(JobWorking[playerid] == 1) return 1;
if(CP[playerid] != 0 || targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
new id,giveplayer[30],string[100];
if(PlayerInfo[playerid][pJob] != 6 && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pMember] != 14 && !IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu ai jobul 'Detective'.");
if(sscanf(params, "u",id)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/find <playerid/name>");
if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
if(Spectate[id] != 255) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!");
if(togfind[id] == 1) return SCM(playerid,COLOR_GREY, "Acel player nu poate fi urmarit!");
if(GetPVarInt(id, "Undercover") == 1) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
if(BizRobbed[playerid] != 0) return 1;
if(togfind[id] == 1 && OnDuty[playerid] == 0 && PlayerHit[playerid] == -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu poate fi urmarit!");
UsedFind[playerid] = 1;
GetPlayerName(id, giveplayer, sizeof(giveplayer));
new Float:X,Float:Y,Float:Z;
GetPlayerPos(id, X,Y,Z);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpointEx(playerid, X,Y,Z, 3.5);
targetfind[playerid] = id;
CP[playerid] = 294325;
format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d) care se afla in zona %s.",giveplayer,id,GetPlayerZone(id));
SCM(playerid,COLOR_YELLOW,string);
for(new m; m < 2; m++) {
if(PlayerInfo[playerid][pDailyMission][m] == 12) CheckMission(playerid, m);
}
return 1;
}
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.