AddPlayerClass(0,2146.6746,2036.9023,10.6719,353.1536,0,0,0,0,0,0); //AddPlayerClass(0,2136.9639,2140.1509,10.6719,57.3150,0,0,0,0,0,0); //AddPlayerClass(0,2116.9727,1969.4567,10.8694,84.9612,0,0,0,0,0,0); // AddPlayerClass(0,2039.7086,1930.5192,12.1615,170.5020,0,0,0,0,0,0); // AddPlayerClass(0,2118.2375,1842.1849,10.6719,149.5084,0,0,0,0,0,0); // AddPlayerClass(0,2092.1248,1775.0480,10.6719,249.4627,0,0,0,0,0,0); //AddPlayerClass(0,2146.5400,1862.9930,10.6797,40.6837,0,0,0,0,0,0); // AddPlayerClass(0,2169.1472,2007.8684,10.8203,270.3943,0,0,0,0,0,0); // Koordináták Vége ha ezen a Koordinátán átmegy Kapjon 100$
#include <a_samp>#include <zcmd>#define INFO_COLOR 0xe1ff00AAnew Munkas[MAX_PLAYERS], CP[MAX_PLAYERS];public OnPlayerConnect(playerid){Munkas[playerid] = 0;return 1;}CMD:munka(playerid, params[]){SetPlayerPos(playerid, 2146.6746,2036.9023,10.6719),SetPlayerFacingAngle(playerid, 353.1536);SendClientMessage(playerid, INFO_COLOR, \"A munka megkezdéséhez szállj be a Sweeper-be!\");return 1;}CMD:kezd(playerid, params[]){new vehicleid = GetPlayerVehicleID(playerid);if(GetVehicleModel(vehicleid) == 574){ Munkas[playerid] = 1;CP[playerid] = 1;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, INFO_COLOR, \"HIBA: A munka megkezdéséhez Sweeperben kell tartózkodnod!\");return 1;}CMD:exitjob(playerid, params[]){if(Munkas[playerid] == 1){ DisablePlayerCheckpoint(playerid); Munkas[playerid] = 0; CP[playerid] = 0; SendClientMessage(playerid, INFO_COLOR, \"Sikeresen felmondtál. Ha újra dolgoznál, /munka\");}else return SendClientMessage(playerid, INFO_COLOR, \"HIBA: Nem vagy úttisztító! Munkavállalás: /munka\");return 1;}public OnPlayerEnterVehicle(playerid, vehicleid){if(GetVehicleModel(vehicleid) == 574){ SendClientMessage(playerid, INFO_COLOR, \"INFÓ: Ezzel a járművel Úttisztító munkát végezhetsz! /kezd\");}return 1;}public OnPlayerEnterCheckpoint(playerid){new vehicleid = GetPlayerVehicleID(playerid);if(Munkas[playerid] == 1){ 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, 2136.9639,2140.1509,10.6719,5.0); CP[playerid] = 3; }else if(CP[playerid] == 3) { SetPlayerCheckpoint(playerid, 2116.9727,1969.4567,10.8694,5.0); CP[playerid] = 4; }else if(CP[playerid] == 4) { SetPlayerCheckpoint(playerid, 2039.7086,1930.5192,12.1615,5.0); CP[playerid] = 5; }else if(CP[playerid] == 5) { SetPlayerCheckpoint(playerid, 2118.2375,1842.1849,10.6719,5.0); CP[playerid] = 6; }else if(CP[playerid] == 6) { SetPlayerCheckpoint(playerid, 2092.1248,1775.0480,10.6719,5.0); CP[playerid] = 7; }else if(CP[playerid] == 7) { SetPlayerCheckpoint(playerid, 2146.5400,1862.9930,10.6797,5.0); CP[playerid] = 8; }else if(CP[playerid] == { SetPlayerCheckpoint(playerid, 2169.1472,2007.8684,10.8203,5.0); GivePlayerMoney(playerid, 100); SendClientMessage(playerid, INFO_COLOR, \"FIZETÉS: Munkádért $100-t kaptál! Ha felmondanál, írd: /exitjob\"); CP[playerid] = 1; }}else return SendClientMessage(playerid, INFO_COLOR, \"HIBA: Sweeperben kell ülnöd a munka folytatásához!\");}else return SendClientMessage(playerid, INFO_COLOR, \"HIBA: Nem vagy Úttisztító!\");return 1;}