Započeo Dictator
•25. Nov. 2015.• Zaključano[POMOC]CHECKPOINTOVI
236
pregleda
2
postova
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
96
Postovi:
35
Teme:
Pridružio se:Jan. 2014
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:
Slika (neobavezno):
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):
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos2
Aktivan Član
3 / 250 XP
Početnik(1)
685
Postovi:
98
Teme:
Pridružio se:Jan. 2014
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
