[POMOC]HITNO

Započeo JONY
11. Sep. 2011.
510
pregleda
4
postova
JONY
4
Enforcer
11. Sep. 2011.
Skripta koju koristim:BN
Detaljan opis problema:
else if(CP == 800 && IsACombine(carid)) { CP = 801; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -126.6779,54.0763,2.6801,10.0); }
else if(CP == 801 && IsACombine(carid)) { CP = 802; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -183.3854,-75.7193,2.6792,10.0); }
   else if(CP == 802 && IsACombine(carid)) { CP = 803; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -195.7810,-78.0987,2.6794,10.0); }
   else if(CP == 803 && IsACombine(carid)) { CP = 804; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -147.4058,65.0547,2.6796,10.0); }
   else if(CP == 804 && IsACombine(carid)) { CP = 805; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -156.3861,73.4599,2.6904,10.0); }
   else if(CP == 805 && IsACombine(carid)) { CP = 806; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -213.7325,-82.2403,2.6799,10.0); }
   else if(CP == 806 && IsACombine(carid)) { CP = 807; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -225.9989,-80.7506,2.6832,10.0); }
   else if(CP == 807 && IsACombine(carid)) { CP = 808; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -182.1306,82.3061,2.6903,10.0); }
   else if(CP == 808 && IsACombine(carid)) { CP = 809; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -192.0852,85.7755,2.6767,10.0); }
   else if(CP == 809 && IsACombine(carid)) { CP = 810; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -241.1766,-69.2489,2.6823,10.0); }
   else if(CP == 810 && IsACombine(carid)) { CP = 811; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -257.0309,-67.9120,2.6809,10.0); }
   else if(CP == 811 && IsACombine(carid)) { CP = 812; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -208.8517,90.1254,2.4234,10.0); }
   else if(CP == 812 && IsACombine(carid)) { CP = 813; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -217.5222,97.6292,1.9916,10.0); }
else if(CP == 813 && IsACombine(carid)) { CP = 814; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -274.6205,-51.0260,2.6486,10.0); }
else if(CP == 814 && IsACombine(carid)) { CP = 815; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -67.9768,102.6790,3.1172,10.0); }
   else if(CP == 815 && IsACombine(carid))
{
CP = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTRED, "Upravo si zavrsio prikupljanje zita!");
TogglePlayerControllable(playerid, 0);
Combine12 = 1;
SetTimerEx("Combine1",10000, false, "i", playerid);
new randpay = 500 + random(50);
new bonus = 100 + random(50);

new payout = (randpay + bonus)/3;
GivePlayerCash(playerid, randpay + bonus);
SendClientMessage(playerid, 0x8D531AFF, "___________");
format(string, sizeof(string), "Zarada: %d$.", randpay);
SendClientMessage(playerid, 0x9A6735FF, string);
format(string, sizeof(string), "Bonus: %d$.", bonus);
SendClientMessage(playerid, 0xA97E53FF, string);
format(string, sizeof(string), "Poslodavac dobija: %d$.", payout);
SendClientMessage(playerid, 0xB28C65FF, string);
SendClientMessage(playerid, 0xB89571FF, "___________");
format(string, sizeof(string), "Ukupna zarada: %d$.", randpay + bonus);
SendClientMessage(playerid, 0xBF9F7FFF, string);

for(new i = 0; i < sizeof(SBusinesses); i++)
{
if(SBusinesses == 4)
{
  SBusinesses += payout;
  SaveSBusiness(i);
}
}
}


Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

jel ko hoce malo bolje pojasnit sta je sta ovde
FlasHica
5
Kingpin
11. Sep. 2011.
else if(CP == 801 && IsACombine(carid)) { CP = 802; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -183.3854,-75.7193,2.6792,10.0); }


CP - id checkpointa za odredjenog igraca
CP = 802; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -183.3854,-75.7193,2.6792,10.0);

brise postavljeni checkpoint na id '802' i postavlja novi umjesto njega tj. preuzima taj id '802'

Ako ti jos nesto nije jasno pitaj...
JONY
4
Enforcer
11. Sep. 2011.
ej treba mi pomoc kako cu zamjenit da drugi poso radim a da je ista funkcija kao i ova npr ja imam pozicije snimljene al nez kako cu mjenjat
[BWW] nåяcо
4
Enforcer
12. Sep. 2011.
JONY wrote on September 11, 2011, 7:20 pm:
ej treba mi pomoc kako cu zamjenit da drugi poso radim a da je ista funkcija kao i ova npr ja imam pozicije snimljene al nez kako cu mjenjat


IsACombine - ovo je samo da ti aute mogu proc kroz cp znaci dodas i tako za taj tvoj novi posao

ovi brojevi 800, 801, 802 itd znaci sam zamjenis s drugima i naravno na kraju izmjenis tebi po volji..

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha