[POMOC]CHECKPOINTOVI

Započeo Dictator
25. Nov. 2015. Zaključano
216
pregleda
2
postova
antesvkajo
3
Hustler
25. Nov. 2015.
Skripta koju koristim:0
Opis problema o kojem se radi😄akle nece da mi makne prvi checkpoint smao ostane na njemu, vidit ćete kod mora bit neka greska.
Dio skripte:
CMD:zapocniciscenje(playerid, params[])
{
if(posao == 0)
{
SendClientMessage(playerid, -1, "Nisi zaposlen kao cistac snjega.");
}
if(!IsPlayerInVehicle(playerid, vozilo))
{
SendClientMessage(playerid, -1, "Nisi u vozilu za ciscenje snjega.");
}
if(IsPlayerInVehicle(playerid, vozilo))
{
if(posao == 1)
{
CPC = 1;
SetPlayerCheckpoint(playerid, 1617, -1730, 13, 10);
SendClientMessage(playerid, -1, "Idite po CPovima!");
}
}
return 1;
}
forward OnPlayerEnterCheckPoint(playerid);
public OnPlayerEnterCheckPoint(playerid)
{
if(CPC == 1)
{
DisablePlayerCheckpoint(playerid);
CPC = 2;
SetPlayerCheckpoint(playerid, 1541.2781,-1729.9689,13.3828, 10);
}

if(CPC == 2)
{
DisablePlayerCheckpoint(playerid);
CPC = 3;
SetPlayerCheckpoint(playerid, 1532.4080,-1605.6807,13.3828, 10);
}
if(CPC == 3)
{
DisablePlayerCheckpoint(playerid);
CPC = 4;
SetPlayerCheckpoint(playerid, 1607.8193,-1595.5736,13.5498, 10);
}
if(CPC == 4)
{
DisablePlayerCheckpoint(playerid);
CPC = 5;
SetPlayerCheckpoint(playerid, 1616.0313,-1641.1801,13.5469, 10);
}
if(CPC == 5)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, -1, "Završio si rutu i zaradio 150$");
}
return 1;
}

Slika (neobavezno):
osman2578
7
Underboss
🔥3
25. Nov. 2015.
Probaj ovako
forward OnPlayerEnterCheckPoint(playerid);
public OnPlayerEnterCheckPoint(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 5, 1617, -1730, 13))
{
  if(CPC == 1)
{
DisablePlayerCheckpoint(playerid);
CPC = 2;
SetPlayerCheckpoint(playerid, 1541.2781,-1729.9689,13.3828, 10);
}
}
if(!IsPlayerInRangeOfPoint(playerid, 5, 1541.2781,-1729.9689,13.3828))
{
if(CPC == 2)
{
DisablePlayerCheckpoint(playerid);
CPC = 3;
SetPlayerCheckpoint(playerid, 1532.4080,-1605.6807,13.3828, 10);
}
}
if(!IsPlayerInRangeOfPoint(playerid, 5, 1532.4080,-1605.6807,13.3828))
{
if(CPC == 3)
{
DisablePlayerCheckpoint(playerid);
CPC = 4;
SetPlayerCheckpoint(playerid, 1607.8193,-1595.5736,13.5498, 10);
}
}
if(!IsPlayerInRangeOfPoint(playerid, 5, 1607.8193,-1595.5736,13.5498))
{
if(CPC == 4)
{
DisablePlayerCheckpoint(playerid);
CPC = 5;
SetPlayerCheckpoint(playerid, 1616.0313,-1641.1801,13.5469, 10);
}
}
if(!IsPlayerInRangeOfPoint(playerid, 5, 1616.0313,-1641.1801,13.5469))
{
if(CPC == 5)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, -1, "Završio si rutu i zaradio 150$");
}
}
return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha