if (strcmp("/vozibeton", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -2410.4307,-585.9673,132.6484))//cp1
{
SetPlayerCheckpoint(playerid, -2642.3608,1363.2247,6.4370, 8.0);//
GameTextForPlayer(playerid, "kada dodes do cp-a upisi /vratimjesalicu", 5000, 3);
}
return 1;
}[Pomoc] Problem s IsPlayerInRangeOfPoint
870
pregleda
3
postova
21. Okt. 2010.
Dobra dan. Imam jedan problemcic s time kako da s jednom komandom mogu doc do vise cp-a (kada dodem do prvog da mi izbaci drugi i tako dalje), evo komande kojom dodem do prvog cp-a:
Enforcer
Novi Član
90 / 100 XP
🌱Početnik(0)
265
Postovi:
106
Teme:
Pridružio se:Apr. 2010
22. Okt. 2010.
Koliko sam ja razumi ova komanda b tribala bit za neki posao.
evo pogledaj kako sam ja to napravio.
Ovo ubaci di su ti koamnde.
zatim ovo ubaci u public OnPlayerEnterCheckpoint(playerid)
UKOLIKO NESTO NISI RAZUMIO NEKI KOD ILI BILO STA PITAJ VAMO.
i to je to,nadam se da sam pomogao
evo pogledaj kako sam ja to napravio.
Ovo ubaci di su ti koamnde.
if (strcmp("/vozibeton", cmdtext, true, 10) == 0)
{
if(PlayerInfo != id posla)
{
DisablePlayerCheckpoint(playerid); //unistava predhodni cp
SetPlayerCheckpoint(playerid, X,Y,Z,Radius);
CP = 200; //ovaj broj 200 je id CP dakle to je kad igrac stane na ovaj 1 cp da ga autoatski salje na ostale
}
return 1;
}zatim ovo ubaci u public OnPlayerEnterCheckpoint(playerid)
//---------------------CP-----------------
else if(CP == 200) { CP = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 201) { CP = 202; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 202) { CP = 203; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 203) { CP = 204; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 204) { CP = 205; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 205) { CP = 206; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 206) { CP = 207; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 207) { CP = 208; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 208) { CP = 209; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, X,Y,Z,RADIUS); }
else if(CP == 209)//Kraj cp
{
DisablePlayerCheckpoint(playerid);
CP = 0;
}UKOLIKO NESTO NISI RAZUMIO NEKI KOD ILI BILO STA PITAJ VAMO.
i to je to,nadam se da sam pomogao
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava