Is this possible?
#1

How can i fix this ?

https://www.youtube.com/watch?v=Gf8BAVO_Li4

Mina: nu te afli in zona
Translate: Mine: you are not in the area
Reply
#2

Are you lending us a chocolate or requesting us one?

Any codes, Any script link?
Reply
#3

public OnPlayerEnterCheckpoint(playerid)
{
new string[500];
new name[MAX_PLAYER_NAME];
if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
{
TaxiAccepted[playerid] = 999;
GameTextForPlayer(playerid, "~w~Ajuns la destinatie", 5000, 1);
TaxiCallTime[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
{
BusAccepted[playerid] = 999;
GameTextForPlayer(playerid, "~w~Ajuns la destinatie", 5000, 1);
BusCallTime[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid]==1)
{
if(IsPlayerInAnyVehicle(playerid))
{
PlayerInfo[playerid][pJackSkill] ++;
if(PlayerInfo[playerid][pJackSkill] == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "[Server-In-Lucru]: Ai facut Skill level 2 la Job-ul Car Jacker si vei primi mai multi banii."); }
else if(PlayerInfo[playerid][pJackSkill] == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "[Server-In-Lucru]: Ai facut Skill level 3 la Job-ul Car Jacker si vei primi mai multi banii."); }
else if(PlayerInfo[playerid][pJackSkill] == 200)
{ SendClientMessage(playerid, COLOR_YELLOW, "[Server-In-Lucru]: Ai facut Skill level 4 la Job-ul Car Jacker si vei primi mai multi banii."); }
else if(PlayerInfo[playerid][pJackSkill] == 400)
{ SendClientMessage(playerid, COLOR_YELLOW, "[Server-In-Lucru]: Ai facut Skill level 5 la Job-ul Car Jacker si vei primi mai multi banii. [SKILL MAXIM]"); }
new level = PlayerInfo[playerid][pJackSkill];
if(level >= 0 && level <= 50)
{
new rand = random(sizeof(SELLCAR1));
format(string, sizeof(string), "» Ai vandut un vehicul ai primit %d$, mai poti vinde una in 20 minute.", SELLCAR1[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, SELLCAR1[rand]);
PlayerInfo[playerid][pCarTime] = 1200;
}
else if(level >= 51 && level <= 100)
{
new rand = random(sizeof(SELLCAR2));
format(string, sizeof(string), "» Ai vandut un vehicul si ai primit %d$, mai poti vinde una in 18 minute.", SELLCAR2[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, SELLCAR2[rand]);
PlayerInfo[playerid][pCarTime] = 1080;
}
else if(level >= 101 && level <= 200)
{
new rand = random(sizeof(SELLCAR3));
format(string, sizeof(string), "» Ai vandut un vehicul si ai primit %d$, mai poti vinde una in 16 minute.", SELLCAR3[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, SELLCAR3[rand]);
PlayerInfo[playerid][pCarTime] = 960;
}
else if(level >= 201 && level <= 400)
{
new rand = random(sizeof(SELLCAR4));
format(string, sizeof(string), "» Ai vandut un vehicul si ai primit %d$, mai poti vinde una in 15 minute.", SELLCAR4[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, SELLCAR4[rand]);
PlayerInfo[playerid][pCarTime] = 840;
}
else if(level >= 401)
{
new money = 6000;
format(string, sizeof(string), "» Ai vandut un vehicul si ai primit %d$, mai poti vinde una in 14 minute.", money);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, money);
PlayerInfo[playerid][pCarTime] = 720;
}
GameTextForPlayer(playerid, "~y~Ai vandut un vehicul", 2500, 1);
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
else
{
GameTextForPlayer(playerid, "Nu esti in vehicul", 5000, 1);
}
}
else if(CP[playerid] == 9)//Karting
{
GameTextForPlayer(playerid, "~r~Asteapta aici", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 225)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 226)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 227)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 22
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 229)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 230)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 231)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 232)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 233)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 234)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 235)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 236)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 237)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 10) { CP[playerid] = 11; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2258.7874,-2402.9712,12.7035,8.0); }
else if(CP[playerid] == 11) { CP[playerid] = 12; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2225.8755,-2461.3875,12.7190,8.0); }
else if(CP[playerid] == 12) { CP[playerid] = 13; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2276.9983,-2662.8328,12.8580,8.0); }
else if(CP[playerid] == 13) { CP[playerid] = 14; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2449.1399,-2663.0562,12.8138,8.0); }
else if(CP[playerid] == 14) { CP[playerid] = 15; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2566.9814,-2504.5686,12.7692,8.0); }
else if(CP[playerid] == 15) { CP[playerid] = 16; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2719.0520,-2503.5962,12.7706,8.0); }
else if(CP[playerid] == 16) { CP[playerid] = 17; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2720.7881,-2405.6589,12.7441,8.0); }
else if(CP[playerid] == 17) { CP[playerid] = 18; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2571.5195,-2401.1531,12.7528,8.0); }
else if(CP[playerid] == 1 { CP[playerid] = 19; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2406.6995,-2423.1182,12.6641,8.0); }
else if(CP[playerid] == 19) { CP[playerid] = 20; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2322.9194,-2341.5715,12.6664,8.0); }
else if(CP[playerid] == 20)//End of Karting
{
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
GetPlayerName(playerid, name, sizeof(name));
if(FirstKartWinner == 999)
{
FirstKartWinner = playerid;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
format(string, sizeof(string), "» %s a terminat primu cursa.",name);
SendClientMessage(i, COLOR_WHITE, string);
}
}
}
}
else if(SecondKartWinner == 999)
{
SecondKartWinner = playerid;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
format(string, sizeof(string), "» %s a terminat al doi-lea cursa.",name);
SendClientMessage(i, COLOR_WHITE, string);
}
}
}
}
else if(ThirdKartWinner == 999)
{
ThirdKartWinner = playerid;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
format(string, sizeof(string), "» %s a terminat al trei-lea cursa.",name);
SendClientMessage(i, COLOR_WHITE, string);
SendClientMessage(i, COLOR_WHITE, "KARTING Finish!");
CP[i] = 0;
DisablePlayerCheckpoint(i);
}
}
}
}
}
if(PlayerIsHarvesting[playerid] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
new carid = GetPlayerVehicleID(playerid);
if(IsAHarvest(carid))
{
new cashes=(random(40-25)+5);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~g~%d$ ~w~adaugati la salariu",cashes);
GameTextForPlayer(playerid, string, 5000, 1);
DisablePlayerCheckpoint(playerid);
PlayerInfo[playerid][pPayCheck] += cashes * 5;
new randomss;
randomss = random(sizeof(gHarvestPoints));
SetPlayerCheckpoint(playerid, gHarvestPoints[randomss][0], gHarvestPoints[randomss][1], gHarvestPoints[randomss][2], 5.0);
}
}
return 1;
}
else if(MissionCheckpoint[playerid] > 0 && PlayMission[kToggle] == 1)//Missions + Checkpoint on toggle
{
RingTone[playerid] = 20;
switch(MissionCheckpoint[playerid])
{
case 1:
{
format(string, sizeof(string), "%s", PlayMission[kGText1]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText4]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText5]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText6]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP2][0], PlayMission[kCP2][1], PlayMission[kCP2][2], ;
MissionCheckpoint[playerid] = 2;
}
case 2:
{
format(string, sizeof(string), "%s", PlayMission[kGText2]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText7]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText8]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText9]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP3][0], PlayMission[kCP3][1], PlayMission[kCP3][2], ;
MissionCheckpoint[playerid] = 3;
}
case 3:
{
format(string, sizeof(string), "%s", PlayMission[kGText3]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText10]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText11]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText12]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP4][0], PlayMission[kCP4][1], PlayMission[kCP4][2], ;
MissionCheckpoint[playerid] = 4;
}
case 4:
{
format(string, sizeof(string), "%s", PlayMission[kGText4]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText13]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText14]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText15]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP5][0], PlayMission[kCP5][1], PlayMission[kCP5][2], ;
MissionCheckpoint[playerid] = 5;
}
case 5:
{
format(string, sizeof(string), "%s", PlayMission[kGText5]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText16]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText17]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText18]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP6][0], PlayMission[kCP6][1], PlayMission[kCP6][2], ;
MissionCheckpoint[playerid] = 6;
}
case 6:
{
format(string, sizeof(string), "%s", PlayMission[kGText6]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "» Mission Passed : %s | Reward received: %d$.", PlayMission[kTitle], PlayMission[kReward]);
SendClientMessage(playerid, COLOR_GREEN, string);
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, PlayMission[kReward]);
PlayerInfo[playerid][pMissionNr] = PlayerOnMission[playerid];
MissionCheckpoint[playerid] = 0;
PlayerOnMission[playerid] = 0;
}
}
}
else
{
switch (gPlayerCheckpointStatus[playerid])
{
case CHECKPOINT_HOME:
{
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
GameTextForPlayer(playerid, "~w~Esti~n~~y~Acasa", 5000, 1);
}
}
}
return 1;
}

