Sziasztok.. van egy olyan gondom hogy ez így megkeveredik. szóval az úttisztítónak a Fűnyírós CheckPointok jönnek be a Fűnyírósnak meg az Úttisztítós. :\'( :\'( :\'( valaki kitudná nekem javítani hogy Ez az egész Script Működjön? Hálás lennék.
#include <a_samp>
#include <zcmd>
#define INFO_COLOR 0xe1ff00AA
#define SZIN_PIROS 0xfa0d0dAA
#define DIALOG_MUNKA 4
#define MUNKA_SWEEPER 13
#define MUNKA_MOWER 14
#pragma tabsize 0
new Munkas[MAX_PLAYERS], CP[MAX_PLAYERS];
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerConnect(playerid)
{
Munkas[playerid] = 0;
return 1;
}
CMD:kezd(playerid, params[])
{
if(Munkas[playerid] == MUNKA_SWEEPER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 574)
{
Munkas[playerid] = MUNKA_SWEEPER;
CP[playerid] = 1;
SetPlayerCheckpoint(playerid, 1381.3126,2183.9182,11.0234, 5.0);
SendClientMessage(playerid, INFO_COLOR, \"Sikeresen megkezdted a munkát. Kövesd a Checkpointokat!\");
}else return SendClientMessage(playerid, SZIN_PIROS, \"HIBA: A munka megkezdéséhez Sweeperben kell tartózkodnod!\");
}else
if(Munkas[playerid] == MUNKA_MOWER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 572)
{
Munkas[playerid] = MUNKA_MOWER;
CP[playerid] = 2;
SetPlayerCheckpoint(playerid, 2146.6746,2036.9023,10.6719,5.0);
SendClientMessage(playerid, INFO_COLOR, \"Sikeresen megkezdted a munkát. Kövesd a Checkpointokat!\");
}else return SendClientMessage(playerid, SZIN_PIROS, \"HIBA: A munka megkezdéséhez Mower-ben kell tartózkodnod!\");
}else return SendClientMessage(playerid, SZIN_PIROS, \"HIBA: Még nincs munkád! /jobs\");
return 1;
}
CMD:exit(playerid, params[])
{
if(Munkas[playerid] > 0)
{
DisablePlayerCheckpoint(playerid);
Munkas[playerid] = 0;
CP[playerid] = 0;
CP[playerid] = 2;
SendClientMessage(playerid, INFO_COLOR, \"Sikeresen felmondtál. Ha újra dolgoznál, /jobs\");
}else return SendClientMessage(playerid, INFO_COLOR, \"[HIBA]:Nem Dolgozol. Ha Munkába szeretnél állni: /jobs\");
return 1;
}
CMD:jobs(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_MUNKA, DIALOG_STYLE_LIST, \"{f2f209}MUNKÁK\", \"Úttisztító\\nFűnyírós\\nTaxis\\nRendőr\\nPilóta\", \"Kiválaszt\", \"Mégse\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MUNKA)
{
if(listitem == 0)
{
SetPlayerPos(playerid, 2189.0325,1990.1514,10.8203),SetPlayerFacingAngle(playerid, 353.1536);
Munkas[playerid] = MUNKA_SWEEPER;
SendClientMessage(playerid, INFO_COLOR, \"A munka megkezdéséhez szállj be a Sweeper-be! Majd Gépeld Be a ( /kezd ) Parancsot\");
}
if(listitem == 1)
{
// if(GetPlayerScore(playerid) < 35) return SendClientMessage(playerid, 0xff0000ff, \"{f20909}HIBA!{f2f209} Legalább 35Pont Szükséges ehez a Munkához!\");
SetPlayerPos(playerid, 1369.2494,2170.7402,11.0234),SetPlayerFacingAngle(playerid, 353.1536);
Munkas[playerid] = MUNKA_MOWER;
SendClientMessage(playerid, INFO_COLOR, \"A munka megkezdéséhez szállj be a Mower-be! Majd Gépeld Be a ( /kezd ) Parancsot\");
}
if(listitem == 2)
{
if(GetPlayerScore(playerid) < 70) return SendClientMessage(playerid, 0xff0000ff, \"{f20909}HIBA!{f2f209} Legalább 70Pont Szükséges ehez a Munkához!\");
}
if(listitem == 3)
{
if(GetPlayerScore(playerid) < 105) return SendClientMessage(playerid, 0xff0000ff, \"{f20909}HIBA!{f2f209} Legalább 105Pont Szükséges ehez a Munkához!\");
}
if(listitem == 4)
{
if(GetPlayerScore(playerid) < 140) return SendClientMessage(playerid, 0xff0000ff, \"{f20909}HIBA!{f2f209} Legalább 140Pont Szükséges ehez a Munkához!\");
}
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(Munkas[playerid] == MUNKA_SWEEPER)
{
if(GetVehicleModel(vehicleid) == 574)
{
// SendClientMessage(playerid, INFO_COLOR, \"Útszakasz megtisztítva, kövesd a további Checkpointokat!\");
if(CP[playerid] == 1)
{
SetPlayerCheckpoint(playerid, 2146.6746,2036.9023,10.6719,5.0);
CP[playerid] = 2;
}else
if(CP[playerid] == 2)
{
SetPlayerCheckpoint(playerid, 1311.8352,2190.2825,11.0234,5.0);
CP[playerid] = 3;
}else
if(CP[playerid] == 3)
{
SetPlayerCheckpoint(playerid, 1307.7640,2158.8599,11.0234,5.0);
CP[playerid] = 4;
}else
if(CP[playerid] == 4)
{
SetPlayerCheckpoint(playerid, 1306.2742,2109.5923,11.0156,5.0);
CP[playerid] = 5;
}else
if(CP[playerid] == 5)
{
SetPlayerCheckpoint(playerid, 1388.4091,2108.1101,11.0156,5.0);
CP[playerid] = 6;
}else
if(CP[playerid] == 6)
{
SetPlayerCheckpoint(playerid, 1354.9989,2143.2661,11.0156,5.0);
CP[playerid] = 7;
}else
if(CP[playerid] == 7)
{
SetPlayerCheckpoint(playerid, 1369.2494,2170.7402,11.0234,5.0);
CP[playerid] = 8;
}else
if(CP[playerid] ==
{
SetPlayerCheckpoint(playerid, 1369.2494,2170.7402,11.0234,5.0);
GivePlayerMoney(playerid, 100);
SendClientMessage(playerid, INFO_COLOR, \"Munkádat Elvégezted. [Jutalom]: PÉNZ:100$ PONT: +3; Ha felmondanál, írd: /exitjob\");
SetPlayerScore(playerid, GetPlayerScore (playerid) + 3);
CP[playerid] = 1;
}
}else return SendClientMessage(playerid, SZIN_PIROS, \"[HIBA]: Sweeper-ben kell lenned Hogy Folytathasd a Munkádat \");
}else
if(Munkas[playerid] == MUNKA_MOWER)
{
if(GetVehicleModel(vehicleid) == 572)
{
if(CP[playerid] == 9)
{
SetPlayerCheckpoint(playerid, 1381.3126,2183.9182,11.0234,5.0);
CP[playerid] = 9;
}else
if(CP[playerid] == 9)
{
SetPlayerCheckpoint(playerid, 2136.9639,2140.1509,10.6719,5.0);
CP[playerid] = 10;
}else
if(CP[playerid] == 10)
{
SetPlayerCheckpoint(playerid, 2116.9727,1969.4567,10.8694,5.0);
CP[playerid] = 10;
}else
if(CP[playerid] == 11)
{
SetPlayerCheckpoint(playerid, 2039.7086,1930.5192,12.1615,5.0);
CP[playerid] = 11;
}else
if(CP[playerid] == 11)
{
SetPlayerCheckpoint(playerid, 2118.2375,1842.1849,10.6719,5.0);
CP[playerid] = 12;
}else
if(CP[playerid] == 12)
{
SetPlayerCheckpoint(playerid, 2092.1248,1775.0480,10.6719,5.0);
CP[playerid] = 13;
}else
if(CP[playerid] == 13)
{
SetPlayerCheckpoint(playerid, 2146.5400,1862.9930,10.6797,5.0);
CP[playerid] = 14;
}else
if(CP[playerid] == 14)
{
SetPlayerCheckpoint(playerid, 2169.1472,2007.8684,10.8203,5.0);
GivePlayerMoney(playerid, 100);
SendClientMessage(playerid, INFO_COLOR, \"Munkádat Elvégezted. [Jutalom]: PÉNZ:200$ PONT: +5; Ha felmondanál, írd: /exitjob\");
SetPlayerScore(playerid, GetPlayerScore (playerid) + 5);
CP[playerid] = 2;
}
}else return SendClientMessage(playerid, SZIN_PIROS, \"[HIBA]: Mower-ben kell lenned Hogy Folytathasd a Munkádat \");
}else return SendClientMessage(playerid,SZIN_PIROS, \"[HIBA]: Nincs munkád!\");
return 1;
}