- 0
Problema /suspect.
-
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
A L E X I N O
Problema intalnita (descriere):Am facut comanda /suspect pe DIALOG_STYLE_TABLIST_HEADERS, si am mai multe probleme, daca dau /suspect unu-i jucator care nu este online merge (dar nu il ofera), adica nu spune gen acel jucator este offline. A 2 problema fiind ca eu daca dau wanted unu-i jucator, la politisti apare ca wanted-ul a fost reclamat de acel jucator cii nu de mine. M-ai esti o problema, atunci cand ofer wanted unu-i jucator exemplu id 1, wanted-ul il ofera mereu la id-ul 0, orice id as scrie eu il ofera id-ului 0.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu): mai jos
Imagini / Video (optional): mai jos
Ati incercat sa rezolvati singur?:Da
CMD:suspect(playerid, params[]) { new amendat2; if(sscanf(params, "u", amendat2)) return SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /suspect [PlayerID/PartOfName]"); if(IsPlayerConnected(playerid)) { if(!IsACop(playerid)) { SendClientMessage(playerid, COLOR_GREY, "Nu faci parte dintr-un departament!"); return 1; } if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[playerid][pLeader] == 2) { SendClientMessage(playerid, COLOR_GREY, " Nu esti on duty!"); return 1; } new str[600]; strcat(str, "Motiv\tWanted nivel\tDrepturi predare\n"); strcat(str, " 0.Inchide meniul wanted\t\t\n"); strcat(str, " 1.Neconformare ordin\t2\t{33FF00}cu drept\n"); strcat(str, " 2.Neplata amenda\t2\t{33FF00}cu drept\n"); strcat(str, " 3.Fugar\t6\t{FF0000}fara drept\n"); strcat(str, " 4.Atacare politist\t4\t{33FF00}cu drept\n"); strcat(str, " 5.Atacare civil\t1\t{33FF00}cu drept\n"); strcat(str, " 6.Omorare politist\t6\t{FF0000}fara drept\n"); strcat(str, " 7.Posesie droguri\t3\t{33FF00}cu drept\n"); strcat(str, " 8.Complice\t5\t{FF0000}fara drept\n"); strcat(str, " 9.Furt vehicul \t1\t{33FF00}cu drept\n"); strcat(str, "10.Rapire civil\t3\t{33FF00}cu drept\n"); strcat(str, "11.Apel nefondat 112\t1\t{33FF00}cu drept"); ShowPlayerDialog(playerid, DIALOG_WANTED,DIALOG_STYLE_TABLIST_HEADERS, "Selecteaza wanted:", str,"Alege", "Iesi"); } else { SendClientMessage(playerid, COLOR_GREY, "Acel jucator este offline !"); return 1; } return 1; }if(dialogid == DIALOG_WANTED) { if(listitem == 0) { SendClientMessage(playerid, COLOR_SYN, "* Ai inchis meniul cu wanted"); } if(listitem == 1) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Neconformare ordin - cu drept", 2); PlayerInfo[giveplayerid][pWanted] = 2; Update(giveplayerid,pWantedx); } if(listitem == 2) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Neplata amenda - cu drept", 2); PlayerInfo[giveplayerid][pWanted] = 2; Update(giveplayerid,pWantedx); } if(listitem == 3) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Fugar - fara drept", 6); PlayerInfo[giveplayerid][pWanted] = 6; Update(giveplayerid,pWantedx); } if(listitem == 4) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Atacare politist - cu drept", 4); PlayerInfo[giveplayerid][pWanted] = 4; Update(giveplayerid,pWantedx); } if(listitem == 5) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Atacare civil - cu drept", 1); PlayerInfo[giveplayerid][pWanted] = 1; Update(giveplayerid,pWantedx); } if(listitem == 6) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Omorare politist - fara drept", 6); PlayerInfo[giveplayerid][pWanted] = 6; Update(giveplayerid,pWantedx); } if(listitem == 7) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Posesie droguri - cu drept", 3); PlayerInfo[giveplayerid][pWanted] = 3; Update(giveplayerid,pWantedx); } if(listitem == 8) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Complice - fara drept", 5); PlayerInfo[giveplayerid][pWanted] = 5; Update(giveplayerid,pWantedx); } if(listitem == 9) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Furt vehicul - cu drept", 1); PlayerInfo[giveplayerid][pWanted] = 1; Update(giveplayerid,pWantedx); } if(listitem == 10) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Rapire civil - cu drept", 3); PlayerInfo[giveplayerid][pWanted] = 3; Update(giveplayerid,pWantedx); } if(listitem == 11) { new giveplayerid; SetPlayerCriminal(giveplayerid,999,"Apel nefondat 112 - cu drept", 1); PlayerInfo[giveplayerid][pWanted] = 1; Update(giveplayerid,pWantedx); } return 1; }function SetPlayerCriminal(playerid,turner,reason[],wanted) { AddCrime(playerid, reason, wanted); if(turner == 999) { format(gString, sizeof(gString), "Ai comis o crima: %s. Reclamant: %s.", reason, GetName(playerid)); SendClientMessage(playerid, COLOR_YELLOW, gString); format(gString, sizeof(gString), "HQ: Catre toate unitatile, o crima a fost raportata de: %s.", GetName(playerid)); SendFactionMessage(1, COLOR_RADIO, gString); SendFactionMessage(2, COLOR_RADIO, gString); format(gString, sizeof(gString), "HQ: Crima: %s, Suspect: %s",reason, GetName(playerid)); SendFactionMessage(1, COLOR_RADIO, gString); SendFactionMessage(2, COLOR_RADIO, gString); } else { format(gString, sizeof(gString), "Ai comis o crima: %s. Reclamant: %s.",reason,GetName(turner)); SendClientMessage(playerid, COLOR_YELLOW, gString); format(gString, sizeof(gString), "HQ: Catre toate unitatile, o crima a fost raportata de: %s",GetName(turner)); SendFactionMessage(1, COLOR_RADIO, gString); SendFactionMessage(2, COLOR_RADIO, gString); format(gString, sizeof(gString), "HQ: Crima: %s, Suspect: %s",reason,GetName(playerid)); SendFactionMessage(1, COLOR_RADIO, gString); SendFactionMessage(2, COLOR_RADIO, gString); } if(PlayerInfo[playerid][pWanted] + wanted < 6) { PlayerInfo[playerid][pWanted] += wanted; Update(playerid, pWantedx); } else { PlayerInfo[playerid][pWanted] = 6; Update(playerid, pWantedx); } PlayerInfo[playerid][pWantedLost] = 910; Update(playerid, pWantedLostx); TextDrawShowForPlayer(playerid, WantedTime[playerid]); PlayerInfo[playerid][pCrimes] ++; Update(playerid, pCrimesx); SetPlayerWantedLevel(playerid,PlayerInfo[playerid][pWanted]); format(gString, sizeof(gString), "Nivel Wanted Actual: %d", PlayerInfo[playerid][pWanted]); SendClientMessage(playerid, COLOR_YELLOW, gString); if(PlayerInfo[playerid][pWanted] == 6) GiveAchievement(playerid, 13, "Be the most wanted", 100); }
Edited by A L E X I N O7 answers to this question
Recommended Posts