Kod:
Problem(error/warning): [pawn]forward PljackanjeZlatarica( playerid );
public PljackanjeZlatarica( playerid )
{
new string[ 128 ];
if(IsPlayerInRangeOfPoint(playerid, 3.0 ,-125.4892, 32.1270, 1172.6689))
{
if(ZlatoVreme[playerid] > 0)
{
ac_TogglePlayerControllable(playerid, false);
ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_LOOP", 4.1, 1, 0, 0, 0, 0, 1);
ZlatoVreme[playerid] --;
format(string, sizeof(string), "~y~Preostalo vreme %d sec", ZlatoVreme[playerid]);
GameTextForPlayer(playerid, string, 1200, 4);
}
else if(PljackaVreme[playerid] <= 0)
{
new zlato;
if(PI[playerid][xLevel] == 5) zlato += 2;
if(PI[playerid][xLevel] == 6) zlato += 5;
if(PI[playerid][xLevel] == 7) zlato += 7;
if(PI[playerid][xLevel] == 8) zlato += 10;
if(PI[playerid][xLevel] == 9) zlato += 12;
if(PI[playerid][xLevel] == 10) zlato += 15;
if(PI[playerid][xLevel] == 11) zlato += 17;
if(PI[playerid][xLevel] == 12) zlato += 20;
if(PI[playerid][xLevel] == 13) zlato += 23;
if(PI[playerid][xLevel] == 14) zlato += 26;
if(PI[playerid][xLevel] == 15) zlato += 30;
if(PI[playerid][xLevel] == 16) zlato += 33;
if(PI[playerid][xLevel] == 17) zlato += 36;
if(PI[playerid][xLevel] == 18) zlato += 40;
if(PI[playerid][xLevel] == 19) zlato += 50;
if(PI[playerid][xLevel] == 20) zlato += 70;
if(PI[playerid][xLevel] == 21) zlato += 80;
if(PI[playerid][xLevel] == 22) zlato += 99;
if(PI[playerid][xLevel] == 23) zlato += 113;
if(PI[playerid][xLevel] == 24) zlato += 117;
if(PI[playerid][xLevel] == 25) zlato += 125;
if(PI[playerid][xLevel] == 26) zlato += 128;
if(PI[playerid][xLevel] == 27) zlato += 129;
if(PI[playerid][xLevel] == 28) zlato += 132;
if(PI[playerid][xLevel] == 29) zlato += 137;
if(PI[playerid][xLevel] == 30) zlato += 140;
if(PI[playerid][xLevel] >= 31) zlato += random(350) + 190;
format(string, sizeof(string),"~w~Opljackali ste zlataru i uzeli ~g~%d grama !", zlato);
GameTextForPlayer(playerid, string, 6000, 4);
//SendClientMessageEx(playerid, Papytovaomiljena, "Opljackali ste zlataru i uzeli %d$!", zlato);
InfoMessage(playerid, "Imate 10 minuta da odnesete kofer sa novcem u svoju bazu (organizaciju)!");
InfoMessage(playerid, "Ukoliko umrete neko drugi ce moci uzeti kofer i odneti opljackani novac u svoju bazu.");
InfoMessage(playerid, "Takodje clanovi policije mogu vratiti kofer u zlataru i dobiti nagradu.");
Trifun_KillTimer(PljackanjeZlatareTimer[playerid]);
ZlatoVreme[playerid] = 0;
PostaviWanted(playerid, "Pljacka Zlatare", "Nepoznat", 6);
PljackaUToku = false;
ac_TogglePlayerControllable(playerid, true);
ClearAnimations(playerid);
SetPlayerAttachedObject(playerid, OBJECT_SLOT_LHAND, 1210, 5, 0.309078, 0.085499, 0.029562, 347.746734, 263.091888, 1.445542, 1.101942, 1.000000, 1.000000 );
Uzeo_Kofer[playerid] = 1; Kofer_Novac[playerid] = zlato; KOFER_NOVAC = zlato;
TimerZlataraUkloniKofer = SetTimer("UkloniKoferZlatare", 600000, false); //10 MIN
format(globalstring, sizeof(globalstring), "[VANDREDNE VESTI] Zlatara je opljackana ukradeno je %dg !", zlato);
OOCNews(0xC1151AFF, globalstring);
if(PI[ playerid ][ xClan ] == 7) SetPlayerCheckpoint(playerid, 1741.1969,-2054.1211,13.6722, 1.5);
else if(PI[ playerid ][ xClan ] == 8) SetPlayerCheckpoint(playerid, 1123.2765, -2037.0729, 69.8875, 1.5);
else if(PI[ playerid ][ xClan ] == 9) SetPlayerCheckpoint(playerid, 725.7545, -1276.1464, 13.6484, 1.5);
else if(PI[ playerid ][ xClan ] == 10) SetPlayerCheckpoint(playerid, 1298.4948, -798.3588, 84.1406, 1.5);
else if(PI[ playerid ][ xClan ] == 11) SetPlayerCheckpoint(playerid, 2495.3684, -1691.0653, 14.7656, 1.5);
else if(PI[ playerid ][ xClan ] == 12) SetPlayerCheckpoint(playerid, 2480.8748, -1536.6991, 24.1899, 1.5);
else if(PI[ playerid ][ xClan ] == 13) SetPlayerCheckpoint(playerid, 2628.0979, -1067.8927, 69.7156, 1.5);
else if(PI[ playerid ][ xClan ] == 14) SetPlayerCheckpoint(playerid, 2786.9792, -1952.7028, 13.5469, 1.5);
else if(PI[ playerid ][ xClan ] == 15) SetPlayerCheckpoint(playerid, -49.7495, -269.3630, 6.6332, 1.5);
else if(PI[ playerid ][ xClan ] == 16) SetPlayerCheckpoint(playerid, 681.5718 ,-473.3458, 16.5363, 1.5);
}
}
else
{
GameTextForPlayer( playerid, "~w~Otisli ste iz sefa!", 3000, 4) ;
ZlatoVreme[playerid] = 0;
SCM(playerid, Papytovaomiljena, "Otisli ste iz sefa. Pljacka zlatare je stopirana!");
Trifun_KillTimer(PljackanjeZlatareTimer[playerid]);
PostaviWanted( playerid, "Pokusaj pljacka zlatare", "Nepoznat", 6);
PljackaUToku = false;
ac_TogglePlayerControllable(playerid, true);
ClearAnimations(playerid);
OOCNews(0xC1151AFF, "[VANDREDNE VESTI] Pljacka Sarajevske Zlatare je prekinuta jer su se napadaci povukli!");
}
return true;
}
[/pawn]
Debug iz server_log: Ubacio sam sarajevsku zlataru i kad ocu da probam da je orobam pise da sam se odaljio a nisam jer obicno freez-a e sad samo sam kopiro sistem od beogradske pljacke i prebacio u sarajevo te promenio kordinate i ne znam sto nece da radi
Slika/video ingame problema(obavezno ako je ingame problem): https://ibb.co/VqQ7ZR5
Jao Zivkovicu ti si, Kevin Smith sa VP ovde, lider PD-a :D promeni samo ime na forumu i bice top, da nisi sjebao koordinate?
Citat: ᴛʜᴇꜱᴍᴏᴋᴇ poslato Jul 22, 2021, 20:04:12 POSLE PODNE
Jao Zivkovicu ti si, Kevin Smith sa VP ovde, lider PD-a :D promeni samo ime na forumu i bice top, da nisi sjebao koordinate?
e to mi staro ime tek cu menjam,e da jesam sjebo sam slucajno sam stavio od bg zlatare kordinate da se pljacka pa zato se i prekine ??? , aj dodji na bs ako hoces hahah :D