Započeo Arnel_Bp
•13. Jun 2014.• Zaključano[pomoc]Razbi lisice cmd
234
pregleda
3
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
552
Postovi:
155
Teme:
Pridružio se:Maj 2013
13. Jun 2014.
Skripta koju koristim: moja od 0
Detaljan opis problema: Radim komandu da razbije lisice ako je u lisicama osumljiceni... Ali nesto dobro ne radi
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Kada kucam jednom /bc onda ja dobijem wanted lvl ako drugi put kucam pa bilo kad pise mi da moram sacekati prije sledece upotrebe nzm gde je problem, ako vam jos koji dio skripte treba samo recite, ja cu vam dati
Detaljan opis problema: Radim komandu da razbije lisice ako je u lisicama osumljiceni... Ali nesto dobro ne radi
Dio skripte:
CMD:bc(playerid, params[])
{
if(Ulogiran == 0) return SendClientMessage(playerid, 0xFF0000FF, "Moras se spawnati da bi mogao da koristis ovu komandu");
if(cuffed == 0) return SCMF(playerid, 0xFF0000FF, "Nisi u lisicama i nemozes koristiti ovu komandu!");
if(CuffedTime >= 1) return SCMF(playerid, 0xFF0000FF, "Moras sacekati prije sledece upotrebe razbijanja lisica");
new breakcuffsrand = random(100);
new string;
if(breakcuffsrand >=26 && breakcuffsrand <=100) // Failed
{
new escapedname;
GetPlayerName(playerid,escapedname,24);
new plwl = GetPlayerWantedLevel(playerid);
new pcol = GetPlayerColor(playerid);
SetPlayerWantedLevel(playerid, plwl +1 );
SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
plwl = GetPlayerWantedLevel(playerid);
format(string, sizeof(string), "(ATTEMPTED ESCAPE) Wanted Level: %d",plwl);
SendClientMessage(playerid,pcol,string);
SendClientMessage(playerid,0xFF0000FF,"You have been seen trying to escape from the handcuffs. Attempt failed");
format(string, sizeof(string), "%s(%d) Has tried to escape from handcuffs",escapedname,playerid);
CuffedTime =10;
printf("%s",string);
commitedcrimerecently +=120;
for(new i=0;i {
if(Ulogiran == 1)
{
if(GetDistanceBetweenPlayers(playerid,i) < 25)
{
new string1;
new string2;
new current_zone;
current_zone = player_zone;
format(string1, sizeof(string1), "DISPATCH: (ATTEMPTED ESCAPE) %s(%d) Has attempted to escape from handcuffs",escapedname,playerid);
format(string2, sizeof(string2), "Please respond and secure suspect: %s(%d) - Location: %s",escapedname,playerid,zones);
SendClientMessage(i, 0x4169FFAA, string1);
SendClientMessage(i, 0x4169FFAA, string2);
}
}
}
return 1;
}
else
if(breakcuffsrand >=0 && breakcuffsrand <=25) // complete
{
TogglePlayerControllable(playerid, 1);
cuffed =0;
new escapedname;
new plwl = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, plwl +4 );
GetPlayerName(playerid,escapedname,24);
GameTextForPlayer(playerid,"~r~ESCAPED~n~FROM HANDCUFFS",6000,3);
new pcol = GetPlayerColor(playerid);
plwl = GetPlayerWantedLevel(playerid);
SendClientMessage(playerid, 0xA9A9A9AA, "|_Crime Commited_|");
format(string, sizeof(string), "(HANDCUFF ESCAPE) Wanted Level %d",plwl);
SendClientMessage(playerid,pcol,string);
format(string, sizeof(string), "%s(%d) Has escaped from handcuffs",escapedname,playerid);
printf("%s",string);
commitedcrimerecently +=360;
for(new i=0;i {
if(Ulogiran == 1)
{
if(GetDistanceBetweenPlayers(playerid,i) < 25)
{
new string1;
new string2;
new current_zone;
current_zone = player_zone;
format(string1, sizeof(string1), "DISPATCH: (HANDCUFF ESCAPE) %s(%d) Has escaped from handcuffs",escapedname,playerid);
format(string2, sizeof(string2), "Please respond and take suspect: %s(%d) into custody. Location: %s",escapedname,playerid,zones);
SendClientMessage(i, 0x4169FFAA, string1);
SendClientMessage(i, 0x4169FFAA, string2);
}
}
}
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
Kada kucam jednom /bc onda ja dobijem wanted lvl ako drugi put kucam pa bilo kad pise mi da moram sacekati prije sledece upotrebe nzm gde je problem, ako vam jos koji dio skripte treba samo recite, ja cu vam dati
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
552
Postovi:
155
Teme:
Pridružio se:Maj 2013
13. Jun 2014.
Quote from June 13, 2014, 8:35 am:
Pojasni problem i skriptas uzasno ovo se moze skratiti do pola.
Znaci kada policajac /cuff nekoga onda ovaj osumljiceni bude u lisicama, i ako osumljiceni proba da razbije lisice koristeci komandu /bc onda mu pise da je fail i da pokusa ponovo, kada pokusa ponovo onda mu pise ovo
if(CuffedTime >= 1) return SCMF(playerid, 0xFF0000FF, "Moras sacekati prije sledece upotrebe razbijanja lisica");stavio sam timere za ovo ali nest opet ne ide... ako me shvatas?
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava