Započeo dane_1
•4. Jan. 2012.[pomoc]Bug sa poslom
530
pregleda
5
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
182
Postovi:
55
Teme:
Pridružio se:Okt. 2011
4. Jan. 2012.
Skripta koju koristim:LARP
Detaljan opis problema:Znaci pravio sam svoj posao gradevinara,komanda /work i dobro krene znaci stavi mu prvi CP ali dalje nece..Evo sto sam koristio..
Dio skripte:
Detaljan opis problema:Znaci pravio sam svoj posao gradevinara,komanda /work i dobro krene znaci stavi mu prvi CP ali dalje nece..Evo sto sam koristio..
Dio skripte:
if(PlayerIsVozib == 1)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2848.3582,-2181.7900,6.3902))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 2;
SetPlayerCheckpoint(playerid, 2841.9373,-2144.3010,8.8989,5);
}
}
if(PlayerIsVozib == 2)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2841.9373,-2144.3010,8.8989))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 3;
SetPlayerCheckpoint(playerid, 2837.0498,-2177.3713,10.8271,5);
}
}
if(PlayerIsVozib == 3)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2837.0498,-2177.3713,10.8271))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 4;
SetPlayerCheckpoint(playerid, 2832.4480,-2140.4182,11.3788,5);
}
}
if(PlayerIsVozib == 4)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2832.4480,-2140.4182,11.3788))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 5;
SetPlayerCheckpoint(playerid, 2830.9219,-2174.0139,11.3617,5);
}
}
if(PlayerIsVozib == 5)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2830.9219,-2174.0139,11.3617))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 6;
SetPlayerCheckpoint(playerid, 2831.4207,-2150.7180,10.2734,5);
}
} if(PlayerIsVozib == 6)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2824.8943,-2232.8936,1.9691))
{
new cash=(random(100)+5);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "==============================================");
SendClientMessage(playerid, COLOR_LIGHTBLUE, " ** Zavrsio si sa ravnanjem,dobio si $%d ! " , cash);
SafeGivePlayerMoney(playerid, cash);
}
}if(!strcmp(cmdtext, "/work", true))
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo != 24)
{
SendClientMessage(playerid, COLOR_GREY, " Nisi Gradjevinar ! ");
return 1;
}
if(PlayerIsVozib == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vec si na poslu ! ");
return 1;
}
if(JobDuty == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nemas Skin Gradjevinara ! ");
return 1;
}
if(IsABager(idcar))
{
PlayerIsVozib = 1;
TogglePlayerControllable(playerid, 1);
SetPlayerCheckpoint(playerid, 2848.3582,-2181.7900,6.3902, 5.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "INFO:Zapoceo si posao na gradilistu.Poravnaj bagerom ovaj teren.");
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /work",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
}
return 1;
}Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
127
Postovi:
21
Teme:
Pridružio se:Dec. 2011
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
947
Postovi:
80
Teme:
Pridružio se:Jun 2011
5. Jan. 2012.
dane_1 wrote on January 4, 2012, 10:42 pm:
if(PlayerIsVozib == 1)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2848.3582,-2181.7900,6.3902))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 2;
SetPlayerCheckpoint(playerid, 2841.9373,-2144.3010,8.8989,5);
}
}
if(PlayerIsVozib == 2)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2841.9373,-2144.3010,8.8989))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 3;
SetPlayerCheckpoint(playerid, 2837.0498,-2177.3713,10.8271,5);
}
}
if(PlayerIsVozib == 3)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2837.0498,-2177.3713,10.8271))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 4;
SetPlayerCheckpoint(playerid, 2832.4480,-2140.4182,11.3788,5);
}
}
if(PlayerIsVozib == 4)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2832.4480,-2140.4182,11.3788))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 5;
SetPlayerCheckpoint(playerid, 2830.9219,-2174.0139,11.3617,5);
}
}
if(PlayerIsVozib == 5)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2830.9219,-2174.0139,11.3617))
{
DisablePlayerCheckpoint(playerid);
PlayerIsVozib = 6;
SetPlayerCheckpoint(playerid, 2831.4207,-2150.7180,10.2734,5);
}
} if(PlayerIsVozib == 6)
{
if(IsPlayerInRangeOfPoint(playerid,5.2,2824.8943,-2232.8936,1.9691))
{
new cash=(random(100)+5);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "==============================================");
SendClientMessage(playerid, COLOR_LIGHTBLUE, " ** Zavrsio si sa ravnanjem,dobio si $%d ! " , cash);
SafeGivePlayerMoney(playerid, cash);
}
}Prvo, ovo if(IsPlayerInRangeOfPoint(playerid,5.2,2824.8943,-2232.8936,1.9691)) ti je bespotrebno, on nemoze da udje u CP a da se nenalazi u njemu... ili si to radio zbog bug abbusera... ?
Svejedno, jel si stavio taj deo pod public OnPlayerEnterCheckpoint ??
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava