Započeo ScarfyYT
•6. Jun 2024.• ZaključanoPOMOC vozila se respawnuju
568
pregleda
5
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
144
Postovi:
25
Teme:
Pridružio se:Jan. 2020
6. Jun 2024.
Nakon 2god sam se odlucio vratiti sampu malo pa sam poceo ponovo raditi na modu koji sam davno zapoceo i nailazim na isti problem a to je da se sva vozila respawnuju nekih 20ak sekundi nakon sto izadjete iz njih...
Vise ljudi je ulazilo na mod i niko nije uspio naci problem (Nigdje nema nastiman nikakav timer i slicno da bi respawnovao nakon izlaska iz vozila) pa me zanima da li neko ima predstavu sta bi mogao biti problem ili mi je jednostavnije citav cos sistem prom...
Vise ljudi je ulazilo na mod i niko nije uspio naci problem (Nigdje nema nastiman nikakav timer i slicno da bi respawnovao nakon izlaska iz vozila) pa me zanima da li neko ima predstavu sta bi mogao biti problem ili mi je jednostavnije citav cos sistem prom...
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,136
Postovi:
10
Teme:
Pridružio se:Maj 2015
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
144
Postovi:
25
Teme:
Pridružio se:Jan. 2020
6. Jun 2024.
#update kurac sam nasao 🤐 🤐
public CarCheck()
{
// new string;
foreach (Player, j)
{
new Float:health;
GetPlayerHealth(j, health);
if(STDPlayer==1)
{
GetPlayerHealth(j, health);
SetPlayerHealth(j, health - 5.0);
}
else if(STDPlayer==2)
{
GetPlayerHealth(j, health);
SetPlayerHealth(j, health - 12.0);
}
else if(STDPlayer==3)
{
GetPlayerHealth(j, health);
SetPlayerHealth(j, health - 20.0);
}
if(PlayerInfo < 0)
{
if(MoneyMessage==0)
{
//format(string, sizeof(string), "{00c0ff}Napomena: U dugovima ste {FFFFFF}%d${00c0ff}, skupite pare do sledeceg PayDay-a ili idete u zatvor...", PlayerInfo);
//SendClientMessage(j, COLOR_LIGHTRED, string);
MoneyMessage = 1;
}
}
else
{
MoneyMessage = 0;
}
}
for(new c = 1; c < 254; c++)
{
foreach (Player, i)
{
if (PlayerInfo == 5)
{
SetVehicleParamsForPlayer(c, i, 0, 0);
}
}
if (gLastDriver == 330)
{
// CarRespawn(c);
}
if (gLastDriver >= 329)
{
gLastDriver++;
}
//foundowner = -1;
}
return 1;
}
public CarCheck()
{
// new string;
foreach (Player, j)
{
new Float:health;
GetPlayerHealth(j, health);
if(STDPlayer==1)
{
GetPlayerHealth(j, health);
SetPlayerHealth(j, health - 5.0);
}
else if(STDPlayer==2)
{
GetPlayerHealth(j, health);
SetPlayerHealth(j, health - 12.0);
}
else if(STDPlayer==3)
{
GetPlayerHealth(j, health);
SetPlayerHealth(j, health - 20.0);
}
if(PlayerInfo < 0)
{
if(MoneyMessage==0)
{
//format(string, sizeof(string), "{00c0ff}Napomena: U dugovima ste {FFFFFF}%d${00c0ff}, skupite pare do sledeceg PayDay-a ili idete u zatvor...", PlayerInfo);
//SendClientMessage(j, COLOR_LIGHTRED, string);
MoneyMessage = 1;
}
}
else
{
MoneyMessage = 0;
}
}
for(new c = 1; c < 254; c++)
{
foreach (Player, i)
{
if (PlayerInfo == 5)
{
SetVehicleParamsForPlayer(c, i, 0, 0);
}
}
if (gLastDriver == 330)
{
// CarRespawn(c);
}
if (gLastDriver >= 329)
{
gLastDriver++;
}
//foundowner = -1;
}
return 1;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
