Skripta koju koristim:SE:RP
Detaljan opis problema:Imao je tec sverc i ja sam to odlucio da pretvorim u zetvu.I kad stanem na ovaj 1. CP nece da se iskljuci i ide na drugi,nzm u cemu je problem,ako mi mozete pomoc.
Dio skripte: if(strcmp(cmd, "/pocnizetvu", true) == 0)
{
new carid = GetPlayerVehicleID(playerid);
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid,COLOR_LIGHTRED,"[GRESKA] {FFFFFF}Nemate dovoljno novaca [1000$]!");
if(PlayerInfo[playerid][pSvercTEC] == 0)
{
if(PlayerInfo[playerid][pMember] != 6 && PlayerInfo[playerid][pLeader] != 6) return SendClientMessage(playerid,COLOR_LIGHTRED,"[GRESKA] {FFFFFF}Samo clanovi The Escobar Cartel !");
if((carid >= 71) && (carid <= 75))
{
PlayerInfo[playerid][pSvercTEC] = 1;
SendClientMessage(playerid,COLOR_LIGHTRED,"[INFO] {FFFFFF}Poceli ste zetvu!Zadatak vam je da kosite drogu na plantazi!");
SetPVarInt(playerid,"CP",4322);
SetPlayerCheckpoint(playerid,-1114,-947.8546,129.2188, 3.0);//Postavlja CheckPoint na odredjene kordiante
PlayerPlaySound(playerid, 1058, 0, 0, 0);//Zvuk kad prodjete kroz CP
}
else return SendClientMessage(playerid,COLOR_LIGHTRED,"[GRESKA] {FFFFFF}Morate biti u kombajnu.");
}
else return SendClientMessage(playerid,COLOR_LIGHTRED,"[GRESKA] {FFFFFF}Vec kosis!");
return true;
}
if(GetPVarInt(playerid,"SvercTEC") == 1)
{
if(GetPVarInt(playerid,"CP") == 4322)//
DisablePlayerCheckpoint(playerid);//
SetPVarInt(playerid,"CP",4323); //P
SetPlayerCheckpoint(playerid,-1114,-947.8546,129.2188, 3.0);//
PlayerPlaySound(playerid, 1138, 0, 0, 0);//zvuk
}
else if(GetPVarInt(playerid,"CP") == 4323)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4324);
SetPlayerCheckpoint(playerid,-1114.9021,-1020.1876,129.2188,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4324)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4325);
SetPlayerCheckpoint(playerid,-1132.7598,-1022.1002,129.2188,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4325)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4326);
SetPlayerCheckpoint(playerid,-1132.3479,-947.5013,129.2188,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4326)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4327);
SetPlayerCheckpoint(playerid,-1146.3070,-947.2068,129.2188,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4327)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4328);
SetPlayerCheckpoint(playerid,-1147.8295,-1020.0955,129.2188,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4328)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4329);
SetPlayerCheckpoint(playerid,-1167.2532,-1021.2182,129.2188,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4329)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4330);
SetPlayerCheckpoint(playerid,-1167.4060,-948.3394,129.2188,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4330)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4331);
SetPlayerCheckpoint(playerid,-1184.1489,-946.3781,129.2119,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4331)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4332);
SetPlayerCheckpoint(playerid,-1184.2733,-1020.5933,129.2188,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4332) // ZADNJI
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_LIGHTRED,"[INFO] {FFFFFF}Dobili ste 250 grama droge za 1000$ !");
PlayerInfo[playerid][pDrugs] = PlayerInfo[playerid][pDrugs]+250;
SafeJBC_GivePlayerMoney(playerid,-1000);
SetPVarInt(playerid,"CP",0);
PlayerInfo[playerid][pSvercTEC] = 0;
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):
BUMP!
Moze neko pomoc ovdje,hitno je !