this is the checkpoint public
Reply
#4

For fuck sake use wrap in code when posting... there you go:

Код:
public OnPlayerEnterCheckpoint(playerid)
{
new string[500];
new name[MAX_PLAYER_NAME];
if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
{
TaxiAccepted[playerid] = 999;
GameTextForPlayer(playerid, "~w~Ajuns la destinatie", 5000, 1);
TaxiCallTime[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
{
BusAccepted[playerid] = 999;
GameTextForPlayer(playerid, "~w~Ajuns la destinatie", 5000, 1);
BusCallTime[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid]==1)
{
if(IsPlayerInAnyVehicle(playerid))
{
PlayerInfo[playerid][pJackSkill] ++;
if(PlayerInfo[playerid][pJackSkill] == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "[Server-In-Lucru]: Ai facut Skill level 2 la Job-ul Car Jacker si vei primi mai multi banii."); }
else if(PlayerInfo[playerid][pJackSkill] == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "[Server-In-Lucru]: Ai facut Skill level 3 la Job-ul Car Jacker si vei primi mai multi banii."); }
else if(PlayerInfo[playerid][pJackSkill] == 200)
{ SendClientMessage(playerid, COLOR_YELLOW, "[Server-In-Lucru]: Ai facut Skill level 4 la Job-ul Car Jacker si vei primi mai multi banii."); }
else if(PlayerInfo[playerid][pJackSkill] == 400)
{ SendClientMessage(playerid, COLOR_YELLOW, "[Server-In-Lucru]: Ai facut Skill level 5 la Job-ul Car Jacker si vei primi mai multi banii. [SKILL MAXIM]"); }
new level = PlayerInfo[playerid][pJackSkill];
if(level >= 0 && level <= 50)
{
new rand = random(sizeof(SELLCAR1));
format(string, sizeof(string), "» Ai vandut un vehicul ai primit %d$, mai poti vinde una in 20 minute.", SELLCAR1[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, SELLCAR1[rand]);
PlayerInfo[playerid][pCarTime] = 1200;
}
else if(level >= 51 && level <= 100)
{
new rand = random(sizeof(SELLCAR2));
format(string, sizeof(string), "» Ai vandut un vehicul si ai primit %d$, mai poti vinde una in 18 minute.", SELLCAR2[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, SELLCAR2[rand]);
PlayerInfo[playerid][pCarTime] = 1080;
}
else if(level >= 101 && level <= 200)
{
new rand = random(sizeof(SELLCAR3));
format(string, sizeof(string), "» Ai vandut un vehicul si ai primit %d$, mai poti vinde una in 16 minute.", SELLCAR3[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, SELLCAR3[rand]);
PlayerInfo[playerid][pCarTime] = 960;
}
else if(level >= 201 && level <= 400)
{
new rand = random(sizeof(SELLCAR4));
format(string, sizeof(string), "» Ai vandut un vehicul si ai primit %d$, mai poti vinde una in 15 minute.", SELLCAR4[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, SELLCAR4[rand]);
PlayerInfo[playerid][pCarTime] = 840;
}
else if(level >= 401)
{
new money = 6000;
format(string, sizeof(string), "» Ai vandut un vehicul si ai primit %d$, mai poti vinde una in 14 minute.", money);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, money);
PlayerInfo[playerid][pCarTime] = 720;
}
GameTextForPlayer(playerid, "~y~Ai vandut un vehicul", 2500, 1);
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
else
{
GameTextForPlayer(playerid, "Nu esti in vehicul", 5000, 1);
}
}
else if(CP[playerid] == 9)//Karting
{
GameTextForPlayer(playerid, "~r~Asteapta aici", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 225)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 226)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 227)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 22
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 229)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 230)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 231)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 232)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 233)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 234)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 235)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 236)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 237)
{
GameTextForPlayer(playerid, "~w~Baza Jobului", 4000, 3);
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid] == 10) { CP[playerid] = 11; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2258.7874,-2402.9712,12.7035,8.0); }
else if(CP[playerid] == 11) { CP[playerid] = 12; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2225.8755,-2461.3875,12.7190,8.0); }
else if(CP[playerid] == 12) { CP[playerid] = 13; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2276.9983,-2662.8328,12.8580,8.0); }
else if(CP[playerid] == 13) { CP[playerid] = 14; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2449.1399,-2663.0562,12.8138,8.0); }
else if(CP[playerid] == 14) { CP[playerid] = 15; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2566.9814,-2504.5686,12.7692,8.0); }
else if(CP[playerid] == 15) { CP[playerid] = 16; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2719.0520,-2503.5962,12.7706,8.0); }
else if(CP[playerid] == 16) { CP[playerid] = 17; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2720.7881,-2405.6589,12.7441,8.0); }
else if(CP[playerid] == 17) { CP[playerid] = 18; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2571.5195,-2401.1531,12.7528,8.0); }
else if(CP[playerid] == 1 { CP[playerid] = 19; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2406.6995,-2423.1182,12.6641,8.0); }
else if(CP[playerid] == 19) { CP[playerid] = 20; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2322.9194,-2341.5715,12.6664,8.0); }
else if(CP[playerid] == 20)//End of Karting
{
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
GetPlayerName(playerid, name, sizeof(name));
if(FirstKartWinner == 999)
{
FirstKartWinner = playerid;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
format(string, sizeof(string), "» %s a terminat primu cursa.",name);
SendClientMessage(i, COLOR_WHITE, string);
}
}
}
}
else if(SecondKartWinner == 999)
{
SecondKartWinner = playerid;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
format(string, sizeof(string), "» %s a terminat al doi-lea cursa.",name);
SendClientMessage(i, COLOR_WHITE, string);
}
}
}
}
else if(ThirdKartWinner == 999)
{
ThirdKartWinner = playerid;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
format(string, sizeof(string), "» %s a terminat al trei-lea cursa.",name);
SendClientMessage(i, COLOR_WHITE, string);
SendClientMessage(i, COLOR_WHITE, "KARTING Finish!");
CP[i] = 0;
DisablePlayerCheckpoint(i);
}
}
}
}
}
if(PlayerIsHarvesting[playerid] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
new carid = GetPlayerVehicleID(playerid);
if(IsAHarvest(carid))
{
new cashes=(random(40-25)+5);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~g~%d$ ~w~adaugati la salariu",cashes);
GameTextForPlayer(playerid, string, 5000, 1);
DisablePlayerCheckpoint(playerid);
PlayerInfo[playerid][pPayCheck] += cashes * 5;
new randomss;
randomss = random(sizeof(gHarvestPoints));
SetPlayerCheckpoint(playerid, gHarvestPoints[randomss][0], gHarvestPoints[randomss][1], gHarvestPoints[randomss][2], 5.0);
}
}
return 1;
}
else if(MissionCheckpoint[playerid] > 0 && PlayMission[kToggle] == 1)//Missions + Checkpoint on toggle
{
RingTone[playerid] = 20;
switch(MissionCheckpoint[playerid])
{
case 1:
{
format(string, sizeof(string), "%s", PlayMission[kGText1]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText4]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText5]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText6]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP2][0], PlayMission[kCP2][1], PlayMission[kCP2][2], ;
MissionCheckpoint[playerid] = 2;
}
case 2:
{
format(string, sizeof(string), "%s", PlayMission[kGText2]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText7]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText8]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText9]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP3][0], PlayMission[kCP3][1], PlayMission[kCP3][2], ;
MissionCheckpoint[playerid] = 3;
}
case 3:
{
format(string, sizeof(string), "%s", PlayMission[kGText3]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText10]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText11]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText12]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP4][0], PlayMission[kCP4][1], PlayMission[kCP4][2], ;
MissionCheckpoint[playerid] = 4;
}
case 4:
{
format(string, sizeof(string), "%s", PlayMission[kGText4]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText13]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText14]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText15]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP5][0], PlayMission[kCP5][1], PlayMission[kCP5][2], ;
MissionCheckpoint[playerid] = 5;
}
case 5:
{
format(string, sizeof(string), "%s", PlayMission[kGText5]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission[kText16]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText17]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission[kText18]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, PlayMission[kCP6][0], PlayMission[kCP6][1], PlayMission[kCP6][2], ;
MissionCheckpoint[playerid] = 6;
}
case 6:
{
format(string, sizeof(string), "%s", PlayMission[kGText6]);
GameTextForPlayer(playerid, string, 8000, 3);
format(string, sizeof(string), "» Mission Passed : %s | Reward received: %d$.", PlayMission[kTitle], PlayMission[kReward]);
SendClientMessage(playerid, COLOR_GREEN, string);
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, PlayMission[kReward]);
PlayerInfo[playerid][pMissionNr] = PlayerOnMission[playerid];
MissionCheckpoint[playerid] = 0;
PlayerOnMission[playerid] = 0;
}
}
}
else
{
switch (gPlayerCheckpointStatus[playerid])
{
case CHECKPOINT_HOME:
{
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
GameTextForPlayer(playerid, "~w~Esti~n~~y~Acasa", 5000, 1);
}
}
}
return 1;
}
Reply
#5

so no one will help me ?
Reply
#6

You should probably check the code where you send the message "Mina: nu te afli in zona", it doesn't seems to be in OnPlayerEnterCheckpoint, if it isn't in your gm check your filterscripts
You also need to rewrite the MissionCheckpoint code which I guess is the code related to your video?, because it is fixed on 6 checkpoints, if you have less (like in the vid 3) or more it will break the code
Reply
#7

yes , thx Nero_3D , i need to make only 6 not more or less
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)