Oko player enter cp 2

Započeo Deken, Novembar 21, 2017, 17:47:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim : mod od 0
Detaljan Opis problema:napravio sam posao i sve radim odem prvi marker i udjem kad ono mi ucita cp od kosaca trave pokusao sam da ga drugacije ispravim ali nece nikako zna ko prije sam postavio verziju koju sam mislio da radi ali ne radi i hteo sam sacekati malo od postavljanja temi
Dio skripte:
Pawno Code: [Izaberi]

public OnPlayerEnterCheckpoint(playerid)
{

//===========================[KOSAC TRAVE]=================================//
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
DisablePlayerCheckpoint(playerid);
Start[playerid]++;

if(Start[playerid] == 0)
{
SetPlayerCheckpoint(playerid, 1910.9065,-1183.4401,22.4342,3.0);
}
else if(Start[playerid] == 1)
{
SetPlayerCheckpoint(playerid, 1931.7922,-1163.5945,21.7143,3.0);
}
else if(Start[playerid] == 2)
{
SetPlayerCheckpoint(playerid, 1987.4614,-1160.8689,20.9246,3.0);
}
else if(Start[playerid] == 3)
{
SetPlayerCheckpoint(playerid, 2002.5663,-1151.8746,22.6814,3.0);
}
else if(Start[playerid] == 4)
{
SetPlayerCheckpoint(playerid, 2033.7629,-1153.7010,23.1089,3.0);
}
else if(Start[playerid] == 5)
{
SetPlayerCheckpoint(playerid, 2048.2009,-1175.2698,23.3794,3.0);
}
else if(Start[playerid] == 6)
{
SetPlayerCheckpoint(playerid, 2051.2400,-1192.6033,23.6568,3.0);
}
else if(Start[playerid] == 7)
{
SetPlayerCheckpoint(playerid, 2036.9088,-1211.2786,22.7420,3.0);
}
else if(Start[playerid] == 8)
{
SetPlayerCheckpoint(playerid, 2024.1387,-1231.1516,21.9697,3.0);
}
else if(Start[playerid] == 9)
{
SetPlayerCheckpoint(playerid, 2010.5756,-1243.9318,22.9093,3.0);
}
else if(Start[playerid] == 10)
{
SetPlayerCheckpoint(playerid, 1967.6573,-1237.8304,20.0643,3.0);
}
else if(Start[playerid] == 11)
{
SetPlayerCheckpoint(playerid, 1934.7108,-1241.4706,18.1986,3.0);
}
else if(Start[playerid] == 12)
{
SetPlayerCheckpoint(playerid, 1899.2908,-1240.4778,15.3721,3.0);
}
else if(Start[playerid] == 13)
{
SetPlayerCheckpoint(playerid, 1879.1080,-1216.7605,17.5216,3.0);
}
else if(Start[playerid] == 14)
{
SetPlayerCheckpoint(playerid, 1882.9692,-1198.0802,20.8116,3.0);
}
else if(Start[playerid] == 15)
{
SetPlayerCheckpoint(playerid, 1888.9762,-1178.1691,23.8187,3.0);
}
else if(Start[playerid] == 16)
{
SetPlayerCheckpoint(playerid, 1921.9597,-1161.4310,22.5862,3.0);
}
else if(Start[playerid] == 17)
{
SetPlayerCheckpoint(playerid, 1992.9346,-1160.7639,20.9698,3.0);
}
else if(Start[playerid] == 18)
{
SetPlayerCheckpoint(playerid, 2030.7892,-1207.1803,21.9423,3.0);
}
else if(Start[playerid] == 19)
{
SetPlayerCheckpoint(playerid, 2016.4780,-1223.7859,21.5503,3.0);
}
else if(Start[playerid] == 20)
{
SetPlayerCheckpoint(playerid, 1995.2039,-1228.4075,20.5757,3.0);
}
else if(Start[playerid] == 21)
{
GivePlayerMoney(playerid , 700);
SendClientMessage(playerid, -1, ""CRVENA"[GAZDA]"BELA"Pokosili ste travnjak i dobili platu u iznosu od 700 dolara!");
Start[playerid] = 0;
kositravu[playerid] = 0;
}
//============================================[BUREKDZIJA]============================================//
if(Start1[playerid] == 1)
{
SendClientMessage(playerid, -1,""CRVENA"[GAZDA]"BELA"Sad odvezite meso u fabriku bureka");
Start1[playerid]++ ;
SetPlayerCheckpoint(playerid, 1151.2487,-1204.6345,19.3616,3.0);
}
else if(Start1[playerid] == 2)
{
GivePlayerMoney(playerid, 2000);
dostavimeso[playerid] = 0;
Start1[playerid] = 0;
SendClientMessage(playerid, -1,""CRVENA"[GAZDA]"BELA"Dovezli ste meso u fabriku bureka i dobili platu od 2000 dolara!");
}
return 1;
}


Kod: nema to veze sa kosacem samo mi posle prvog markera u komandi ucita cp kosaca


Zanima me zasto pocinjes od 0 mod a jos nisi ni s od skriptera...
public OnPlayerEnterCheckpoint(playerid)
{

//===========================[KOSAC TRAVE]=================================//
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
DisablePlayerCheckpoint(playerid);
Start[playerid]++;

if(Start[playerid] == 0)
{
SetPlayerCheckpoint(playerid, 1910.9065,-1183.4401,22.4342,3.0);
}

OnPlayerEnterCheckpoint  -  kada igrac udje u neki CP,
E sad, to sto si stavio komentar // ... KOSAC TRAVE ... ne prepoznaje to skripta da je samo za kosaca trave...
U prevodu, za bukvalno svaki CP si stavio da se pokaze poruka i Start[playerid]++; ... To stavljas pod public taj if(Start[playerid] == 0) i itd...

Facebook - Klik



Citat: Shomy Script poslato Novembar 21, 2017, 19:33:33 POSLE PODNE
Zanima me zasto pocinjes od 0 mod a jos nisi ni s od skriptera...
public OnPlayerEnterCheckpoint(playerid)
{

//===========================[KOSAC TRAVE]=================================//
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
DisablePlayerCheckpoint(playerid);
Start[playerid]++;

if(Start[playerid] == 0)
{
SetPlayerCheckpoint(playerid, 1910.9065,-1183.4401,22.4342,3.0);
}

OnPlayerEnterCheckpoint  -  kada igrac udje u neki CP,
E sad, to sto si stavio komentar // ... KOSAC TRAVE ... ne prepoznaje to skripta da je samo za kosaca trave...
U prevodu, za bukvalno svaki CP si stavio da se pokaze poruka i Start[playerid]++; ... To stavljas pod public taj if(Start[playerid] == 0) i itd...
tako su mi rekli

if(Start[playerid] == 0)
{
Start[playerid]++;
SetPlayerCheckpoint(playerid, 1910.9065,-1183.4401,22.4342,3.0);
}


Primjer, dodaj da ti se povecava ta var u svakom enterovanju, izbrisi sa vrha jer ti se tako doda u ulasku na svaki CP