@MrToretto Pokusao sam to i nije moglo
Evo sve od OnPlayerEnterCheckPoint
[pawn]public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 780.0735,-1301.5417,13.5596))
{
if(hKosac[playerid] == 1)
{
hKosac[playerid] = 2;
SetPlayerCheckpoint(playerid, 779.6747,-1278.6173,13.5703, 4.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 779.6747,-1278.6173,13.5703))
{
if(hKosac[playerid] == 2)
{
hKosac[playerid] = 3;
SetPlayerCheckpoint(playerid, 779.5463,-1247.1888,13.5469, 4.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 779.5463,-1247.1888,13.5469))
{
if(hKosac[playerid] == 3)
{
hKosac[playerid] = 4;
SetPlayerCheckpoint(playerid, 766.7973,-1240.4302,13.5496, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 766.7973,-1240.4302,13.5496))
{
if(hKosac[playerid] == 4)
{
hKosac[playerid] = 5;
SetPlayerCheckpoint(playerid, 752.7291,-1240.0212,13.5553, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 752.7291,-1240.0212,13.5553))
{
if(hKosac[playerid] == 5)
{
hKosac[playerid] = 6;
SetPlayerCheckpoint(playerid, 737.6015,-1239.7026,13.5469, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 737.6015,-1239.7026,13.5469))
{
if(hKosac[playerid] == 6)
{
hKosac[playerid] = 7;
SetPlayerCheckpoint(playerid, 736.9990,-1253.7413,13.5541, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 736.9990,-1253.7413,13.5541))
{
if(hKosac[playerid] == 7)
{
hKosac[playerid] = 8;
SetPlayerCheckpoint(playerid, 754.4986,-1253.4285,13.5547, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 754.4986,-1253.4285,13.5547))
{
if(hKosac[playerid] == 8)
{
hKosac[playerid] = 9;
SetPlayerCheckpoint(playerid, 774.1608,-1253.4260,13.5624, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 774.1608,-1253.4260,13.5624))
{
if(hKosac[playerid] == 9)
{
hKosac[playerid] = 10;
SetPlayerCheckpoint(playerid, 774.5429,-1275.1030,13.5642, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 774.5429,-1275.1030,13.5642))
{
if(hKosac[playerid] == 10)
{
hKosac[playerid] = 11;
SetPlayerCheckpoint(playerid, 757.0410,-1274.7778,13.5564, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 757.0410,-1274.7778,13.5564))
{
if(hKosac[playerid] == 11)
{
hKosac[playerid] = 12;
SetPlayerCheckpoint(playerid, 739.4440,-1275.5637,13.5547, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 739.4440,-1275.5637,13.5547))
{
if(hKosac[playerid] == 12)
{
hKosac[playerid] = 13;
SetPlayerCheckpoint(playerid, 739.2107,-1285.3363,13.5654, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 739.2107,-1285.3363,13.5654))
{
if(hKosac[playerid] == 13)
{
hKosac[playerid] = 14;
SetPlayerCheckpoint(playerid, 752.4673,-1286.3153,13.5656, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 752.4673,-1286.3153,13.5656))
{
if(hKosac[playerid] == 14)
{
hKosac[playerid] = 15;
SetPlayerCheckpoint(playerid, 772.3904,-1286.8257,13.5625, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 772.3904,-1286.8257,13.5625))
{
if(hKosac[playerid] == 15)
{
hKosac[playerid] = 16;
SetPlayerCheckpoint(playerid, 774.2715,-1295.3590,13.5625, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 774.2715,-1295.3590,13.5625))
{
if(hKosac[playerid] == 16)
{
hKosac[playerid] = 17;
SetPlayerCheckpoint(playerid, 757.8027,-1296.9027,13.5625, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 757.8027,-1296.9027,13.5625))
{
if(hKosac[playerid] == 17)
{
hKosac[playerid] = 18;
SetPlayerCheckpoint(playerid, 737.3912,-1297.4670,13.5677, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 737.3912,-1297.4670,13.5677))
{
if(hKosac[playerid] == 18)
{
hKosac[playerid] = 19;
SetPlayerCheckpoint(playerid, 735.8610,-1273.3710,13.5534, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 735.8610,-1273.3710,13.5534))
{
if(hKosac[playerid] == 19)
{
hKosac[playerid] = 20;
SetPlayerCheckpoint(playerid, 745.0742,-1260.8752,13.5609, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 745.0742,-1260.8752,13.5609))
{
if(hKosac[playerid] == 20)
{
hKosac[playerid] = 21;
SetPlayerCheckpoint(playerid, 770.6127,-1260.5045,13.5680, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 770.6127,-1260.5045,13.5680))
{
if(hKosac[playerid] == 21)
{
hKosac[playerid] = 22;
SetPlayerCheckpoint(playerid, 779.7983,-1283.8798,13.5665, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 779.7983,-1283.8798,13.5665))
{
if(hKosac[playerid] == 22)
{
hKosac[playerid] = 23;
SetPlayerCheckpoint(playerid, 782.5673,-1298.7223,13.5611, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 782.5673,-1298.7223,13.5611))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, -1, "Uspesno ste zavrsili kosenje trave.");
GivePlayerMoney(playerid, 950);
hKosac[playerid] = 0;
}
}
//============================================================================//
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2102.3206,-2054.2891,13.5469))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, -1, "Uspesno ste zavrsili kosenje trave.");
GivePlayerMoney(playerid, 950);
}
}[/pawn]
Hvala svima na pomoci sredio sam problem, ipak je bilo oko { } .... Moze LOCK