Jump to content
  • 0
TedakCZ

pomoc SAMP server

Dotaz

Ahoj mám otázku nevíte kde muže bejt chyba když jdu na checkpoint tak me to potom spamuje Prave ses zaměstnal ale toto mam dane jen u zamestani nevi někdo jak se to mohlo dostat do chcekpointu ?      jak mile znej odejdu tak to píše furt dokola dokud zas server ne resetuju

Sdílet tento příspěvek


Link to post
Share on other sites

10 odpovědí na tuto otázku

Recommended Posts

  • 2

1)

public jobsjoin(playerid,PlayerName)
{
    SCM(PlayerName,-1,"Pravě ses zaměstnal");
	TextDrawDestroy(Text:JobsJoins);
	TextDrawHideForPlayer(playerid, Text:JobsJoins);
	KillTimer(resettextdrawb);
		return 1;
}

jobsjoin(playerid,PlayerName) - Všade kde vyvolávaš tento public tak zadávaš iba playerid -->

SetTimerEx("jobsjoin", 10000 + 1000, true, "i", playerid);

 

2) SendClientMessage príjma ID hráča, nie jeho meno ktoré tak či tak nikde nezadávaš takže PlayerName = 0 čo znamená že správa nikdy nepríde hráčom nad id 0. Takže SCM(playerid, -1, ...);

 

3) 

resettextdrawb = SetTimerEx("jobsjoin", 10000 + 1000, true, "i", playerid);
KillTimer(resettextdrawb);

Osobne nechápem na čo je toto dobré.. Vyvoláš public jobsjoin ktorý sa vykoná za 11 sekúnd a hned ho aj zrušíš takže sa nevykoná vôbedz. V SetTimerEx zmeň true na false a vymaž KillTimer(..);, timer sa automaticky vypne keď sa vykoná.

 

4) Od riadku 

if(pickupid == busjobs)

po riadok

if(pickupid == pizzajobs)

 

Vyvoláš timer ktorý neoznačíš --> 

SetTimerEx("jobsjoined", 500, true, "i", playerid);

Takže sa tento timer opakuje až kým nevypneš server pretože ho nemáš ako vypnúť.. Takže -->

resettextdrawa alebo resettextdrawb = SetTimerEx("jobsjoined", 500, true, "i", playerid);

 

A ked ti to hore nepomohlo tak by som skúsil --> 

 

Sdílet tento příspěvek


Link to post
Share on other sites
  • 1
před 19 hodinami, TedakCZ said:

😄 jo jo je já sem tam měl stejnou pozici na zaměstnaní asi 4x stejná adresa

ale mám otázku zda bys nevěděl proč mě nenačítá garáž ?  ukládá se ale už se nenačte po restartu serveru 

Tak bude chyba v načítaní.

Sdílet tento příspěvek


Link to post
Share on other sites
  • 0
před 9 hodinami, Wrong Time Wrong Place said:

Nevíme, jak se to tam mohlo dostat, není to náš kód, ale tvůj, tak buď té laskavosti a pošli ho sem.

Spoiler

/*========================[Include]=======================*/
#include <a_samp>
#include <YSI\y_ini>
#include <YSI\y_commands>
#include <YSI\y_va>
#include <YSI\y_iterate>
#include <dini>
#include <sscanf>

/*========================[pragma]=======================*/
#pragma tabsize 0
/*========================[Barvy]=======================*/
#define Barva-none 0xffffffaa //Bíla

#define red 0xff0000aa
#define RED 0xff0000aa
#define aqua 0x00ffff
#define yellow 0xffff00
#define lime 0x00ff00
#define hred {ff0000}
#define haqua {00ffff}
#define hyellow {ffff00}
#define hlime {00ff00}
#define white {ffffff}


#define SCM SendClientMessage

#define C_SUCCES 0x8BFF00FF // Zelená
#define C_INFO 0x0099FFFF // Modrá
#define C_ERROR 0xFF0000FF // Červená
/*+++++++++++++++++++++++[CarsShop LS]+++++++++++++++++++++++*/
/*++[Osobak]++*/
#define InfernusShop 1000000
#define UranusShop 150000
#define ElegyShop 350000
#define SavanaShop 456300
#define BulletShop 223500
#define BlistaShop 123000
#define TampaShop 95600
/*++[Nakladak]++*/
/*+++++++++++++++++++++++[CarsShop SF]+++++++++++++++++++++++*/
/*++[Osobak]++*/
#define InfernusShop 1000000
#define UranusShop 150000
#define ElegyShop 350000
#define SavanaShop 456300
#define BulletShop 223500
#define BlistaShop 123000
#define TampaShop 95600
/*++[Nakladak]++*/
/*+++++++++++++++++++++++[CarsShop LV]+++++++++++++++++++++++*/
/*++[Osobak]++*/
#define InfernusShop 1000000
#define UranusShop 150000
#define ElegyShop 350000
#define SavanaShop 456300
#define BulletShop 223500
#define BlistaShop 123000
#define TampaShop 95600
/*++[Nakladak]++*/
#define FlatbedShop 423000
#define RoadTrainShop 3050000
#define LineRunnerShop 1535040
#define TanskerShop 1130005
/*++[Trailer]++*/
#define PetrolTrailer 532400
#define Trailer1 686540
#define Trailer2 735640
#define Trailer3
/*++++++++++++++++++++++++[Warrning]+++++++++++++++++++++++*/
#define notlevel "[ ! ]Nemáš Dostatečny Admin level!"
/*========================[Dialogy]=======================*/
	new Dialog_kontakt;
	new Dialog_Info;
	
	new AutoSkola_B[256];
	new AutoSkola_Ce[256];
	new aaskola;
	
new banks1;


new PlayerText3D:AFKP;
/*===============================[Register - Login=============================*/
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
#define DIALOG_STYLE_PASS 0

#define grzdialog "Ceny garaži sou od 150kreditu-32.000Kreditu\ngaraž si zde koupit od adminu stači poslat kredit\n a admin vam posle do pm heslo garaze i kde se nachazi"

#define PATH "/Profil/%s.ini"
#define CATH "/Profil/Garage/%s.ini"

#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define r "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
#define SVETLE_ZLUTA 0xFFFF33
#define S_6 0xFAFF00

#define CrewOne "Crew/One.ini"
#define CrewTwo "Crew/Two.ini"
#define CrewThree "Crew/Three.ini"
#define CrewFour "Crew/Four.ini"
#define CrewFive "Crew/Five.ini"
#define CrewSix "Crew/Six.ini"
#define CrewSeven "Crew/Seven.ini"
#define CrewEit "Crew/Eit.ini"
#define CrewNine "Crew/Nine.ini"
#define CrewTen "Crew/Ten.ini"
#define CrewIleven "Crew/Ileven.ini"
#define CrewTwelf "Crew/Twelf.ini"
/*===============================Jobslist=============================*/
new truckerjobsls; /*1*/
new truckerjobssf; /*1*/
new busjobs; /*2*/
new policiejobs; /*10*/
new taxijobs; /*4*/
new letecjobs; /*5*/
new hasicjobs; /*6*/
new pravnik; /*7*/
new zdravotnikjobs; /*8*/
new pizzajobs; /*9*/
new Delnikc;
new taxikar; /*3*/
//new carschool; /*11*///



new Delnik_zacatecnik;


new sfshopcars;
new lsshopcars;
new lvshopcars;
/*================================================================*/
#define obratit KEY_NO
#define stlacy KEY_YES

#define HOLDING(%0) \
	(( newkeys & (%0)) == (%0))
#define RELEASED(%0) \
	(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
#define PRESSING(%0,%1) \
	(%0 & (%1))
#define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
	
#define randomEx(%1,%2) \
	((%1)+random((%2)-(%1)+1))
/*===============================[Register - Login=============================*/

forward accound();

public accound()
{
	new paccoun[32];
	new pid;
	new Crew[MAX_PLAYERS][32];
	format(paccoun, sizeof(paccoun), CrewOne);
	format(paccoun, sizeof(paccoun), CrewTwo);
	format(paccoun, sizeof(paccoun), CrewThree);
	format(paccoun, sizeof(paccoun), CrewFour);
	format(paccoun, sizeof(paccoun), CrewFive);
	format(paccoun, sizeof(paccoun), CrewSix);
	format(paccoun, sizeof(paccoun), CrewSeven);
	format(paccoun, sizeof(paccoun), CrewEit);
	format(paccoun, sizeof(paccoun), CrewNine);
	format(paccoun, sizeof(paccoun), CrewTen);
	format(paccoun, sizeof(paccoun), CrewIleven);
	format(paccoun, sizeof(paccoun), CrewTwelf);
	if(dini_Exists(paccoun))
		{
	dini_IntSet(paccoun, "CrewID", Crew[pid][CrewId]);
	dini_Set(paccoun, "CrewName", Crew[pid][CrewName]);
    dini_Set(paccoun, "CrewCity", Crew[pid][CrewCity]);
    dini_FloatSet(paccoun, "CrewX", Crew[pid][CrewX]);
    dini_FloatSet(paccoun, "CrewY", Crew[pid][CrewY]);
    dini_FloatSet(paccoun, "CremX", Crew[pid][CremX]);
    dini_FloatSet(paccoun, "CrewY", Crew[pid][CrewY]);
    dini_IntSet(paccoun, "CrewColor", Crew[pid][CrewColor]);
    dini_Set(paccoun, "CrewOwner", Crew[pid][CrewOwner]);
	dini_IntSet(paccoun, "CrewFree", Crew[pid][CrewFree]);
    	}
	return 1;
}

enum ICrew
{
	IdCrew,
	CrewName,
	CrewCity,
	CrewX,
	CrewY,
	CremX,
	CrewColor,
	CrewOwner,
	CrewFree
}

enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths,
    pWandlvl,
    pSkin,
    pKredit,
    pBank,
    pJobs,
    pAsB,
    pAsCe,
    pSex,
    pVIP,
    pLevel,
    pBan,
    pBanEx,
    pKick,
    fFunkce,
    nJoin,
    nClose,
    nSpawn,
    pVyplata,
	pCela,
	pCelaDuvod,
	pCelaZatknul
}

enum vInfo
{
	vCarOwner[MAX_PLAYER_NAME],
	vCarId,
	vCarColor1,
	vCarColor2,
	vCarSpawn,
	Float: vCarR,
	Float: vCarX,
 	Float: vCarY,
 	Float: vCarZ
}

/*
enum cCrew
{
	cOwner;
	cID;
	cName;
	cPlayer;
	cGaraz;
	cX;
	cY;
	cZ
}

new CrewInfo[playerid][cCrew];*/
new VehInfo[MAX_PLAYERS][vInfo];
new PlayerInfo[MAX_PLAYERS][pInfo];
new PlayerPoints[MAX_PLAYERS][pInfo];
new PlayerBanks[MAX_PLAYERS][pInfo];
new povolani[MAX_PLAYERS][pInfo];
new AutoSkola[MAX_PLAYERS][pInfo];
new Pohlavi[MAX_PLAYERS][pInfo];
new Premium[MAX_PLAYERS][pInfo];
new Levels[MAX_PLAYERS][pInfo];
new Banid[MAX_PLAYERS][pInfo];
new BanExid[MAX_PLAYERS][pInfo];
new Kickid[MAX_PLAYERS][pInfo];

new AFK[MAX_PLAYERS];

new DJ[MAX_PLAYERS];


new DotazID[MAX_PLAYERS];
new TaxiID[MAX_PLAYERS];
new MechanikID[MAX_PLAYERS];


new mise_delnik_1[MAX_PLAYERS];
new mise_delnik_2[MAX_PLAYERS];
new mise_delnik_3[MAX_PLAYERS];
new mise_delnik_4[MAX_PLAYERS];
new mise_delnik_5[MAX_PLAYERS];
new mise_delnik_6[MAX_PLAYERS];
new mise_delnik_7[MAX_PLAYERS];
new mise_delnik_8[MAX_PLAYERS];


new bool:ShowedPlayerDialog[MAX_PLAYERS];


forward LoadCar_data(playerid,name[],value[]);
public LoadCar_data(playerid,name[],value[])
{
	INI_Int("Owner",VehInfo[playerid][vCarOwner]);
	INI_Int("CarID",VehInfo[playerid][vCarId]);
	INI_Float("X",VehInfo[playerid][vCarX]);
	INI_Float("Y",VehInfo[playerid][vCarY]);
	INI_Float("Z",VehInfo[playerid][vCarZ]);
	INI_Float("R",VehInfo[playerid][vCarR]);
	INI_Int("Color1",VehInfo[playerid][vCarColor1]);
	INI_Int("Color2",VehInfo[playerid][vCarColor2]);
	INI_Int("CarSpawn",VehInfo[playerid][vCarSpawn]);
	return 0;
}

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    INI_Int("Wandlvl",PlayerInfo[playerid][pWandlvl]);
    INI_Int("Skin",PlayerInfo[playerid][pSkin]);
    INI_Int("Kredit",PlayerPoints[playerid][pKredit]);
    INI_Int("Bank",PlayerBanks[playerid][pBank]);
    INI_Int("Jobs",povolani[playerid][pJobs]);
    INI_Int("RidicakB",AutoSkola[playerid][pAsB]);
    INI_Int("RidicakC+E",AutoSkola[playerid][pAsCe]);
    INI_Int("Pohlavi",Pohlavi[playerid][pSex]);
    INI_Int("Type_Premium",Premium[playerid][pVIP]);
    INI_Int("Level",Levels[playerid][pLevel]);
    INI_Int("Ban",Banid[playerid][pBan]);
    INI_Int("BanEx",BanExid[playerid][pBanEx]);
    INI_Int("Kick",Kickid[playerid][pKick]);
    INI_Int("Funkce",PlayerInfo[playerid][fFunkce]);
    INI_Int("JoinView",PlayerInfo[playerid][nJoin]);
    INI_Int("CloseView",PlayerInfo[playerid][nClose]);
    INI_Int("Spawn",PlayerInfo[playerid][nSpawn]);
    INI_Int("Vyplata",PlayerInfo[playerid][pVyplata]);
    INI_Int("Cela",PlayerInfo[playerid][pCela]);
    INI_Int("CelaDuvod",PlayerInfo[playerid][pCelaDuvod]);
    INI_Int("CelaZatknul",PlayerInfo[playerid][pCelaZatknul]);
    return 0;
}

stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}

stock CarPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),CATH,playername);
    return string;
}

	new Text:TachometrBox[MAX_PLAYERS];
	new Text:TachometrSpeed[MAX_PLAYERS];
	new Text:TachometrKMh[MAX_PLAYERS];
	new Text:TachometrStavBox[MAX_PLAYERS];
	new Text:TachometrVozidloBox[MAX_PLAYERS];
	new Text:TachometrVozOlej[MAX_PLAYERS];
	new Text:TachometrVozStav[MAX_PLAYERS];
	new Text:TachometrVozID[MAX_PLAYERS];
	new Text:TachometrOlej[MAX_PLAYERS];
	new Text:Tachometrdelicka[MAX_PLAYERS];
	new Text:TachometrCarID[MAX_PLAYERS];



new VehName[][] =
{
		 "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
		 "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
		 "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
		 "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
		 "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Autobus",
		 "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
		 "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
		 "Squalo", "Seasparrow", "Pizzaboy", "Tramvaj", "Trailer", "Turismo", "Speeder",
		 "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
		 "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
		 "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
		 "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
		 "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
		 "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
		 "Blista Compact", "Policejni Vrtulnik", "Boxvillde", "Benson", "Mesa", "RC Goblin",
		 "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
		 "Elegant", "Journey", "Kolo", "Mountain Bike", "Beagle", "Cropduster", "Stunt",
		 "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
		 "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
		 "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
		 "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent",
		 "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
		 "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
		 "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
		 "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
		 "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
		 "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
		 "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
		 "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Policie LS",
		 "Policie SF", "Policie LV", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
		 "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
		 "Tiller", "Utility Trailer"
};



new WeaponID[] =
{
		"0","1","2","3","4","5","6",
		"7","8","9","22","23","24",
		"25","26","27","28","29","32",
		"30","31","33","34","35","36",
		"37","38","16","17","18","39",
		"41","10","11","12","15"
};
/*
new VehID[][] =
{
		"400","401","402","403","404","405",
        "406","407","408","409","410","411",
        "412","413","414","415","416","417",
		"418","419","420","421","422","423",
		"424","425","426","427","428","429",
  		"430","431","432","433","434","435",
  		"436","437","438","439","440","441",
  		"442","443","444","445","446","447",
  		"448","449","450","451","452","453",
  		"454","455","456","457","458","459",
		"460","461","462","463","464","465",
		"466","467","468","469","470","471",
		"472","473","474","475","476","477",
		"478","479","480","481","482","483",
		"484","485","486","487","488","489",
		"490","491","492","493","494","495",
		"496","497","498","499","500","501",
		"502","503","504","505","506","507",
		"508","509","510","511","512","513",
		"514","515","516","517","518","519",
		"520","521","522","523","524","525",
		"526","527","528","529","530","531",
		"532","533","534","535","536","537",
		"538","539","540","541","542","543",
		"544","545","546","547","548","549",
		"550","551","552","553","554","555",
		"556","557","558","559","560","561",
		"562","563","564","565","566","567",
		"568","569","570","571","572","573",
		"574","575","576","577","578","579",
		"580","581","582","583","584","585",
		"586","587","588","589","590","591",
		"592","593","594","595","596","597",
		"598","599","600","601","602","603",
		"604","605","606","607","608","609",
		"610","611"
};
*/
/*Credits to Dracoblue*/
stock udb_hash(buf[]) {
    new length=strlen(buf);
    new s1 = 1;
    new s2 = 0;
    new n;
    for (n=0; n<length; n++)
    {
       s1 = (s1 + buf[n]) % 65521;
       s2 = (s2 + s1)     % 65521;
    }
    return (s2 << 16) + s1;
}

stock PlayerName(playerid)
{
    new name[MAX_PLAYER_NAME + 1];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
}

stock ShowPlayerDialogEx(playerid, id, style, lis[], mess[], buttonCJ1[], buttonCJ2[])
{
 if(strlen(lis) == 0 || strlen(mess) == 0 || strlen(buttonCJ1) == 0) return false;
 if(ShowedPlayerDialog[playerid] == true) return false;
 ShowPlayerDialog(playerid, id, style, lis, mess, buttonCJ1, buttonCJ2);
 ShowedPlayerDialog[playerid] = true;
 return true;
}

stock IsNumeric(const string[])
{
new length=strlen(string);
if (length==0) return false;
for (new i = 0; i < length; i++)
{
	 if ((string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+')|| (string[i]=='-' && i!=0)|| (string[i]=='+' && i!=0)) return false;
}
if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
return true;
}

stock GetPlayerSpeed(playerid,bool:kmh)
{
  new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
  if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
  rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
  return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}

forward Tachometr();

public Tachometr()
{
	for(new i; i<MAX_PLAYERS; i++)
	{
if(IsPlayerInAnyVehicle(i))
{
	new speedocars[15];
	format(speedocars, sizeof(speedocars), "%d", GetPlayerSpeed(i,true));
	TextDrawSetString(TachometrSpeed[i], speedocars);
	new carname[128];
	format(carname,sizeof(carname),"%s",VehName[GetVehicleModel(GetPlayerVehicleID(i))-400]);
	TextDrawSetString(TachometrVozID[i], carname);
	new Float:VHP;// Táto premena slúži na zistenie HP vozidla (Samozrejme že funkciou GetVehicleHealth)
	GetVehicleHealth(GetPlayerVehicleID(i),Float:VHP);
	new carheal[16];
	format(carheal,sizeof(carheal), "%.1f %%",VHP/10);
	TextDrawSetString(TachometrVozStav[i],carheal);
} else return 0;
	}
return true;
}

new RandomHelps[][] =
{
	"[Helps]{ffff00}Pokud si na serveru novy tak použí {00ff66}/help{ff0000}!",
	"[Helps]{ffff00}Zde si mužeš koupit za kredit {00ff66}/Premium {00ffff}tvuj stav kreditu najdes {00ff00}/info{ff0000}!",
	"[Helps]{ffff00}{00ffff}Naštiv náš web: {ff0000}http://superpaty.cekuj.net{00ffff}!",
	"[Helps]{ffff00}Kupsi Kredity abys měl pár výhod{ff0000}!",
	"[Helps]{ffff00}Pokud chceš skakat po budovách tak stačí napsat {00ff00}/stuntsf{ff0000}!",
	"[Helps]{ffff00}Pokud budeš chtit na nějaky event tak prostě napiš /event (ukaže se list eventu)",
	"[Helps]{ffff00}Pokud chceš aby se ti uložil učet od pojuj se ESC > opustit hru, jinak se to neulozi!"
};

forward Helps();
public Helps()
{
	new randHLPS = random(sizeof(RandomHelps));
	SendClientMessageToAll(-1,RandomHelps[randHLPS]);
}

forward ZaplatTaxu(taxikarnik,zakaznik);
new taxa[MAX_PLAYERS];

forward stopvip(playerid);

forward jobsjoined(playerid);

forward jobsjoin(playerid,PlayerName);

forward killing(playerid);

forward KickPlayer(id);

forward UnKickPlayer(id);

forward Ann_end();

forward RestartServers(playerid);

forward Banned(playerid);

forward scoremoney(playerid);

forward reloadscore(playerid);

forward unjail(jailid,playerid);

new vezeni;
new zvezeni;

	new Text:Welcome;
	new Text:bytedak;
	new Text:SuperPartyLogo;
	
	new Text:PozadiNazvu;
	new Text:NazevVezen;
	new Text:VezenDuvod;
	new Text:PlayerVezenDuvod;
	new Text:Zatknul;
	new Text:PlayerZatknul;
	
	new Text:PozadiInfo;
	new Text:MenuInfo;
	new Text:InfoClick;
	new Text:UcetClick;
	new Text:HelpClick;
	new Text:KontaktClick;
	new Text:WebClick;


new Text:Ann;
new ann_aktivace;
new timer_ann;

forward Dann_end();
new Text:Dann;
new dann_aktivace;
new timer_dann;

#define COLOR_RED 0xAA3333AA

new Text:JobsJoineds;
new Text:JobsJoins;
new Text:JobsJoinedsbox;
new Text:JobsJoinsbox;

new resettextdrawa;
new resettextdrawb;

/*new bannedplayer;*/

new OdpocetCas;
new OdpocetTimer;

new dozorcegarage;

new TGKorleone;

forward Odpocet_CMD();

public Odpocet_CMD()
{
new string[15];
if(OdpocetCas > 0)
{
	format(string, sizeof(string), "%i", OdpocetCas);
	SendClientMessageToAll(red, string);
	OdpocetCas --;
}
else
{
	SendClientMessageToAll(-1,"{ff0000}!!! {00ffff}START {ff0000}!!!");
	KillTimer(OdpocetTimer);
}
return 1;
}

public unjail(jailid,playerid)
{
	if(PlayerInfo[jailid][pCela] == 0)
 		{
			SendClientMessage(playerid, -1, "Tento Hrač neni ve vězení");
		}
	else if(PlayerInfo[jailid][pCela] == 1)
		{
			TextDrawHideForPlayer(jailid, PozadiNazvu);
			TextDrawHideForPlayer(jailid, NazevVezen);
			TextDrawHideForPlayer(jailid, VezenDuvod);
			TextDrawHideForPlayer(jailid, PlayerVezenDuvod);
			TextDrawHideForPlayer(jailid, Zatknul);
			TextDrawHideForPlayer(jailid, PlayerZatknul);
			PlayerInfo[jailid][pCela] = 0;
			SetPlayerInterior(jailid, 3);
			SetTimerEx("unjail", 0, false, "i", jailid);
			SetPlayerPos(jailid,297.4843,183.2155,1008.2719);
			SendClientMessage(jailid, red, "Byl ste propuštěn z vězeni!");
		}
		return 1;
}

public scoremoney(playerid)
{
	GetPlayerScore(playerid);
    SetPlayerScore(playerid,PlayerInfo[playerid][pCash]);
    	return 1;
}

public reloadscore(playerid)
{
    SetTimerEx("scoremoney", 10000, false, "i", playerid);
    	return 1;
}

public Banned(playerid)
{
	Kick(playerid);
	Ban(playerid);
		return 1;
}

public RestartServers(playerid)
{
	SendRconCommand("gmx");
	SCM(playerid, 0x00ff00aa, "Server resetován v pořátku!");
		return 1;
}

public KickPlayer(id)
{
	Kick(id);
		return 1;
}

public UnKickPlayer(id)
{
	Kickid[id][pKick] = 0;
		return 1;
}

public jobsjoined(playerid)
{
	/*TextDrawHideForPlayer(player, Text:JobsTruckers);*/
 	TextDrawDestroy(Text:JobsJoineds);
	TextDrawHideForPlayer(playerid, Text:JobsJoineds);
	KillTimer(resettextdrawa);
	SCM(playerid,-1,"Už si zaměstnanej");
		return 1;
}

public jobsjoin(playerid,PlayerName)
{
    SCM(PlayerName,-1,"Pravě ses zaměstnal");
	TextDrawDestroy(Text:JobsJoins);
	TextDrawHideForPlayer(playerid, Text:JobsJoins);
	KillTimer(resettextdrawb);
		return 1;
}

public killing(playerid)
{
	SetPlayerHealth(playerid, -200);
		return 1;
}

public Ann_end()
{
for(new i=0;i<= GetMaxPlayers();i++) TextDrawHideForPlayer(i,Ann);
ann_aktivace=0;
KillTimer(timer_ann);
	return 1;
}

public Dann_end()
{
for(new i=0;i<= GetMaxPlayers();i++) TextDrawHideForPlayer(i,Dann);
dann_aktivace=0;
KillTimer(timer_dann);
	return 1;
}

public stopvip(playerid)
{
Premium[playerid][pVIP] = 0;
	return 1;
}

/* Naše zprávy v dialogách: */
	/* Naše ID dialogů: */

#define ADMINLEVEL(%1); if(!PlayerInfo[playerid][pAdmin] < %5) return SCM(playerid,-1, "[ ! ]Nemáte dostatečný AdminLevel !");

#define GivePlayerBody(%0, %1) PlayerPoints[%0] += %1
/*=============================================================================*/
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Gamemode");
	print("--------------------------------------\n");
	return 1;
}


public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" TheWarriors Gamemode by TedakCZE");
	print("----------------------------------\n");
}

#endif



public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Realny Svet Beta 1.5");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    SetTimer("Helps",600000,1);
    SetTimer("Tachometr",200,1);


	banks1 = CreatePickup(19526 ,1, 1958.2897,953.1365,10.8203,0); //banka jedna
	Create3DTextLabel("Bankomat",0x00FF00AA,1958.2897,953.1365,10.8203,12,0);
	/*banks1 = CreatePickup(19526 ,1, 595.7047,-1250.9115,18.3046,0); //banka dve
	banks1 = CreatePickup(19526 ,1, 1519.8077,1050.7092,10.8203,0);*/ //banka tri
	/*--]Trucker[--*/
	truckerjobsls = CreatePickup(1581 ,1, -49.8968,-269.3628,6.6332,0);
	Create3DTextLabel("Zamestnani Kamionak", 0x00ffffaa, -49.8968,-269.3628,6.6332, 40.0, 0);
	truckerjobssf = CreatePickup(1581 ,1, -1713.7528,-62.5537,3.5547,0);
	Create3DTextLabel("Zamestnani Kamionak", 0x00ffffaa, -1713.7528,-62.5537,3.5547, 40.0, 0);
    /*--]Bus[--*/
	busjobs = CreatePickup(1581 ,1, 1123.4253,1465.5111,5.8203);
	Create3DTextLabel("Zamestnani Autobusák", 0x00ffffaa, 1123.4253,1465.5111,5.8203, 40.0, 0);
	CreatePickup(1210 ,1, 1174.3185,1350.9537,10.9219,0);
	/*--]AutoSkola[--*/
	aaskola = CreatePickup(1210,1,-2237.1836,2354.2031,4.9798,0);
	Create3DTextLabel("AutoŠkola",0xff0000aa, -2237.1836,2354.2031,4.9798, 40.0, 0);
	/*--]ShopCars[--*/
	sfshopcars = CreatePickup(1318,1, -1737.3563,-6.7283,3.5547,0);
	Create3DTextLabel("Aaa Auto",0x00ff00aa,-1737.3563,-6.7283,3.5547, 40.0, 0);
	lsshopcars = CreatePickup(1318,1, 2131.5127,-1150.2427,24.1754,0);
	Create3DTextLabel("Mama Cars",0x00ff00aa, 2131.5127,-1150.2427,24.1754, 40.0,0);
	lvshopcars = CreatePickup(1318,1, 2496.2402,1215.1056,10.8203,0);
	Create3DTextLabel("Verben Cars",0x00ff00aa, 2496.2402,1215.1056,10.8203, 40.0,0);
	/*--]Taxi[--*/
	taxijobs = CreatePickup(1318,1, -1737.3563,-6.7283,3.5547,0);
	/*--]Medic[--*/
	zdravotnikjobs = CreatePickup(1318,1, 1286.7982,-1329.2416,13.5549,0);
	Create3DTextLabel("Zdravotnik",0x00ff00aa,1286.7982,-1329.2416,13.5549, 40.0, 0);
	/*--]Policie[--*/
	policiejobs = CreatePickup(1318,1, -1594.2117,716.1631,-4.9063,0);
	Create3DTextLabel("Policajt",0x00ff00aa,-1594.2117,716.1631,-4.9063, 40.0, 0);
	/*--]Hasic[--*/
	hasicjobs = CreatePickup(1318,1, -1737.3563,-6.7283,3.5547,0);
	/*--]Letec[--*/
	letecjobs = CreatePickup(1318,1, -1737.3563,-6.7283,3.5547,0);
	/*--]Pravnik[--*/
	pravnik = CreatePickup(1318,1, -1737.3563,-6.7283,3.5547,0);
	/*--]Pizza[--*/
	pizzajobs = CreatePickup(1318,1, 2634.6140,1716.6898,11.0234,0);
	Create3DTextLabel("Pizza",0x00ff00aa,2634.6140,1716.6898,11.0234, 40.0, 0);
	/*]Tuning Garage[*/
	TGKorleone = CreatePickup(3438,14,1582.7944,-1414.2760,13.7182,0);
	CreatePickup(3438,1,1582.7944,-1414.2760,13.7182,0);
	Create3DTextLabel("Tuning Garaz Korleone", 0x0066ff66aa,1582.7944,-1414.2760,13.7182, 40.0,0);

	
	


							/*Jobs/prace/zamestnani*/
							CreatePickup(1581,1, 958.4749,2097.1836,1011.0226,0);
							Create3DTextLabel("Zaměstnání Řezník",0x00ff00aa,958.4749,2097.1836,1011.0226, 40.0, 0);

							CreatePickup(1581,1, 1054.0277,2148.2473,10.8203,0);
							Create3DTextLabel("Zaměstnání Kamionak",0x00ff00aa,1054.0277,2148.2473,10.8203, 40.0, 0);

							CreatePickup(1581,1, -1737.9996,31.9208,3.5547,0);
							Create3DTextLabel("Zaměstnání Autobusak",0x00ff00aa,-1737.9996,31.9208,3.5547, 40.0, 0);

							CreatePickup(1581,1, 2251.9001,2489.7878,10.9908,0);
							Create3DTextLabel("Zaměstnání Policie",0x00ff00aa,2251.9001,2489.7878,10.9908, 40.0, 0);

							CreatePickup(1581,1, 2177.6897,1720.4755,11.0469,0);
							Create3DTextLabel("Zaměstnání Yakuza",0x00ff00aa,2177.6897,1720.4755,11.0469, 40.0, 0);

							CreatePickup(1581,1, 2160.4661,1640.8025,11.1385,0);
							Create3DTextLabel("Zaměstnání Ruská Mafie",0x00ff00aa,2160.4661,1640.8025,11.1385, 40.0, 0);

							taxikar = CreatePickup(1581,1, 2241.4446,1809.1289,10.8203,0);
							Create3DTextLabel("Zaměstnání Taxi",0x00ff00aa,2241.4446,1809.1289,10.8203, 40.0, 0);

							CreatePickup(1581,1, 211.4185,1810.4886,21.8672,0);
							Create3DTextLabel("Zaměstnání Dozorce",0x00ff00aa,211.4185,1810.4886,21.8672, 40.0, 0);

							CreatePickup(1581,1, 1080.9849,-345.4026,73.9842,0);
							Create3DTextLabel("Zaměstnání Dealer",0x00ff00aa,1080.9849,-345.4026,73.9842, 40.0, 0);

							CreatePickup(1581,1, -1095.7188,-1614.5370,76.3672,0);
							Create3DTextLabel("Zaměstnání Dealer",0x00ff00aa,-1095.7188,-1614.5370,76.3672, 40.0, 0);

							CreatePickup(1581,1, 1744.9290,2082.2756,10.8203,0);
							Create3DTextLabel("Zaměstnání Hasič",0x00ff00aa,1744.9290,2082.2756,10.8203, 40.0, 0);

							CreatePickup(1581,1, -1544.2788,-440.9421,6.0000,0);
							Create3DTextLabel("Zaměstnání Pilot",0x00ff00aa,-1544.2788,-440.9421,6.0000, 40.0, 0);

							CreatePickup(1581,1, 1716.8107,1604.5125,10.0156,0);
							Create3DTextLabel("Zaměstnání Pilot",0x00ff00aa,1716.8107,1604.5125,10.0156, 40.0, 0);

							CreatePickup(1581,1, -2173.2495,679.7377,55.1635,0);
							Create3DTextLabel("Zaměstnání Ruská Mafie",0x00ff00aa,-2173.2495,679.7377,55.1635, 40.0, 0);

								CreatePickup(1581,1, -2055.0464,455.6057,35.1719,0);
							Create3DTextLabel("Zaměstnání Novinář",0x00ff00aa,-2055.0464,455.6057,35.1719, 40.0, 0);

								CreatePickup(1581,1, -2097.4189,643.9241,52.3672,0);
							Create3DTextLabel("Zaměstnání Yakuza",0x00ff00aa,-2097.4189,643.9241,52.3672, 40.0, 0);

								CreatePickup(1581,1, -2024.7053,67.0231,28.4399,0);
							Create3DTextLabel("Zaměstnání Hasič",0x00ff00aa,-2024.7053,67.0231,28.4399, 40.0, 0);

								CreatePickup(1581,1, -2101.5940,-395.3710,35.5313,0);
							Create3DTextLabel("Zaměstnání Mechanik",0x00ff00aa,-2101.5940,-395.3710,35.5313, 40.0, 0);
							/*_____________________*/
							/*--]delnik[--*/
							CreatePickup(12000,1, 816.7156,856.6124,12.7891,0);
							Create3DTextLabel("Info o dělníkovi",0xffff00aa,816.7156,856.6124,12.7891, 40.0, 0);
							Delnikc = CreatePickup(1581,1, 677.5715,924.5881,-40.5159,0);
							CreatePickup(1581,1, 677.5715,924.5881,-40.5159,0);
							Create3DTextLabel("Zaměstnání Dělník",0x00ff00aa, 677.5715,924.5881,-39.8159,40.0, 0);
							/*->delnik mise<-*/
							Delnik_zacatecnik = CreatePickup(19132,14,669.1949,900.0837,-40.6707,0);
							CreatePickup(19132,1,669.1949,900.0837,-40.6707,0);
							Create3DTextLabel("Stlač: Y",0xff0000aa,669.1949,900.0837,-40.6707, 40.0, 0);
							/*--]Truckmise[--*/
							CreatePickup(1685,14, 808.1478,842.9170,9.6908,0);
							CreatePickup(1685,1, 808.1478,842.9170,9.6908,0);
							Create3DTextLabel("Stlač: Y",0x00ffffaa,808.1478,842.9170,9.6908, 40.0, 0);
							/*......----------........../Firmy/----------.........--------*/
							/*Truck*/
						    CreatePickup(1314,1, -2137.7146,-247.8901,36.4156,0);
							Create3DTextLabel("Volné Sídlo",0xff0000aa,-2137.7146,-247.8901,36.8556, 35.0, 0);
							/*==============================================================*/
							/*Vezeni/jail*/
							vezeni = CreatePickup( 19197, 1, 212.4316,1834.8224,17.6406,0);
							zvezeni = CreatePickup( 19197, 1, 260.5634,90.9153,1001.9749,0);
	/*wwwwwwwwwww*/
	/*=================Object==============*/
	CreateObject(1337,2305.2000000,-1542.6000000,25.1000000,0.0000000,0.0000000,90.0000000); //object(binnt07_la) (1)
	CreateObject(1337,2305.2000000,-1541.8000000,25.1000000,0.0000000,0.0000000,90.0000000); //object(binnt07_la) (2)
	CreateObject(1337,2305.1001000,-1540.9000000,25.1000000,0.0000000,0.0000000,90.0000000); //object(binnt07_la) (3)
	CreateObject(1337,2305.0000000,-1539.9000000,25.1000000,0.0000000,0.0000000,90.0000000); //object(binnt07_la) (4)
	CreateObject(1337,2305.3000000,-1538.7000000,25.1000000,0.0000000,0.0000000,90.0000000); //object(binnt07_la) (5)
	AddStaticVehicle(476,280.2000100,1955.2000000,18.8000000,268.0000000,111,130); //Rustler
	AddStaticVehicle(476,281.1000100,1989.4000000,18.8000000,267.9950000,111,130); //Rustler
	AddStaticVehicle(476,280.7000100,2023.9000000,18.8000000,267.9950000,111,130); //Rustler
	AddStaticVehicle(476,325.6000100,2538.3999000,18.0000000,181.9950000,111,130); //Rustler
	AddStaticVehicle(476,290.7999900,2539.3999000,18.0000000,181.9940000,111,130); //Rustler
	AddStaticVehicle(548,342.5000000,1898.1000000,19.5000000,92.0000000,245,245); //Cargobob
	AddStaticVehicle(548,341.2999900,1916.1000000,19.5000000,92.0000000,245,245); //Cargobob
	AddStaticVehicle(548,340.1000100,1931.9000000,19.5000000,92.0000000,245,245); //Cargobob
	AddStaticVehicle(496,2100.7981,1408.5100,10.5349,359.7361,2,64); // car
	AddStaticVehicle(533,2120.0720,1408.6042,10.5216,358.5201,128,64); // car
	AddStaticVehicle(521,2142.6375,1408.2188,10.3900,2.5974,0,64); // car
	AddStaticVehicle(463,2133.0967,1408.1246,10.3605,1.0032,3,64); // car
	AddStaticVehicle(603,2075.0576,1472.6074,10.3990,1.8331,120,8); // car
	AddStaticVehicle(451,2039.8149,1593.6981,10.3789,180.7530,50,64); // car
	AddStaticVehicle(506,2078.1858,1710.7549,10.3763,333.8243,30,64); // car
	AddStaticVehicle(409,2034.5070,1914.8702,11.9777,181.7258,1,64); // car
	AddStaticVehicle(535,2120.3110,1908.9659,10.4359,181.3208,123,64); // car
	AddStaticVehicle(603,2171.4976,1977.4589,10.6583,270.0258,125,64); // car
	AddStaticVehicle(521,2185.9719,2000.6766,10.3924,87.3400,125,64); // car
	AddStaticVehicle(415,2119.9165,2145.2043,10.4436,179.3006,131,64); // car
	AddStaticVehicle(598,2256.3416,2477.5894,10.5668,177.1619,0,64); // car
	AddStaticVehicle(598,2269.1052,2442.9465,10.5648,359.1671,0,64); // car
	AddStaticVehicle(523,2269.6062,2476.2949,10.3866,182.5814,0,64); // car
	AddStaticVehicle(497,2263.0305,2387.5569,19.8368,358.9430,0,64); // car
	AddStaticVehicle(497,2246.1738,2388.2922,19.8359,357.7322,0,64); // car
	AddStaticVehicle(438,2196.1050,1822.3058,10.8274,178.7811,6,64); // car
	AddStaticVehicle(438,2179.5955,1800.0111,10.8230,178.7262,6,64); // car
	AddStaticVehicle(420,2198.8447,1799.7493,10.5983,180.3982,6,64); // car
	AddStaticVehicle(420,2190.9844,1810.1002,10.5983,359.4550,6,64); // car
	AddStaticVehicle(506,2040.4592,1334.7209,10.3764,179.5832,110,64); // car
	AddStaticVehicle(555,2040.5276,1015.7292,10.3569,179.8771,115,64); // car
	AddStaticVehicle(553,1556.4041,1429.9799,12.1901,94.5407,125,64); // car
	AddStaticVehicle(553,1555.4288,1464.2848,12.1544,91.1949,125,64); // car
	AddStaticVehicle(417,1332.0370,1508.5157,10.9346,272.8281,125,64); // car
	AddStaticVehicle(417,1331.1963,1487.2889,10.9102,270.1998,125,64); // car
	AddStaticVehicle(407,1769.6654,2074.3333,11.0526,178.6839,3,64); // car
	AddStaticVehicle(407,1763.1667,2074.2976,11.0552,181.5754,3,64); // car
	AddStaticVehicle(544,1757.5295,2073.4844,11.0535,182.3931,3,64); // car
	AddStaticVehicle(544,1750.8096,2073.6563,11.0580,177.2717,3,64); // car
	AddStaticVehicle(490,1741.8180,2070.5574,10.9478,240.4319,3,64); // car
	AddStaticVehicle(490,1774.6414,2069.4668,10.9487,132.8164,3,64); // car
	AddStaticVehicle(573,1100.9510,1736.1362,11.4709,47.0352,3,64); // car
	AddStaticVehicle(556,1045.9508,1734.4834,11.1953,300.2384,1,64); // car
	AddStaticVehicle(437,1138.6282,1463.3236,5.9550,225.1151,1,64); // car
	AddStaticVehicle(437,1142.5267,1467.2283,5.9536,222.5722,1,64); // car
	AddStaticVehicle(574,1632.1482,986.4553,10.5465,265.4447,1,64); // car
	AddStaticVehicle(574,1632.0869,982.5081,10.5455,270.1609,1,64); // car
	AddStaticVehicle(408,1633.8005,966.7896,11.3672,268.9166,1,64); // car
	AddStaticVehicle(408,1633.2491,960.9818,11.3373,270.1188,1,64); // car
	AddStaticVehicle(448,2631.7827,1858.8701,10.4205,83.7630,3,64); // car
	AddStaticVehicle(448,2631.2039,1855.0791,10.4196,87.9049,3,64); // car
	AddStaticVehicle(549,2631.0581,1845.7642,10.5177,91.1481,3,64); // car
	AddStaticVehicle(549,2631.2529,1842.0858,10.5176,89.8934,3,64); // car
	AddStaticVehicle(538,2864.7500,1328.9338,12.1256,0.0000,0,64); // car
	AddStaticVehicle(522,-1926.2098,584.9218,34.7044,185.4521,1,64); // car
	AddStaticVehicle(475,-1935.4247,585.3087,34.9279,178.9250,60,64); // car
	AddStaticVehicle(538,-1944.3750,89.5764,27.0006,180.0000,0,64); // car
	AddStaticVehicle(525,-2082.2461,-379.1453,35.2298,139.1837,2,64); // car
	AddStaticVehicle(525,-2088.3015,-378.5370,35.2221,140.7700,2,64); // car
	AddStaticVehicle(525,-2094.8940,-378.4036,35.2058,144.3250,2,64); // car
	AddStaticVehicle(525,-2100.2881,-378.3400,35.2193,144.6561,2,64); // car
	AddStaticVehicle(482,-2075.8645,-378.9875,35.4553,138.2663,0,64); // car
	AddStaticVehicle(515,-979.5790,1250.7561,34.1750,33.5080,0,1); //
	AddStaticVehicle(407,-2616.5991,1403.2749,7.3420,63.5513,3,1); //
	AddStaticVehicle(598,2282.3547,2477.8264,10.5654,180.1942,0,1); // car
	AddStaticVehicle(445,2157.0334,1709.4117,10.9218,63.4583,234,64); //
	AddStaticVehicle(507,2164.5037,1705.4799,10.8739,64.8629,239,64); //
	AddStaticVehicle(507,2157.9128,1653.6039,10.8717,106.4787,146,64); //
	AddStaticVehicle(445,2165.5515,1655.9077,10.9219,106.3742,210,64); //
	AddStaticVehicle(519,1326.2908,1559.5422,11.7389,273.4544,1,64); //
	AddStaticVehicle(519,1324.8242,1608.5122,11.7420,273.3622,1,64); //
	AddStaticVehicle(487,1650.0155,1562.6763,10.9935,355.6900,6,64); //
	AddStaticVehicle(487,1615.5372,1554.1213,10.9915,0.6377,0,64); //
	AddStaticVehicle(416,1593.4640,1831.8339,10.9698,1.7467,1,3); //
	AddStaticVehicle(416,1601.1974,1850.5670,10.9698,359.9563,1,3); //
	AddStaticVehicle(416,1612.8282,1839.2257,10.9694,180.3586,1,3); //
	AddStaticVehicle(416,1602.1233,1832.0028,10.9695,1.4096,1,3); //
	AddStaticVehicle(403,1050.7616,2138.2932,11.4261,90.6205,176,64); //
	AddStaticVehicle(514,1050.0876,2129.8445,11.4095,91.2909,200,64); //
	AddStaticVehicle(515,1050.1698,2134.6450,11.8352,90.2602,124,64); //
	AddStaticVehicle(450,1050.9196,2109.8923,11.4421,90.8714,124,64); //
	AddStaticVehicle(450,1050.9283,2104.4797,11.4495,94.6486,214,64); //
	AddStaticVehicle(431,1113.0280,1445.1521,5.9249,185.5263,1,64); //
	AddStaticVehicle(431,1106.4473,1444.5338,5.9235,182.1697,1,64); //
	AddStaticVehicle(483,1134.5098,1457.9807,5.8122,206.2460,167,64); //
	AddStaticVehicle(483,1122.4066,1444.6711,5.8126,183.0608,6,64); //
	AddStaticVehicle(490,203.0626,1879.7650,17.7727,0.0112,0,64); //
	AddStaticVehicle(490,226.2513,1883.9089,17.7679,359.5063,0,64); //
	AddStaticVehicle(458,2148.6809,1407.9758,10.7503,0.2903,36,64); // car1
	AddStaticVehicle(411,2279.0522,1387.6713,42.5474,359.9047,0,64); // car2
	AddStaticVehicle(506,2301.4351,1480.0801,42.5216,270.7794,14,64); // car3
	AddStaticVehicle(591,-1664.3362,-24.7820,4.1977,133.7981,0,64); // vlek 1
	AddStaticVehicle(515,-1671.0511,-31.3081,4.6011,136.9247,0,64); // truck a vlek 1
	AddStaticVehicle(435,-1692.3809,-49.6337,4.1946,132.4848,0,64); // vlek 2
	AddStaticVehicle(514,-1699.3917,-55.9867,4.1346,132.9938,0,64); // truck a vlek 2
	AddStaticVehicle(450,-1688.4755,-92.1656,4.2053,45.6500,0,64); // vlek 3
	AddStaticVehicle(403,-1694.9774,-85.8394,4.1582,44.5234,0,64); // truck a vlek 3
	CreateObject(10991,272.0000000,1877.1000000,8.3000000,0.0000000,0.0000000,0.0000000); //object(mission_05_sfs) (1)
	dozorcegarage = CreateObject(11327,213.8999900,1875.6000000,14.7000000,0.0000000,0.0000000,270.0000000); //object(sfse_hub_grgdoor02) (1)
	CreateObject(2634,226.5000000,1859.2000000,14.5000000,0.0000000,0.0000000,90.0000000); //object(ab_vaultdoor) (1)
	CreateObject(1894,-2148.5000000,-85.4000000,36.4000000,0.0000000,25.7500000,270.5000000); //object(garys_luv_ramp) (1)
	CreateObject(1894,-2077.3999000,-59.9000000,44.1000000,0.0000000,0.0000000,0.0000000); //object(garys_luv_ramp) (4)
	CreateObject(1696,-2072.0000000,-7.4000000,46.3000000,0.0000000,0.0000000,64.0000000); //object(roofstuff15) (1)
	CreateObject(1894,-2124.2000000,13.9000000,39.1000000,358.1180000,19.7580000,271.1760000); //object(garys_luv_ramp) (5)
	CreateObject(1697,-2148.1001000,90.7000000,51.1000000,0.0000000,0.0000000,224.0000000); //object(roofstuff16) (1)
	CreateObject(1697,-2189.6001000,138.0000000,55.7000000,0.0000000,0.0000000,223.9950000); //object(roofstuff16) (2)
	CreateObject(1894,-2212.3000000,193.2000000,56.8000000,0.0000000,8.0000000,268.0000000); //object(garys_luv_ramp) (6)
	CreateObject(1894,-2211.2000000,225.8999900,60.8000000,0.0000000,359.2480000,267.9950000); //object(garys_luv_ramp) (7)
	CreateObject(1894,-2208.8999000,258.0000000,60.4000000,0.0000000,359.2470000,251.9950000); //object(garys_luv_ramp) (8)
	CreateObject(1894,-2200.1001000,285.2000100,60.0000000,358.0380000,11.2490000,264.3830000); //object(garys_luv_ramp) (9)
	CreateObject(1632,-2203.6001000,439.1000100,59.8000000,0.0000000,0.0000000,58.0000000); //object(waterjump1) (1)
	CreateObject(1632,-2207.8000000,441.7999900,62.5000000,12.0000000,0.0000000,57.9970000); //object(waterjump1) (2)
	CreateObject(2931,-2239.3000000,497.5000000,72.7000000,0.0000000,0.0000000,318.0000000); //object(kmb_jump1) (1)
	CreateObject(5153,-2238.7000000,498.0000000,75.1000000,0.9900000,351.9990000,48.1390000); //object(stuntramp7_las2) (1)
	CreateObject(8302,-2163.6001000,542.4000200,83.3000000,0.0000000,0.0000000,284.0000000); //object(jumpbox01_lvs01) (1)
	CreateObject(6052,-2094.3999000,524.4000200,80.9000000,0.0000000,0.0000000,280.2500000); //object(artcurve_law) (1)
	CreateObject(13648,-2101.7000000,494.7999900,81.5000000,0.0000000,0.0000000,0.0000000); //object(wall2) (1)
	CreateObject(18367,-2101.8000000,482.8999900,83.5000000,352.0000000,0.0000000,0.0000000); //object(cw2_bikelog) (1)
 	CreateObject(19312, 191.20657, 1870.02173, 21.37632,   0.00000, 0.00000, 0.00000); // vezeni
	CreateObject(19667, -2057.57910, 403.50439, 125.23681,   0.00000, 0.00000, 183.15796); //stunt
	CreateObject(19651, -2059.96533, 382.18909, 103.41489,   0.00000, 0.00000, 178.73604); //stunt
	CreateObject(18985, -2046.96155, 440.38736, 108.84830,   0.00000, 0.00000, 346.21628); //stunt
	CreateObject(18983, -2169.60449, 408.81558, 96.15438,   0.00000, 0.00000, 90.15687); //stunt
	CreateObject(19650, -2231.17236, 409.33752, 90.90561,   0.00000, 0.00000, 0.00000); //stunt
	CreateObject(18781, -2082.69287, 465.33951, 118.41430,   -17.00000, 0.00000, 360.00000); //stunt
	CreateObject(19652, -2077.63403, 509.60663, 130.18298,   0.00000, 0.00000, 76.98454); //stunt
	CreateObject(19321, -2059.24487, 498.73602, 138.20842,   0.00000, 0.00000, 357.17081); //stunt
	CreateObject(19913, -2134.39355, -46.56644, 55.96174,   0.00000, 0.00000, 0.00000); //stunt
	CreateObject(19913, -2127.67554, -46.42604, 48.19429,   0.00000, 0.00000, -0.65041); //stunt



	Ann = TextDrawCreate(50,150," ");
	TextDrawAlignment(Ann,0);
	TextDrawBackgroundColor(Ann,0x000000ff);
	TextDrawFont(Ann,1);
	TextDrawLetterSize(Ann,0.6,1.5);
	TextDrawSetOutline(Ann,1);
	TextDrawSetProportional(Ann,1);
	TextDrawSetShadow(Ann,1);
	
	Dann = TextDrawCreate(170,400," ");
	TextDrawAlignment(Dann,0);
	TextDrawBackgroundColor(Dann,0x000000ff);
	TextDrawFont(Dann,1);
	TextDrawLetterSize(Dann,0.6,1.5);
	TextDrawSetOutline(Dann,1);
	TextDrawSetProportional(Dann,1);
	TextDrawSetShadow(Dann,1);


	Welcome = TextDrawCreate(315.199951, 130.666809, "Vitej v Realnem Svete");
	TextDrawLetterSize(Welcome, 1.453996, 4.549335);
	TextDrawTextSize(Welcome, -412.000061, 433.066589);
	TextDrawAlignment(Welcome, 2);
	TextDrawColor(Welcome, -5963521);
	TextDrawSetShadow(Welcome, 0);
	TextDrawSetOutline(Welcome, 1);
	TextDrawBackgroundColor(Welcome, 255);
	TextDrawFont(Welcome, 0);
	TextDrawSetProportional(Welcome, 1);

	bytedak = TextDrawCreate(448.000183, 174.719909, "By ~r~TedakCZE ~y~ ~g~TheWarriors");
	TextDrawLetterSize(bytedak, 0.341996, 1.562661);
	TextDrawAlignment(bytedak, 2);
	TextDrawColor(bytedak, 16777215);
	TextDrawSetShadow(bytedak, 0);
	TextDrawSetOutline(bytedak, 1);
	TextDrawBackgroundColor(bytedak, 255);
	TextDrawFont(bytedak, 1);
	TextDrawSetProportional(bytedak, 1);


    SuperPartyLogo = TextDrawCreate(77.599311, 423.360076, "ATheWarriors");
	TextDrawLetterSize(SuperPartyLogo, 0.540398, 2.227198);
	TextDrawTextSize(SuperPartyLogo, 592.000610, 147.093460);
	TextDrawAlignment(SuperPartyLogo, 2);
	TextDrawColor(SuperPartyLogo, 255);
	TextDrawSetShadow(SuperPartyLogo, 0);
	TextDrawSetOutline(SuperPartyLogo, 1);
	TextDrawBackgroundColor(SuperPartyLogo, 16711935);
	TextDrawFont(SuperPartyLogo, 2);
	TextDrawSetProportional(SuperPartyLogo, 1);
	
	PozadiNazvu = TextDrawCreate(490.799987, 446.513336, "usebox");
	TextDrawLetterSize(PozadiNazvu, 0.000000, -26.767015);
	TextDrawTextSize(PozadiNazvu, 630.799987, 0.000000);
	TextDrawAlignment(PozadiNazvu, 1);
	TextDrawColor(PozadiNazvu, 0);
	TextDrawUseBox(PozadiNazvu, true);
	TextDrawBoxColor(PozadiNazvu, 65365);
	TextDrawSetShadow(PozadiNazvu, 0);
	TextDrawSetOutline(PozadiNazvu, 0);
	TextDrawBackgroundColor(PozadiNazvu, 65535);
	TextDrawFont(PozadiNazvu, 0);

	NazevVezen = TextDrawCreate(559.200012, 214.293380, "Vezen");
	TextDrawLetterSize(NazevVezen, 1.297999, 2.869333);
	TextDrawAlignment(NazevVezen, 2);
	TextDrawColor(NazevVezen, 255);
	TextDrawSetShadow(NazevVezen, 0);
	TextDrawSetOutline(NazevVezen, 1);
	TextDrawBackgroundColor(NazevVezen, -1);
	TextDrawFont(NazevVezen, 1);
	TextDrawSetProportional(NazevVezen, 1);

	VezenDuvod = TextDrawCreate(562.399963, 245.653320, "Duvod:");
	TextDrawLetterSize(VezenDuvod, 0.449999, 1.600000);
	TextDrawTextSize(VezenDuvod, -96.000000, 138.133300);
	TextDrawAlignment(VezenDuvod, 2);
	TextDrawColor(VezenDuvod, -86);
	TextDrawSetShadow(VezenDuvod, 0);
	TextDrawSetOutline(VezenDuvod, 1);
	TextDrawBackgroundColor(VezenDuvod, 799);
	TextDrawFont(VezenDuvod, 1);
	TextDrawSetProportional(VezenDuvod, 1);

	PlayerVezenDuvod = TextDrawCreate(559.999938, 266.559936, " ");
	TextDrawLetterSize(PlayerVezenDuvod, 0.449999, 1.600000);
	TextDrawTextSize(PlayerVezenDuvod, -343.200286, 111.253273);
	TextDrawAlignment(PlayerVezenDuvod, 2);
	TextDrawColor(PlayerVezenDuvod, -16776961);
	TextDrawUseBox(PlayerVezenDuvod, true);
	TextDrawBoxColor(PlayerVezenDuvod, 255);
	TextDrawSetShadow(PlayerVezenDuvod, 0);
	TextDrawSetOutline(PlayerVezenDuvod, 1);
	TextDrawBackgroundColor(PlayerVezenDuvod, 51);
	TextDrawFont(PlayerVezenDuvod, 1);
	TextDrawSetProportional(PlayerVezenDuvod, 1);

	Zatknul = TextDrawCreate(558.400024, 382.293365, "Zatknul:");
	TextDrawLetterSize(Zatknul, 0.449999, 1.600000);
	TextDrawAlignment(Zatknul, 2);
	TextDrawColor(Zatknul, 16711850);
	TextDrawSetShadow(Zatknul, 0);
	TextDrawSetOutline(Zatknul, 1);
	TextDrawBackgroundColor(Zatknul, 51);
	TextDrawFont(Zatknul, 1);
	TextDrawSetProportional(Zatknul, 1);

	PlayerZatknul = TextDrawCreate(560.000000, 408.426635, " ");
	TextDrawLetterSize(PlayerZatknul, 0.449999, 1.600000);
	TextDrawTextSize(PlayerZatknul, -400.000000, 112.000000);
	TextDrawAlignment(PlayerZatknul, 2);
	TextDrawColor(PlayerZatknul, -1);
	TextDrawUseBox(PlayerZatknul, true);
	TextDrawBoxColor(PlayerZatknul, 255);
	TextDrawSetShadow(PlayerZatknul, 0);
	TextDrawSetOutline(PlayerZatknul, 1);
	TextDrawBackgroundColor(PlayerZatknul, 51);
	TextDrawFont(PlayerZatknul, 1);
	TextDrawSetProportional(PlayerZatknul, 1);
	

    	PozadiInfo = TextDrawCreate(374.800262, 344.966857, "usebox");
	TextDrawLetterSize(PozadiInfo, 0.067198, -17.950923);
	TextDrawTextSize(PozadiInfo, 531.600280, 108.266647);
	TextDrawAlignment(PozadiInfo, 1);
	TextDrawColor(PozadiInfo, 0);
	TextDrawUseBox(PozadiInfo, true);
	TextDrawBoxColor(PozadiInfo, -10092459);
	TextDrawSetShadow(PozadiInfo, -28);
	TextDrawSetOutline(PozadiInfo, 0);
	TextDrawFont(PozadiInfo, 0);

	MenuInfo = TextDrawCreate(451.199981, 187.413299, "Menu Info");
	TextDrawLetterSize(MenuInfo, 0.756398, 2.891731);
	TextDrawAlignment(MenuInfo, 2);
	TextDrawColor(MenuInfo, 255);
	TextDrawSetShadow(MenuInfo, 0);
	TextDrawSetOutline(MenuInfo, 1);
	TextDrawBackgroundColor(MenuInfo, -1);
	TextDrawFont(MenuInfo, 0);
	TextDrawSetProportional(MenuInfo, 1);

	InfoClick = TextDrawCreate(436.800109, 221.013336, "Info");
	TextDrawLetterSize(InfoClick, 0.449999, 1.600000);
	TextDrawTextSize(InfoClick, 467.999786, 112.746650);
	TextDrawAlignment(InfoClick, 1);
	TextDrawColor(InfoClick, -1);
	TextDrawUseBox(InfoClick, true);
	TextDrawBoxColor(InfoClick, -6750208);
	TextDrawSetShadow(InfoClick, 0);
	TextDrawSetOutline(InfoClick, 1);
	TextDrawBackgroundColor(InfoClick, 255);
	TextDrawFont(InfoClick, 1);
	TextDrawSetProportional(InfoClick, 1);
	TextDrawSetSelectable(InfoClick, true);

	UcetClick = TextDrawCreate(434.400054, 244.159927, "Ucet");
	TextDrawLetterSize(UcetClick, 0.453999, 1.622400);
	TextDrawTextSize(UcetClick, 469.600158, 267.306610);
	TextDrawAlignment(UcetClick, 1);
	TextDrawColor(UcetClick, -1);
	TextDrawUseBox(UcetClick, true);
	TextDrawBoxColor(UcetClick, 0);
	TextDrawSetShadow(UcetClick, 0);
	TextDrawSetOutline(UcetClick, 1);
	TextDrawBackgroundColor(UcetClick, 255);
	TextDrawFont(UcetClick, 1);
	TextDrawSetProportional(UcetClick, 1);
	TextDrawSetSelectable(UcetClick, true);

	HelpClick = TextDrawCreate(434.400054, 267.213378, "Help");
	TextDrawLetterSize(HelpClick, 0.449999, 1.600000);
	TextDrawTextSize(HelpClick, 468.000122, -188.906600);
	TextDrawAlignment(HelpClick, 1);
	TextDrawColor(HelpClick, -1);
	TextDrawUseBox(HelpClick, true);
	TextDrawBoxColor(HelpClick, 0);
	TextDrawSetShadow(HelpClick, 0);
	TextDrawSetOutline(HelpClick, 1);
	TextDrawBackgroundColor(HelpClick, 255);
	TextDrawFont(HelpClick, 1);
	TextDrawSetProportional(HelpClick, 1);
	TextDrawSetSelectable(HelpClick, true);

	KontaktClick = TextDrawCreate(424.000000, 290.452911, "Kontakt");
	TextDrawLetterSize(KontaktClick, 0.449999, 1.600000);
	TextDrawTextSize(KontaktClick, 484.799835, 165.013397);
	TextDrawAlignment(KontaktClick, 1);
	TextDrawColor(KontaktClick, -1);
	TextDrawUseBox(KontaktClick, true);
	TextDrawBoxColor(KontaktClick, 0);
	TextDrawSetShadow(KontaktClick, 0);
	TextDrawSetOutline(KontaktClick, 1);
	TextDrawBackgroundColor(KontaktClick, 255);
	TextDrawFont(KontaktClick, 1);
	TextDrawSetProportional(KontaktClick, 1);
	TextDrawSetSelectable(KontaktClick, true);

	WebClick = TextDrawCreate(387.999877, 316.586914, "Webova Stranka");
	TextDrawLetterSize(WebClick, 0.449999, 1.600000);
	TextDrawTextSize(WebClick, 523.200073, 151.573501);
	TextDrawAlignment(WebClick, 1);
	TextDrawColor(WebClick, -1);
	TextDrawUseBox(WebClick, true);
	TextDrawBoxColor(WebClick, 0);
	TextDrawSetShadow(WebClick, 0);
	TextDrawSetOutline(WebClick, 1);
	TextDrawBackgroundColor(WebClick, 255);
	TextDrawFont(WebClick, 1);
	TextDrawSetProportional(WebClick, 1);
	TextDrawSetSelectable(WebClick, true);

	for(new i; i<MAX_PLAYERS; i++)
	{
	TachometrBox[i] = TextDrawCreate(421.199981, 337.840057, "box");
	TextDrawLetterSize(TachometrBox[i], 0.000000, 7.519998);
	TextDrawTextSize(TachometrBox[i], 632.000000, 0.000000);
	TextDrawAlignment(TachometrBox[i], 1);
	TextDrawColor(TachometrBox[i], -1);
	TextDrawUseBox(TachometrBox[i], 1);
	TextDrawBoxColor(TachometrBox[i], 102);
	TextDrawSetShadow(TachometrBox[i], 0);
	TextDrawSetOutline(TachometrBox[i], 0);
	TextDrawBackgroundColor(TachometrBox[i], 255);
	TextDrawFont(TachometrBox[i], 1);
	TextDrawSetProportional(TachometrBox[i], 1);
	TextDrawSetShadow(TachometrBox[i], 0);

	TachometrSpeed[i] = TextDrawCreate(425.199859, 343.066833, " ");
	TextDrawLetterSize(TachometrSpeed[i], 0.591200, 4.399999);
	TextDrawAlignment(TachometrSpeed[i], 1);
	TextDrawColor(TachometrSpeed[i], -5963521);
	TextDrawSetShadow(TachometrSpeed[i], 0);
	TextDrawSetOutline(TachometrSpeed[i], 0);
	TextDrawBackgroundColor(TachometrSpeed[i], 102);
	TextDrawFont(TachometrSpeed[i], 1);
	TextDrawSetProportional(TachometrSpeed[i], 1);
	TextDrawSetShadow(TachometrSpeed[i], 0);

	TachometrKMh[i] = TextDrawCreate(427.600006, 379.653442, "KM/h");
	TextDrawLetterSize(TachometrKMh[i], 0.400000, 1.600000);
	TextDrawAlignment(TachometrKMh[i], 1);
	TextDrawColor(TachometrKMh[i], -1);
	TextDrawSetShadow(TachometrKMh[i], 0);
	TextDrawSetOutline(TachometrKMh[i], 0);
	TextDrawBackgroundColor(TachometrKMh[i], 255);
	TextDrawFont(TachometrKMh[i], 1);
	TextDrawSetProportional(TachometrKMh[i], 1);
	TextDrawSetShadow(TachometrKMh[i], 0);

	TachometrStavBox[i] = TextDrawCreate(478.000000, 339.333404, "Stav_Vozidla:_");
	TextDrawLetterSize(TachometrStavBox[i], 0.400000, 1.600000);
	TextDrawAlignment(TachometrStavBox[i], 1);
	TextDrawColor(TachometrStavBox[i], -1);
	TextDrawSetShadow(TachometrStavBox[i], 0);
	TextDrawSetOutline(TachometrStavBox[i], 0);
	TextDrawBackgroundColor(TachometrStavBox[i], 255);
	TextDrawFont(TachometrStavBox[i], 1);
	TextDrawSetProportional(TachometrStavBox[i], 1);
	TextDrawSetShadow(TachometrStavBox[i], 0);

	TachometrVozidloBox[i] = TextDrawCreate(478.799896, 360.240112, "Vozidlo:");
	TextDrawLetterSize(TachometrVozidloBox[i], 0.400000, 1.600000);
	TextDrawAlignment(TachometrVozidloBox[i], 1);
	TextDrawColor(TachometrVozidloBox[i], -1);
	TextDrawSetShadow(TachometrVozidloBox[i], 0);
	TextDrawSetOutline(TachometrVozidloBox[i], 0);
	TextDrawBackgroundColor(TachometrVozidloBox[i], 255);
	TextDrawFont(TachometrVozidloBox[i], 1);
	TextDrawSetProportional(TachometrVozidloBox[i], 1);
	TextDrawSetShadow(TachometrVozidloBox[i], 0);

	TachometrVozOlej[i] = TextDrawCreate(479.600158, 384.880004, "Hladina_oleje:");
	TextDrawLetterSize(TachometrVozOlej[i], 0.400000, 1.600000);
	TextDrawAlignment(TachometrVozOlej[i], 1);
	TextDrawColor(TachometrVozOlej[i], -1);
	TextDrawSetShadow(TachometrVozOlej[i], 0);
	TextDrawSetOutline(TachometrVozOlej[i], 0);
	TextDrawBackgroundColor(TachometrVozOlej[i], 255);
	TextDrawFont(TachometrVozOlej[i], 1);
	TextDrawSetProportional(TachometrVozOlej[i], 1);
	TextDrawSetShadow(TachometrVozOlej[i], 0);

	TachometrVozStav[i] = TextDrawCreate(572.399963, 339.333312, " ");
	TextDrawLetterSize(TachometrVozStav[i], 0.400000, 1.600000);
	TextDrawAlignment(TachometrVozStav[i], 1);
	TextDrawColor(TachometrVozStav[i], 16711935);
	TextDrawSetShadow(TachometrVozStav[i], 0);
	TextDrawSetOutline(TachometrVozStav[i], 0);
	TextDrawBackgroundColor(TachometrVozStav[i], 255);
	TextDrawFont(TachometrVozStav[i], 1);
	TextDrawSetProportional(TachometrVozStav[i], 1);
	TextDrawSetShadow(TachometrVozStav[i], 0);

	TachometrVozID[i] = TextDrawCreate(549.999938, 360.986694, " ");
	TextDrawLetterSize(TachometrVozID[i], 0.400000, 1.600000);
	TextDrawAlignment(TachometrVozID[i], 1);
	TextDrawColor(TachometrVozID[i], 16777215);
	TextDrawSetShadow(TachometrVozID[i], 0);
	TextDrawSetOutline(TachometrVozID[i], 0);
	TextDrawBackgroundColor(TachometrVozID[i], 255);
	TextDrawFont(TachometrVozID[i], 1);
	TextDrawSetProportional(TachometrVozID[i], 1);
	TextDrawSetShadow(TachometrVozID[i], 0);

	TachometrOlej[i] = TextDrawCreate(573.199645, 385.626739, "100");
	TextDrawLetterSize(TachometrOlej[i], 0.400000, 1.600000);
	TextDrawAlignment(TachometrOlej[i], 1);
	TextDrawColor(TachometrOlej[i], -16776961);
	TextDrawSetShadow(TachometrOlej[i], 0);
	TextDrawSetOutline(TachometrOlej[i], 0);
	TextDrawBackgroundColor(TachometrOlej[i], 255);
	TextDrawFont(TachometrOlej[i], 1);
	TextDrawSetProportional(TachometrOlej[i], 1);
	TextDrawSetShadow(TachometrOlej[i], 0);

	Tachometrdelicka[i] = TextDrawCreate(474.799957, 338.586791, "box");
	TextDrawLetterSize(Tachometrdelicka[i], 0.000000, 7.440001);
	TextDrawTextSize(Tachometrdelicka[i], 472.000000, 0.000000);
	TextDrawAlignment(Tachometrdelicka[i], 1);
	TextDrawColor(Tachometrdelicka[i], -1);
	TextDrawUseBox(Tachometrdelicka[i], 1);
	TextDrawBoxColor(Tachometrdelicka[i], 255);
	TextDrawSetShadow(Tachometrdelicka[i], 0);
	TextDrawSetOutline(Tachometrdelicka[i], 0);
	TextDrawBackgroundColor(Tachometrdelicka[i], 255);
	TextDrawFont(Tachometrdelicka[i], 1);
	TextDrawSetProportional(Tachometrdelicka[i], 1);
	TextDrawSetShadow(Tachometrdelicka[i], 0);

	TachometrCarID[i] = TextDrawCreate(413.799896, 281.933563, "");
	TextDrawLetterSize(TachometrCarID[i], 0.000000, 0.000000);
	TextDrawTextSize(TachometrCarID[i], 90.000000, 90.000000);
	TextDrawAlignment(TachometrCarID[i], 1);
	TextDrawColor(TachometrCarID[i], -1);
	TextDrawSetShadow(TachometrCarID[i], 0);
	TextDrawSetOutline(TachometrCarID[i], 0);
	TextDrawBackgroundColor(TachometrCarID[i], 0);
	TextDrawFont(TachometrCarID[i], 5);
	TextDrawSetProportional(TachometrCarID[i], 0);
	TextDrawSetShadow(TachometrCarID[i], 0);
	TextDrawSetPreviewRot(TachometrCarID[i], 2.000000, 0.000000, -40.000000, 1.000000);
	
	TachometrCarID[i] = TextDrawCreate(413.799896, 281.933563, " ");
	TextDrawLetterSize(TachometrCarID[i], 0.000000, 0.000000);
	TextDrawTextSize(TachometrCarID[i], 90.000000, 90.000000);
	TextDrawAlignment(TachometrCarID[i], 1);
	TextDrawColor(TachometrCarID[i], -1);
	TextDrawSetShadow(TachometrCarID[i], 0);
	TextDrawSetOutline(TachometrCarID[i], 0);
	TextDrawBackgroundColor(TachometrCarID[i], 0);
	TextDrawFont(TachometrCarID[i], 5);
	TextDrawSetProportional(TachometrCarID[i], 0);
	TextDrawSetShadow(TachometrCarID[i], 0);
	TextDrawSetPreviewRot(TachometrCarID[i], 2.000000, 0.000000, -40.000000, 1.000000);
	TextDrawSetPreviewModel(TachometrCarID[i], 515);
	TextDrawSetPreviewVehCol(TachometrCarID[i], 3, 2);
	}

    SetTimer("Tachometr",213,true);

	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerFacingAngle(playerid, 164.8435);
	SetPlayerCameraPos(playerid, 285.8013,2756.0342,43.3512);
	SetPlayerCameraLookAt(playerid, 278.9123,2697.6765,38.2992);

 RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
	return 1;
}

public OnPlayerConnect(playerid)
{
	GetPlayerWantedLevel(PlayerInfo[playerid][pWandlvl]);
	
	    if(fexist(CarPath(playerid)))
	    {
	        INI_ParseFile(CarPath(playerid), "LoadCar_%s", .bExtra = true, .extra = playerid);
		}
		else
		{
		    SCM(playerid,-1,"Právě si získal Garaž");
		}
	
        if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        new s[1200];
        strcat(s,""r"{ccff00}=====================================[{ff0000}Pravidla{ccff00}]=====================================\n");
        strcat(s,""r" \t{ff0000}1.{ffffff}Neurážej adminy{ff0000}!\n");
        strcat(s,""r" \t{ff0000}2.{ffffff}nespamuj{ff0000}!\n");
        strcat(s,""r" \t{ff0000}3.{ffffff}chyby pište neprodleně na e-mail (/kontakt){ff0000}!\n");
        strcat(s,""r" \t{ff0000}4.{ffffff}necheatuj! pezprodleně permanet IP BAN{ff0000}!\n");
        strcat(s,""r" \t{ff0000}5.{ffffff}obhajování pište na e-mail (př.ja sem speed hack neměl){ff0000}!\n");
        strcat(s,""r" \t{ff0000}6.{ffffff}je zakázáno schazovat server (úmyslně,neúmyslně){ff0000}!\n");
        strcat(s,""r" \t{ff0000}7.{ffffff}PŘÍSNÝ ZÁKAZ REKLAMI{ff0000}!!!\n");
        strcat(s,""r" \t{ff0000}8.{ffffff}Hráč je povinen se držet zásad slušného chování, dobrých mravů a respektuje veškerá ustanovení administratorů\n.");
		strcat(s,""r" \n\t{ff0000}!!{ffffff}TATO PRAVIDLA PLATÍ I PRO ADMINISTRÁTORY{ff0000}!!\n");
		strcat(s,""r"{ccff00}=====================================[{ff0000}Informace{ccff00}]=====================================\n");
		strcat(s,""r"\t \t \t{ff0000}!!!{ffffff} Neznalost pravidel neomlouvá {ff0000}!!!\n");
        strcat(s,""r" {99ff00}Vítejte zpět na serveru\n");
        strcat(s,""r" {99ff00}Prosím zadejte heslo, které jste zadal při registraci:");
        new lgp[150];
        format(lgp, sizeof(lgp), "{ff0000}%s({00ffff}%d{ff0000})", PlayerName(playerid),playerid);
        ShowPlayerDialogEx(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,lgp,s,"Ok","");
	}
    else
    {
        new s[1200];
        strcat(s,""r"{ccff00}=====================================[{ff0000}Pravidla{ccff00}]=====================================\n");
        strcat(s,""r" \t{ff0000}1.{ffffff}Neurážej adminy{ff0000}!\n");
        strcat(s,""r" \t{ff0000}2.{ffffff}nespamuj{ff0000}!\n");
        strcat(s,""r" \t{ff0000}3.{ffffff}chyby pište neprodleně na e-mail (/kontakt){ff0000}!\n");
        strcat(s,""r" \t{ff0000}4.{ffffff}necheatuj! pezprodleně permanet IP BAN{ff0000}!\n");
        strcat(s,""r" \t{ff0000}5.{ffffff}obhajování pište na e-mail (př.ja sem speed hack neměl){ff0000}!\n");
        strcat(s,""r" \t{ff0000}6.{ffffff}je zakázáno schazovat server (úmyslně,neúmyslně){ff0000}!\n");
        strcat(s,""r" \t{ff0000}7.{ffffff}PŘÍSNÝ ZÁKAZ REKLAMI{ff0000}!!!\n");
        strcat(s,""r" \t{ff0000}8.{ffffff}Hráč je povinen se držet zásad slušného chování, dobrých mravů a respektuje veškerá ustanovení administratorů\n.");
		strcat(s,""r" \n\t{ff0000}!!{ffffff}TATO PRAVIDLA PLATÍ I PRO ADMINISTRÁTORY{ff0000}!!\n");
		strcat(s,""r"{ccff00}=====================================[{ff0000}Informace{ccff00}]=====================================\n");
		strcat(s,""r"\t \t \t{ff0000}!!!{ffffff} Neznalost pravidel neomlouvá {ff0000}!!!\n");
		strcat(s,""r" {99ff00}Vítejte po prvé na serveru\n");
        strcat(s,""r" {99ff00}Prosím zadejte heslo, aby jste se zaregistroval (minimálně 16 znaků!):");
        ShowPlayerDialogEx(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_RED"Registrace",s,"Ok","");
        GivePlayerMoney(playerid, 20000);
        PlayerInfo[playerid][pAdmin] = 0;
        povolani[playerid][pJobs] = 0;
	}
  		
	if(PlayerInfo[playerid][nJoin] == 0)
	    {
				if(Pohlavi[playerid][pSex] == 1)
				{
				new join[MAX_PLAYER_NAME], string[140+MAX_PLAYER_NAME];
				GetPlayerName(playerid, join, sizeof(join));
				format(string, sizeof(string), "{44ff99}[ ! ]{0000ff}B {00ffff}Hráč {00ff00}%s{ffffff}({ffff00}%d{ffffff}) {00ffff}Se Připojil na Server!", join,playerid);
				SendClientMessageToAll(-1, string);
				}
				if(Pohlavi[playerid][pSex] == 2)
				{
				new join[MAX_PLAYER_NAME], string[140+MAX_PLAYER_NAME];
				GetPlayerName(playerid, join, sizeof(join));
				format(string, sizeof(string), "{44ff99}[ ! ]{ff00ff}G {00ffff}Hráč {00ff00}%s{ffffff}({ffff00}%d{ffffff}) {00ffff}Se Připojil na Server!", join,playerid);
				SendClientMessageToAll(-1, string);
				}
		}
		
	if(Banid[playerid][pBan] == 1)
	{
	SetTimerEx("Banned", 7000, false, "i", playerid);
	SCM(playerid, 0xff0000aa, "Byl si ZaBanován");
	SCM(playerid, 0xff0000aa, "Osvuj unban žádej na našem emailu: TheWarriorsDJ@seznam.cz!");
 	SCM(playerid, 0xff0000aa, "pokud myslíš že ti byl ban udelen nepravem žadeh si onej na webovich stankach");
    SCM(playerid, 0x00ff00aa, "http://TheWarriors.cz");
	}
	
	
	PlayAudioStreamForPlayer(playerid, "http://TheWarriors.cz/AMVZESTKarton.mp3");
	    for (new i; i < 100; i++)
	    {
	    SCM(playerid, -1," ");
	    }

	if(PlayerInfo[playerid][pAdmin] < 1)
    {
	printf("[SERVER]Administrátor %s(%d) [LVL: %d] se připojil na server", PlayerName(playerid),playerid,PlayerInfo[playerid][pAdmin]);
	}
	
	TextDrawShowForPlayer(playerid, Welcome);
	TextDrawShowForPlayer(playerid, bytedak);
	TextDrawShowForPlayer(playerid, SuperPartyLogo);
	return 1;
}



public OnPlayerDisconnect(playerid, reason)
{
	
    IsPlayerConnected(playerid);
    SendRconCommand("se Od pojil ze Serveru!");

    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"Wandlvl",GetPlayerWantedLevel(playerid));
    INI_WriteInt(File,"Skin",GetPlayerSkin(playerid));
	INI_WriteInt(File,"Kredit",PlayerPoints[playerid][pKredit]);
	INI_WriteInt(File,"Bank",PlayerBanks[playerid][pBank]);
	INI_WriteInt(File,"Jobs",povolani[playerid][pJobs]);
	INI_WriteInt(File,"RidicakB",AutoSkola[playerid][pAsB]);
	INI_WriteInt(File,"RidicakC+E",AutoSkola[playerid][pAsCe]);
	INI_WriteInt(File,"Pohlavi",Pohlavi[playerid][pSex]);
	INI_WriteInt(File,"Type_Premium",Premium[playerid][pVIP]);
	INI_WriteInt(File,"Level",Levels[playerid][pLevel]);
	INI_WriteInt(File,"Ban",Banid[playerid][pBan]);
	INI_WriteInt(File,"BanEx",BanExid[playerid][pBanEx]);
	INI_WriteInt(File,"Kick",Kickid[playerid][pKick]);
	INI_WriteInt(File,"Funkce",PlayerInfo[playerid][fFunkce]);
 	INI_WriteInt(File,"JoinView",PlayerInfo[playerid][nJoin]);
    INI_WriteInt(File,"CloseView",PlayerInfo[playerid][nClose]);
    INI_WriteInt(File,"Spawn",PlayerInfo[playerid][nSpawn]);
    INI_WriteInt(File,"Vyplata",PlayerInfo[playerid][pVyplata]);
    INI_WriteInt(File,"Cela",PlayerInfo[playerid][pCela]);
    INI_WriteString(File,"CelaDuvod",PlayerInfo[playerid][pCelaDuvod]);
    INI_WriteString(File,"CelaZatknul",PlayerInfo[playerid][pCelaZatknul]);
    INI_Close(File);
    
   	new INI:Garage = INI_Open(CarPath(playerid));
	INI_SetTag(Garage,"CarsData");
	INI_WriteString(Garage,"Owner",VehInfo[playerid][vCarOwner]);
	INI_WriteInt(Garage,"CarID",VehInfo[playerid][vCarId]);
	INI_WriteFloat(Garage,"X",VehInfo[playerid][vCarX]);
	INI_WriteFloat(Garage,"Y",VehInfo[playerid][vCarY]);
	INI_WriteFloat(Garage,"Z",VehInfo[playerid][vCarZ]);
	INI_WriteFloat(Garage,"R",VehInfo[playerid][vCarR]);
	INI_WriteInt(Garage,"Color1",VehInfo[playerid][vCarColor1]);
	INI_WriteInt(Garage,"Color2",VehInfo[playerid][vCarColor2]);
	INI_WriteInt(Garage,"CarSpawn",VehInfo[playerid][vCarSpawn]);
	INI_Close(Garage);
    
    if(PlayerInfo[playerid][pAdmin] < 1)
	{
  	PlayerInfo[playerid][fFunkce] = 0;
	}
	
    if(PlayerInfo[playerid][nClose] == 0)
    {
		new crashp[100];
		new crashp2[100]; // String o 100 znacích
	    format(crashp2,sizeof(crashp2),"Hrač se jmenuje %s",crashp);
	    new str[100];
		switch(reason)
		{
		case 0:
		format(str,100,"Hráč %s se odpojil ze serveru. (Spadla hra)",PlayerName(playerid));
		case 1:
		format(str,100,"Hráč %s se odpojil ze serveru. (Odešel)",PlayerName(playerid));
		case 2:
		format(str,100,"Hráč %s se odpojil ze serveru. (Ban/Kick)",PlayerName(playerid));
		}
		SendClientMessageToAll(C_INFO,str);
	}
	if(PlayerInfo[playerid][nClose] == 1)
 	{
 	}
	
	if(ann_aktivace==1)
	{
	TextDrawHideForPlayer(playerid,Ann);
	}
	
	if(dann_aktivace==1)
	{
	TextDrawHideForPlayer(playerid,Dann);
	}
	
    TextDrawHideForPlayer(playerid, SuperPartyLogo);
	
	return 1;
}

public OnPlayerSpawn(playerid)
{

	TextDrawHideForPlayer(playerid, Welcome);
	TextDrawHideForPlayer(playerid, bytedak);

	if(povolani[playerid][pJobs] == 0)
	{
	    SetPlayerColor(playerid, 0xffffff);
	    new bezdak[250];
	    strcat(bezdak,"Zdar Sorry si bezdomovec smrdíš a pachneš\n");
	    strcat(bezdak,"Jdi se umejt a jdi si najit praci takhle to dlouho nevydržíš\n");
	    strcat(bezdak,"nebo skus žebrat na ulici možna ti nakí hráč něco daruje\n");
	    strcat(bezdak,"nějake penize na jidlo ale to asi malo kdo udělá");
	    strcat(bezdak,"žebráš /zebrat id  \n a hrac zada /darzebrakovi id castka");
		ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_MSGBOX, "Bezdomovec",bezdak ,"Potvrdit","");
	}
	if(PlayerInfo[playerid][nSpawn] == 0)
	    {
	    SetPlayerColor(playerid, 0xffffffaa);
	    SetPlayerPos(playerid, 1649.5458,1301.3575,10.8203);
	    if(povolani[playerid][pJobs] == 0)
	    {
	    SetPlayerPos(playerid, 1649.5458,1301.3575,10.8203);
	        if(Pohlavi[playerid][pSex] == 1)
				{
				SetPlayerSkin(playerid, 171);
				}
			if(Pohlavi[playerid][pSex] == 2)
				{
				SetPlayerSkin(playerid, 172);
				}
    		if(Premium[playerid][pVIP] == 1)
				{
				SetPlayerArmour(playerid, 50);
				}
			if(Premium[playerid][pVIP] == 2)
				{
				SetPlayerArmour(playerid, 200);
				}
	    }
	 }

    
    
    if(Pohlavi[playerid][pSex] == 0)
	{
	new ponmds[1000];
	new nmss[300];
	strcat(ponmds, "Pohlaví\n");
	strcat(ponmds, "Kluk\n");
	strcat(ponmds, "Holka");
	strcat(nmss, "{ff9933}Ahoj vyber své pohlaví\n");
	ShowPlayerDialogEx(playerid, 956, 5,nmss,ponmds,"Enter","");
	}else{
	new info[800];
	new infos[800];
	new infoss[800];
	format(info,sizeof(info),"{ff0000}]==================[{00ffff}Finance{ff0000}]==================[\n \n{ffff00}Peníze: {00ff00}%d {66ff99}$\n \n{00cc99}Kredit: {ff9933}%d\n \n{ffcc33}Peníze v Bance: {ff0000}%d{66ff99}$\n \n{ff0000}]====================[{00ffff}Učet{ff0000}]===================[\n \n{ffff00}Skin: {00ff00}%d", GetPlayerMoney(playerid),PlayerPoints[playerid][pKredit],PlayerBanks[playerid][pBank],PlayerInfo[playerid][pSkin]);
	format(infos,sizeof(infos),"\n \n{ffff00}Admin Level:{ff0000} %d \n \n{ff0000}]===================[{00ffff}Level{ff0000}]===================[\n\n{ffff00}WantedLevel:{66ff77} %d", PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pWandlvl]);
	format(infoss,sizeof(infoss),"\n{00ffff}Level: {ffff00}%d\t", Levels[playerid][pLevel]);
	new s[1600];
	strcat(s, info);
	strcat(s, infos);
	strcat(s, infoss);
	ShowPlayerDialogEx(playerid, Dialog_Info, DIALOG_STYLE_MSGBOX, "Info", s,"Pokračovat","Zavřít");

 	GetPlayerSkin(playerid);
	}
	if(Pohlavi[playerid][pSex] == 1)
	{
	SetPlayerSkin(playerid, 217);
	}
	if(Pohlavi[playerid][pSex] == 2)
	{
	SetPlayerSkin(playerid, 298);
	}

    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
/*=-=-=-=-=-=-=-=-=-=-=-=-=Povolani(jobs) setup=-=-=-=-=-=-=-=-=-=-=-*/

    if(PlayerInfo[playerid][nSpawn] == 1) /*<--- Zamestnani*/
	{
			if(povolani[playerid][pJobs] == 1)
		    {
			SetPlayerPos(playerid, -49.1112,-275.2011,5.4297);
			SetSpawnInfo(playerid,1,180,-49.8968,-269.3628,6.6332,358.2857,22, 100, 26, 400, 18, 100);
            SetPlayerColor(playerid, 0x336666aa);
				if(Pohlavi[playerid][pSex] == 1)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
				if(Pohlavi[playerid][pSex] == 2)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
                if(Premium[playerid][pVIP] == 1)
					{
					SetPlayerArmour(playerid, 50);
					}
				if(Premium[playerid][pVIP] == 2)
					{
					SetPlayerArmour(playerid, 200);
					}
			}
			if(povolani[playerid][pJobs] == 2)
		    {
			SetPlayerPos(playerid, 1126.2648,1460.0244,5.8203);
			SetSpawnInfo(playerid,1,171,1126.2648,1460.0244,5.8203,213.8855,22, 100, 26, 400, 18, 100);
            SetPlayerColor(playerid, 0x33cc33aa);
				if(Pohlavi[playerid][pSex] == 1)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
				if(Pohlavi[playerid][pSex] == 2)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
				if(Premium[playerid][pVIP] == 1)
					{
					SetPlayerArmour(playerid, 50);
					}
				if(Premium[playerid][pVIP] == 2)
					{
					SetPlayerArmour(playerid, 200);
					}
			}
			if(povolani[playerid][pJobs] == 3)
		    {
			SetPlayerPos(playerid, 2241.4446,1809.1289,10.8203);
            SetPlayerColor(playerid, 0xffff00ff);
            GivePlayerWeapon(playerid, 26, 100);
            GivePlayerWeapon(playerid, 24, 150);
            GivePlayerWeapon(playerid, 4, 1);
				if(Pohlavi[playerid][pSex] == 1)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
				if(Pohlavi[playerid][pSex] == 2)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
                if(Premium[playerid][pVIP] == 1)
					{
					SetPlayerArmour(playerid, 50);
					}
				if(Premium[playerid][pVIP] == 2)
					{
					SetPlayerArmour(playerid, 200);
					}
			}
			
			if(povolani[playerid][pJobs] == 4)
		    {
			SetPlayerPos(playerid, -2101.9856,-391.4282,35.5313);
            SetPlayerColor(playerid, 0x333300ff);
            GivePlayerWeapon(playerid, 26, 100);
            GivePlayerWeapon(playerid, 20, 150);
				if(Pohlavi[playerid][pSex] == 1)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
				if(Pohlavi[playerid][pSex] == 2)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
                if(Premium[playerid][pVIP] == 1)
					{
					SetPlayerArmour(playerid, 50);
					}
				if(Premium[playerid][pVIP] == 2)
					{
					SetPlayerArmour(playerid, 200);
					}
			}
			
			if(povolani[playerid][pJobs] == 5)
		    {
			SetPlayerPos(playerid, 2247.4634,2486.3481,10.8203);
            SetPlayerColor(playerid, 0x00CCFFff);
            GivePlayerWeapon(playerid, 3, 1);
            GivePlayerWeapon(playerid, 24, 150);
				if(Pohlavi[playerid][pSex] == 1)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
				if(Pohlavi[playerid][pSex] == 2)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
                if(Premium[playerid][pVIP] == 1)
					{
					SetPlayerArmour(playerid, 50);
					}
				if(Premium[playerid][pVIP] == 2)
					{
					SetPlayerArmour(playerid, 200);
					}
			}
			
						if(povolani[playerid][pJobs] == 6)
		    {
			SetPlayerPos(playerid, 211.1248,1818.7379,17.6406);
            SetPlayerColor(playerid, 0x3333CCff);
            GivePlayerWeapon(playerid, 3, 1);
            GivePlayerWeapon(playerid, 25, 150);
				if(Pohlavi[playerid][pSex] == 1)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
				if(Pohlavi[playerid][pSex] == 2)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
                if(Premium[playerid][pVIP] == 1)
					{
					SetPlayerArmour(playerid, 50);
					}
				if(Premium[playerid][pVIP] == 2)
					{
					SetPlayerArmour(playerid, 200);
					}
			}
			
			if(povolani[playerid][pJobs] == 8)
		    {
			SetPlayerPos(playerid, 673.4804,920.7375,-40.8959);
			SetSpawnInfo(playerid,1,180,673.4804,920.7375,-40.8959,163.1263,22, 100, 26, 400, 18, 100);
            SetPlayerColor(playerid, 0x333333aa);
				if(Pohlavi[playerid][pSex] == 1)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
				if(Pohlavi[playerid][pSex] == 2)
					{
					SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
					}
                if(Premium[playerid][pVIP] == 1)
					{
					SetPlayerArmour(playerid, 50);
					}
				if(Premium[playerid][pVIP] == 2)
					{
					SetPlayerArmour(playerid, 200);
					}
			}
    }
    if(PlayerInfo[playerid][nSpawn] == 2) /*<--- Firmy*/
    {
	}
    if(PlayerInfo[playerid][nSpawn] == 3) /*<--- Gangy*/
    {
	}
    if(PlayerInfo[playerid][nSpawn] == 4) /*<--- Domy*/
    {
	}
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
	if(Pohlavi[playerid][pSex] == 0)
	{
	new	nms[1000];
	format(nms,sizeof(nms),"učet: %s", PlayerName(playerid));
	ShowPlayerDialogEx(playerid, 956, DIALOG_STYLE_INPUT,nms,"Ahoj vyber své pohlaví\n umožni tito jinej skin v praci (kluk,holka=skin)\nNapiš:\tKluk / Holka","Enter","");
	}
	
	StopAudioStreamForPlayer(playerid);

	
	SetTimerEx("scoremoney", 1500, true, "i", playerid);
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[killerid][pKills]++;
    PlayerInfo[playerid][pDeaths]++;
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}


public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
	if(issuerid != INVALID_PLAYER_ID && weaponid == 3)
	{
		if(povolani[issuerid][pJobs] == 5)
		{
		    if(GetPlayerWantedLevel(playerid) == 0) return SCM(issuerid, red, "[!] Hráč nemá WantedLevel nelze ho zatknout");
			if(PlayerInfo[playerid][pWandlvl] <= 0) return SCM(issuerid, red, "[!] Hráč nemá WantedLevel nelze ho zatknout");
			new string[128];
		    format(string,sizeof(string), "Policajt %s tě zatknul", PlayerName(issuerid));
		    SCM(playerid, -1, string);
		    SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid, 264.1659,82.0855,1002.0391);
			TextDrawShowForPlayer(playerid, PozadiNazvu);
			TextDrawShowForPlayer(playerid, NazevVezen);
			TextDrawShowForPlayer(playerid, VezenDuvod);
			TextDrawShowForPlayer(playerid, Zatknul);
			TextDrawShowForPlayer(playerid, PlayerVezenDuvod);
			TextDrawShowForPlayer(playerid, PlayerZatknul);
			TextDrawSetString(PlayerVezenDuvod ,"Sorry ale mel si WantedLevel, proto si byl zatknut");
			TextDrawSetString(PlayerZatknul ,PlayerName(issuerid));
		    ResetPlayerWeapons(playerid);
			SetPlayerWantedLevel(playerid, 0);
        	PlayerInfo[playerid][pWandlvl] = 0;
        	PlayerInfo[issuerid][pVyplata] += 68000;
        	PlayerInfo[playerid][pCela] = 1;
			SetTimerEx("unjail", 20000, false, "i", playerid);
		}
	}
	
	if(issuerid != INVALID_PLAYER_ID && weaponid == 3)
	{
		if(povolani[issuerid][pJobs] == 6)
		{
		    if(PlayerInfo[playerid][pCela] == 1)
		    {
			new string[128];
		    format(string,sizeof(string), "Dozorce %s tě Vratil do Cel", PlayerName(issuerid));
		    SCM(playerid, -1, string);
		    SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid, 264.1659,82.0855,1002.0391);
        	PlayerInfo[issuerid][pVyplata] += 38000;
        	}
        	if(PlayerInfo[playerid][pCela] == 0)
        	{
        	SCM(issuerid, -1, "Bohužel neni vězen to asi nepujde.");
			}
		}
	}
	
	if(issuerid != INVALID_PLAYER_ID && weaponid == 14)
	{
		if(Pohlavi[playerid][pSex] == 1)
		{
		    new string[128];
		    format(string,sizeof(string), "{00ff00}Hrač %s tě žada o ruku", PlayerName(issuerid));
		    SCM(playerid, -1, string);
		}
	}
	if(issuerid != INVALID_PLAYER_ID && weaponid == WeaponID[GetPlayerWeapon(playerid)])
	{
        PlayerInfo[issuerid][pWandlvl] += 1;
  		SetPlayerWantedLevel(issuerid,PlayerInfo[issuerid][pWandlvl]);
	}
	return 1;
}

public OnPlayerText(playerid, text[])
{
    // format a message to contain the player's id in front of it
    if(text[0] == '!')
	{
	new nick[MAX_PLAYER_NAME], string[210+MAX_PLAYER_NAME]; // Definice jmena a stringu
	GetPlayerName(playerid, nick, sizeof(nick));
	format(string, sizeof(string), "[Team Chat]%s: %s", nick, text[1]); //Format zpravy
			for(new i = 0; i < MAX_PLAYERS; i++)
			 	{ // Definice lidi na serveru
					if(IsPlayerConnected(i))
					{ // Podminka aby nepadal server, ze odesle zpravu jen pripojenemu hraci
					if(povolani[i][pJobs] == povolani[playerid][pJobs]) // Skontroluje tym odesilatele
					SendClientMessage(i, GetPlayerColor(playerid), string); //Odesle zpravu ostatnim v tymu
					}
				}
	}else{
	if(Pohlavi[playerid][pSex] == 1)
    {
        new nick[MAX_PLAYER_NAME], string[210+MAX_PLAYER_NAME];
    GetPlayerName(playerid, nick, sizeof(nick));
    format(string, sizeof(string), "%s{ffffff}(%d): {ffffff} %s",nick,playerid, text);
	SendClientMessageToAll(GetPlayerColor(playerid), string);
	}
	return 0;
	}
	
	if(Pohlavi[playerid][pSex] == 2)
	{
	    new nick[MAX_PLAYER_NAME], string[210+MAX_PLAYER_NAME];
    GetPlayerName(playerid, nick, sizeof(nick));
    format(string, sizeof(string), "%s{ffffff}(%d): {ffffff} %s",nick,playerid, text);
	SendClientMessageToAll(-1, string);
	return 0;
 	}
 	
	return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
 if (strcmp("/Mechaniks", cmdtext, true, 10) == 0)
	{
		if(IsPlayerInAnyVehicle(playerid))
        {
		if(GetPlayerMoney(playerid) < 1425)
			return SendClientMessage(playerid, Barva-none, "Nemas dostatek penez k Oprave tohodle vozidla, Cena za opravu 1.425$");
			GivePlayerMoney(playerid, -1425);
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, 0x33AA33AA, "Tvoje auto bylo úspěšně opraveno!");
        }
        else SendClientMessage(playerid, 0xAA3333AA, "Nejsi v Autě!");
	return 1;
	}
 if (strcmp("/zrusmisi", cmdtext,true, 10) == 0)
    {
	DisablePlayerCheckpoint(playerid);
	DisablePlayerRaceCheckpoint(playerid);
		TextDrawHideForPlayer(playerid, PozadiInfo);
		TextDrawHideForPlayer(playerid, MenuInfo);
		TextDrawHideForPlayer(playerid, InfoClick);
		TextDrawHideForPlayer(playerid, UcetClick);
		TextDrawHideForPlayer(playerid, HelpClick);
		TextDrawHideForPlayer(playerid, KontaktClick);
		TextDrawHideForPlayer(playerid, WebClick);
		CancelSelectTextDraw(playerid);
	SendClientMessage(playerid, 0xff0000aa,"[ ! ]Mise zrušena!");
    return 1;
	}
 if(strcmp(cmdtext, "/port", true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, -1, "{ff0000}[ ! ]Tenhle port muže jen Admin");
    SetPlayerPos(playerid, 2217.6782,-1361.2350,23.9884);
    return 1;
	}
	return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(AutoSkola[playerid][pAsB] == 0)
    {
    RemovePlayerFromVehicle(playerid);
    new sschool[580];
	strcat(sschool,"{0000ff}|============================================|\n");
	strcat(sschool,"{0000ff}|{ff0000}                               Nemáš řidičák                                 {0000ff}|\n");
	strcat(sschool,"{0000ff}|============================================|\n");
	strcat(sschool,"{0000ff}|{ffff00}           nemužeš jezdit vozidlem jentak bez papírů       {0000ff}|\n");
	strcat(sschool,"{0000ff}|============================================|");
	ShowPlayerDialogEx(playerid,273,DIALOG_STYLE_MSGBOX,"Řidičák",sschool,"Ok","");
	}

	TextDrawShowForPlayer(playerid, TachometrBox[playerid]);
	TextDrawShowForPlayer(playerid, TachometrSpeed[playerid]);
	TextDrawShowForPlayer(playerid, TachometrKMh[playerid]);
	TextDrawShowForPlayer(playerid, TachometrStavBox[playerid]);
	TextDrawShowForPlayer(playerid, TachometrVozidloBox[playerid]);
	TextDrawShowForPlayer(playerid, TachometrVozOlej[playerid]);
	TextDrawShowForPlayer(playerid, TachometrVozStav[playerid]);
	TextDrawShowForPlayer(playerid, TachometrVozID[playerid]);
	TextDrawShowForPlayer(playerid, TachometrOlej[playerid]);
	TextDrawShowForPlayer(playerid, Tachometrdelicka[playerid]);
	TextDrawShowForPlayer(playerid, TachometrCarID[playerid]);
	
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	TextDrawHideForPlayer(playerid, TachometrBox[playerid]);
	TextDrawHideForPlayer(playerid, TachometrSpeed[playerid]);
	TextDrawHideForPlayer(playerid, TachometrKMh[playerid]);
	TextDrawHideForPlayer(playerid, TachometrStavBox[playerid]);
	TextDrawHideForPlayer(playerid, TachometrVozidloBox[playerid]);
	TextDrawHideForPlayer(playerid, TachometrVozOlej[playerid]);
	TextDrawHideForPlayer(playerid, TachometrVozStav[playerid]);
	TextDrawHideForPlayer(playerid, TachometrVozID[playerid]);
	TextDrawHideForPlayer(playerid, TachometrOlej[playerid]);
	TextDrawHideForPlayer(playerid, Tachometrdelicka[playerid]);
	TextDrawHideForPlayer(playerid, TachometrCarID[playerid]);
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate != PLAYER_STATE_DRIVER)

			    {

			    	for(new i;i<MAX_PLAYERS;i++)

			    	{

						if(IsPlayerConnected(i))

			            {

			                if(povolani[playerid][pJobs] == 3)

			                {

				            	if(playerid != i)

				                {
										new vehicleid = GetPlayerVehicleID(playerid);
				                    if(IsPlayerInVehicle(i,vehicleid)) ZaplatTaxu(i,playerid);

				            	}

			            	}

			         	}

			      	}

			   	}
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
 	if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 415)
 	{
        if(AutoSkola_B[playerid] == 1){
            AutoSkola_B[playerid] = 2;
            SetPlayerCheckpoint(playerid, -2336.3840,2383.3960,5.5293, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 2){
            AutoSkola_B[playerid] = 3;
            SetPlayerCheckpoint(playerid, -2395.6790,2345.3879,4.6081, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 3){
            AutoSkola_B[playerid] = 4;
            SetPlayerCheckpoint(playerid, -2463.8794,2345.7966,4.9409, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 4){
            AutoSkola_B[playerid] = 5;
            SetPlayerCheckpoint(playerid, -2544.2869,2466.3511,18.5192, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 5){
            AutoSkola_B[playerid] = 6;
            SetPlayerCheckpoint(playerid, -2725.2297,2359.8274,71.5854, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 6){
            AutoSkola_B[playerid] = 7;
            SetPlayerCheckpoint(playerid, -2719.5356,2507.8914,76.6164, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 7){
            AutoSkola_B[playerid] = 8;
            SetPlayerCheckpoint(playerid, -2266.8716,2637.9089,55.2017, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 8){
            AutoSkola_B[playerid] = 9;
            SetPlayerCheckpoint(playerid, -1935.3695,2441.4521,53.1308, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 9){
            AutoSkola_B[playerid] = 10;
            SetPlayerCheckpoint(playerid, -1768.3909,2177.5693,16.0261, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 10){
            AutoSkola_B[playerid] = 11;
            SetPlayerCheckpoint(playerid, -1669.2921,2011.9865,18.8198, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 11){
            AutoSkola_B[playerid] = 12;
            SetPlayerCheckpoint(playerid, -1704.6542,1825.4420,24.6769, 10);
			return 1;
		 }
         if(AutoSkola_B[playerid] == 12){
            AutoSkola_B[playerid] = 13;
            SetPlayerCheckpoint(playerid, -1790.1200,2003.3525,11.7226, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 13){
            AutoSkola_B[playerid] = 14;
            SetPlayerCheckpoint(playerid, -1793.7458,2148.3164,5.6682, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 14){
            AutoSkola_B[playerid] = 15;
            SetPlayerCheckpoint(playerid, -1689.7529,2338.4565,32.0100, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 15){
            AutoSkola_B[playerid] = 16;
            SetPlayerCheckpoint(playerid, -1754.6741,2298.7197,36.9571, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 16){
            AutoSkola_B[playerid] = 17;
            SetPlayerCheckpoint(playerid, -1683.2177,2399.9155,57.7318, 10);
			return 1;
		 }
         if(AutoSkola_B[playerid] == 17){
            AutoSkola_B[playerid] = 18;
            SetPlayerCheckpoint(playerid, -1743.9486,2459.2717,72.2744, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 18){
            AutoSkola_B[playerid] = 19;
            SetPlayerCheckpoint(playerid, -1653.4122,2466.7393,86.7547, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 19){
            AutoSkola_B[playerid] = 20;
            SetPlayerCheckpoint(playerid, -1650.0203,2576.4817,83.3219, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 20){
            AutoSkola_B[playerid] = 21;
            SetPlayerCheckpoint(playerid, -1764.4675,2705.3467,59.2409, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 21){
            AutoSkola_B[playerid] = 22;
            SetPlayerCheckpoint(playerid, -1822.4706,2691.4104,55.2687, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 22){
            AutoSkola_B[playerid] = 23;
            SetPlayerCheckpoint(playerid, -1943.2329,2613.6873,47.2829, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 23){
            AutoSkola_B[playerid] = 24;
            SetPlayerCheckpoint(playerid, -2187.7529,2679.8848,53.6841, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 24){
            AutoSkola_B[playerid] = 25;
            SetPlayerCheckpoint(playerid, -2713.0286,2644.7314,87.7678, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 25){
            AutoSkola_B[playerid] = 26;
            SetPlayerCheckpoint(playerid, -2772.7473,2357.1689,75.2863, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 26){
            AutoSkola_B[playerid] = 27;
            SetPlayerCheckpoint(playerid, -2746.2014,2347.5129,72.2499, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 27){
            AutoSkola_B[playerid] = 28;
            SetPlayerCheckpoint(playerid, -2684.1379,2427.0283,51.6786, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 28){
            AutoSkola_B[playerid] = 29;
            SetPlayerCheckpoint(playerid, -2562.6233,2472.5400,19.1284, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 29){
            AutoSkola_B[playerid] = 30;
            SetPlayerCheckpoint(playerid, -2546.1035,2395.8362,14.4775, 10);
			return 1;
         }
   		 if(AutoSkola_B[playerid] == 30){
            AutoSkola_B[playerid] = 31;
            SetPlayerCheckpoint(playerid, -2547.8435,2282.5784,4.6086, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 31){
            AutoSkola_B[playerid] = 32;
            SetPlayerCheckpoint(playerid, -2463.3118,2276.0825,4.5861, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 32){
            AutoSkola_B[playerid] = 33;
            SetPlayerCheckpoint(playerid, -2442.6223,2331.0459,4.6085, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 33){
            AutoSkola_B[playerid] = 34;
            SetPlayerCheckpoint(playerid, -2368.8315,2345.8020,4.6092, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 34){
            AutoSkola_B[playerid] = 35;
            SetPlayerCheckpoint(playerid, -2289.8689,2359.3962,5.0925, 10);
			return 1;
         }
         if(AutoSkola_B[playerid] == 35){
            AutoSkola_B[playerid] = 36;
            SetPlayerCheckpoint(playerid, -2246.1060,2371.0342,4.7690, 10);
			return 1;
		}
        if(AutoSkola_B[playerid] == 36){
            AutoSkola_B[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
            GameTextForPlayer(playerid,"~Y~ziskal si ridicak skupiny: ~G~B!",6000,5);
			AutoSkola[playerid][pAsB] = 1;
      		DestroyVehicle(GetPlayerVehicleID(playerid));
			Levels[playerid][pLevel] += 1;
         }
	 }
	    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
 		{
        if(AutoSkola_Ce[playerid] == 1){
            AutoSkola_Ce[playerid] = 2;
            SetPlayerCheckpoint(playerid, -2256.1208,2361.3933,6.0005, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 2){
            AutoSkola_Ce[playerid] = 3;
            SetPlayerCheckpoint(playerid, -2420.9585,2436.3992,13.7619, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 3){
            AutoSkola_Ce[playerid] = 4;
            SetPlayerCheckpoint(playerid, -2552.0935,2405.2522,15.7323, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 4){
            AutoSkola_Ce[playerid] = 5;
            SetPlayerCheckpoint(playerid, -2600.4441,2435.0513,15.7377, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 5){
            AutoSkola_Ce[playerid] = 6;
            SetPlayerCheckpoint(playerid, -2616.8140,2361.9382,9.7569, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 6){
            AutoSkola_Ce[playerid] = 7;
            SetPlayerCheckpoint(playerid, -2587.1372,2328.9470,7.0915, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 7){
            AutoSkola_Ce[playerid] = 8;
            SetPlayerCheckpoint(playerid, -2464.2063,2275.0769,5.8319, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 8){
            AutoSkola_Ce[playerid] = 9;
            SetPlayerCheckpoint(playerid, -2464.1143,2234.6213,5.8420, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 9){
            AutoSkola_Ce[playerid] = 10;
            SetPlayerCheckpoint(playerid, -2493.7681,2406.6506,17.2427, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 10){
            AutoSkola_Ce[playerid] = 11;
            SetPlayerCheckpoint(playerid, -2638.8682,2508.2295,30.2825, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 11){
            AutoSkola_Ce[playerid] = 12;
            SetPlayerCheckpoint(playerid, -2739.5317,2393.8882,74.0914, 10);
			return 1;
		 }
         if(AutoSkola_Ce[playerid] == 12){
            AutoSkola_Ce[playerid] = 13;
            SetPlayerCheckpoint(playerid, -2449.2043,2624.9402,55.0680, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 13){
            AutoSkola_Ce[playerid] = 14;
            SetPlayerCheckpoint(playerid, -1963.6832,2513.1033,56.6082, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 14){
            AutoSkola_Ce[playerid] = 15;
            SetPlayerCheckpoint(playerid, -1670.1248,2003.4526,20.3164, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 15){
            AutoSkola_Ce[playerid] = 16;
            SetPlayerCheckpoint(playerid, -1725.6362,1824.0990,25.1493, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 16){
            AutoSkola_Ce[playerid] = 17;
            SetPlayerCheckpoint(playerid, -1779.5569,2160.4448,5.4986, 10);
			return 1;
		 }
         if(AutoSkola_Ce[playerid] == 17){
            AutoSkola_Ce[playerid] = 18;
            SetPlayerCheckpoint(playerid, -1669.3936,2313.1262,31.8441, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 18){
            AutoSkola_Ce[playerid] = 19;
            SetPlayerCheckpoint(playerid, -1689.0518,2338.0598,33.2500, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 19){
            AutoSkola_Ce[playerid] = 20;
            SetPlayerCheckpoint(playerid, -1736.3451,2290.1980,34.9415, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 20){
            AutoSkola_Ce[playerid] = 21;
            SetPlayerCheckpoint(playerid, -1741.9832,2320.3711,41.7560, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 21){
            AutoSkola_Ce[playerid] = 22;
            SetPlayerCheckpoint(playerid, -1740.7393,2444.2170,71.6590, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 22){
            AutoSkola_Ce[playerid] = 23;
            SetPlayerCheckpoint(playerid, -1646.8442,2483.4856,87.6998, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 23){
            AutoSkola_Ce[playerid] = 24;
            SetPlayerCheckpoint(playerid, -1669.8230,2634.7410,74.7772, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 24){
            AutoSkola_Ce[playerid] = 25;
            SetPlayerCheckpoint(playerid, -1762.3589,2704.1328,60.6109, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 25){
            AutoSkola_Ce[playerid] = 26;
            SetPlayerCheckpoint(playerid, -1824.0016,2689.6250,56.5760, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 26){
            AutoSkola_Ce[playerid] = 27;
            SetPlayerCheckpoint(playerid, -2032.6241,2635.2781,52.3051, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 27){
            AutoSkola_Ce[playerid] = 28;
            SetPlayerCheckpoint(playerid, -2441.0835,2672.2935,62.7656, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 28){
            AutoSkola_Ce[playerid] = 29;
            SetPlayerCheckpoint(playerid, -2768.0872,2504.7617,96.9636, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 29){
            AutoSkola_Ce[playerid] = 30;
            SetPlayerCheckpoint(playerid, -2748.8640,2348.6973,73.8226, 10);
			return 1;
         }
   		 if(AutoSkola_Ce[playerid] == 30){
            AutoSkola_Ce[playerid] = 31;
            SetPlayerCheckpoint(playerid, -2316.2119,2379.1597,6.6565, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 31){
            AutoSkola_Ce[playerid] = 32;
            SetPlayerCheckpoint(playerid, -2316.2119,2379.1597,6.6565, 10);
			return 1;
         }
         if(AutoSkola_Ce[playerid] == 32){
            AutoSkola_Ce[playerid] = 0;
            SetPlayerCheckpoint(playerid, -2263.0344,2305.5610,5.8342, 10);
            DisablePlayerCheckpoint(playerid);
            GameTextForPlayer(playerid,"~Y~ziskal si ridicak skupiny: ~G~C+E!",6000,5);
			AutoSkola[playerid][pAsB] = 1;
      		DestroyVehicle(GetPlayerVehicleID(playerid));
			Levels[playerid][pLevel] += 1;
			return 1;
         }
	}
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
 switch(mise_delnik_1[playerid])
	{
	case 1:
		{
		mise_delnik_1[playerid] = 2;
		SetPlayerRaceCheckpoint(playerid,1,2642.4939,856.4453,6.0938, 0.0000,0.0000,0.0000, 15);
		}
	case 2:
		{
		mise_delnik_1[playerid] = 0;
 		DisablePlayerRaceCheckpoint(playerid);
		new odmena[25], money;
		money = GivePlayerMoney(playerid,clamp(90,80000,110000));
		format(odmena,sizeof(odmena), "~r~Odmena:~n~ ~w~%d", money);
  		GameTextForPlayer(playerid,odmena,6000,5);
  		/*Levels[playerid][pLevel] += 1;*/
		}
	}
    switch(mise_delnik_2[playerid])
	{
	case 1:
		{
		mise_delnik_2[playerid] = 2;
		SetPlayerRaceCheckpoint(playerid,1,-1906.3279,-1717.1256,22.1896, 0.0000,0.0000,0.0000, 15);
		}
	case 2:
		{
		mise_delnik_2[playerid] = 0;
 		DisablePlayerRaceCheckpoint(playerid);
		new odmena[25], money;
		money = GivePlayerMoney(playerid,clamp(80,80000,120000));
		format(odmena,sizeof(odmena), "~r~Odmena:~n~ ~w~ %s", money);
  		GameTextForPlayer(playerid,odmena,6000,5);
  		/*Levels[playerid][pLevel] += 1;*/
		}
	}
	switch(mise_delnik_3[playerid])
	{
	case 1:
		{
		mise_delnik_3[playerid] = 2;
		SetPlayerRaceCheckpoint(playerid,1,-520.0107,2592.3752,53.8516, 0.0000,0.0000,0.0000, 15);
		}
	case 2:
		{
		mise_delnik_3[playerid] = 0;
 		DisablePlayerRaceCheckpoint(playerid);
		new odmena[25], money;
		money = GivePlayerMoney(playerid,clamp(70,80000,150000));
		format(odmena,sizeof(odmena), "~r~Odmena:~n~ ~w~ %s", money);
  		GameTextForPlayer(playerid,odmena,6000,5);
  		/*Levels[playerid][pLevel] += 1;*/
		}
	}
	switch(mise_delnik_4[playerid])
	{
	case 1:
		{
		mise_delnik_4[playerid] = 2;
		SetPlayerRaceCheckpoint(playerid,1,-221.5137,2734.1328,63.1241, 0.0000,0.0000,0.0000, 15);
		}
	case 2:
		{
		mise_delnik_4[playerid] = 0;
 		DisablePlayerRaceCheckpoint(playerid);
		new odmena[25], money;
		money = GivePlayerMoney(playerid,clamp(55,80000,155000));
		format(odmena,sizeof(odmena), "~r~Odmena:~n~ ~w~ %s", money);
  		GameTextForPlayer(playerid,odmena,6000,5);
  		/*Levels[playerid][pLevel] += 1;*/
		}
	}
	switch(mise_delnik_5[playerid])
	{
	case 1:
		{
		mise_delnik_5[playerid] = 2;
		SetPlayerRaceCheckpoint(playerid,1,380.9294,2538.5537,16.9755, 0.0000,0.0000,0.0000, 15);
		}
	case 2:
		{
		mise_delnik_5[playerid] = 0;
 		DisablePlayerRaceCheckpoint(playerid);
		new odmena[25], money;
		money = GivePlayerMoney(playerid,clamp(40,80000,159500));
		format(odmena,sizeof(odmena), "~r~Odmena:~n~ ~w~ %s", money);
  		GameTextForPlayer(playerid,odmena,6000,5);
  		/*Levels[playerid][pLevel] += 1;*/
		}
	}
	switch(mise_delnik_6[playerid])
	{
	case 1:
		{
		mise_delnik_6[playerid] = 2;
		SetPlayerRaceCheckpoint(playerid,1,2434.7549,1911.3861,6.0519, 0.0000,0.0000,0.0000, 15);
		}
	case 2:
		{
		mise_delnik_6[playerid] = 0;
 		DisablePlayerRaceCheckpoint(playerid);
		new odmena[25], money;
		money = GivePlayerMoney(playerid,clamp(38,80000,160000));
		format(odmena,sizeof(odmena), "~r~Odmena:~n~ ~w~ %s", money);
  		GameTextForPlayer(playerid,odmena,6000,5);
  		/*Levels[playerid][pLevel] += 1;*/
		}
	}
	switch(mise_delnik_7[playerid])
	{
	case 1:
		{
		mise_delnik_7[playerid] = 2;
		SetPlayerRaceCheckpoint(playerid,1,-221.5137,2734.1328,63.1241, 0.0000,0.0000,0.0000, 15);
		}
	case 2:
		{
		mise_delnik_7[playerid] = 0;
 		DisablePlayerRaceCheckpoint(playerid);
		new odmena[25], money;
		money = GivePlayerMoney(playerid,clamp(34,80000,165000));
		format(odmena,sizeof(odmena), "~r~Odmena:~n~ ~w~ %s", money);
  		GameTextForPlayer(playerid,odmena,6000,5);
  		/*Levels[playerid][pLevel] += 1;*/
		}
	}
	switch(mise_delnik_8[playerid])
	{
	case 1:
		{
		mise_delnik_8[playerid] = 2;
		SetPlayerRaceCheckpoint(playerid,1,-221.5137,2734.1328,63.1241, 0.0000,0.0000,0.0000, 15);
		}
	case 2:
		{
		mise_delnik_8[playerid] = 0;
 		DisablePlayerRaceCheckpoint(playerid);
		new odmena[25], money;
		money = GivePlayerMoney(playerid,clamp(35,80000,200000));
		format(odmena,sizeof(odmena), "~r~Odmena:~n~ ~w~ %s", money);
  		GameTextForPlayer(playerid,odmena,6000,5);
  		/*Levels[playerid][pLevel] += 1;*/
		}
	}
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{

	if(pickupid == aaskola)
	{
	new s[3000];
	strcat(s,"              {00ffff}Ceník           \n");
	strcat(s,"{ff0000}==============================\n");
	strcat(s,"\t{66ffff}A\t  {ffff00}6 000{00ff00}$\n");
	strcat(s,"\t{66ffff}B\t  {ffff00}15 000{00ff00}$\n");
	strcat(s,"\t{66ffff}C+E  {ffff00}35 000{00ff00}$\n");
	strcat(s,"\t{66ffff}D\t  {ffff00}50 000{00ff00}$\n");
	ShowPlayerDialogEx(playerid, 3333, DIALOG_STYLE_INPUT, "AutoŠkola",s,"Confirm","Cancel");
	}
	if(pickupid == banks1)
	if(IsPlayerInRangeOfPoint(playerid,2,1958.2897,953.1365,10.8203))
	{
	ShowPlayerDialogEx(playerid,999,DIALOG_STYLE_LIST,"Banka","Vybrať\nVložiť\nVybrat vše\nVložit vše\nPřevod peněz\nStav","Vybrať","Zrušiť");
	}
	
	if(pickupid == truckerjobsls)
		{
 		if(povolani[playerid][pJobs] == 1)
 			{
    			resettextdrawa = SetTimerEx("jobsjoined", 10000 + 1000, true, "i", playerid);
    			KillTimer(resettextdrawa);
				 }
			 	else
			 	{
				resettextdrawb = SetTimerEx("jobsjoin", 10000 + 1000, true, "i", playerid);
				KillTimer(resettextdrawb);
			}
		}
 	if(pickupid == truckerjobssf)
		{
 		if(povolani[playerid][pJobs] == 1)
 			{
    			resettextdrawa = SetTimerEx("jobsjoined", 10000 + 1000, true, "i", playerid);
    			KillTimer(resettextdrawa);
				 }
			 	else
			 	{
				resettextdrawb = SetTimerEx("jobsjoin", 10000 + 1000, true, "i", playerid);
				KillTimer(resettextdrawb);
			}
		}
	
	if(pickupid == busjobs)
		{
		if(povolani[playerid][pJobs] == 2)
			{
				SetTimerEx("jobsjoined", 500, true, "i", playerid);
				KillTimer(resettextdrawa);
				 }
			 	else
			 	{
				SetTimerEx("jobsjoin", 500, true, "i", playerid);
				KillTimer(resettextdrawb);
   			}
		}
		if(pickupid == policiejobs)
		{
		
		if(povolani[playerid][pJobs] == 10)
				{
					SetTimerEx("jobsjoined", 500, true, "i", playerid);
					KillTimer(resettextdrawa);
					 }
				 	else
				 	{
					SetTimerEx("jobsjoin", 500, true, "i", playerid);
					KillTimer(resettextdrawb);
	   			}
			}

	if(pickupid == taxijobs)
			{
			if(povolani[playerid][pJobs] == 4)
				{

					SetTimerEx("jobsjoined", 500, true, "i", playerid);
					KillTimer(resettextdrawa);
					 }
				 	else
				 	{
					SetTimerEx("jobsjoin", 500, true, "i", playerid);
					KillTimer(resettextdrawb);
	   			}
			}
	if(pickupid == taxikar)
			{
			if(povolani[playerid][pJobs] == 3)
				{

					SetTimerEx("jobsjoined", 500, true, "i", playerid);
					SCM(playerid,-1,"Už si zaměstnanej");
					KillTimer(resettextdrawa);
					 }
				 	else
				 	{
					SetTimerEx("jobsjoin", 500, true, "i", playerid);
					SCM(playerid,-1,"Zaměstnej se pomoci {ff0000}L.Alt");
					KillTimer(resettextdrawb);
	   			}
			}

	if(pickupid == letecjobs)
			{
			if(povolani[playerid][pJobs] == 5)
				{
					SetTimerEx("jobsjoined", 500, true, "i", playerid);
					KillTimer(resettextdrawa);
					 }
				 	else
				 	{
					SetTimerEx("jobsjoin", 500, true, "i", playerid);
					KillTimer(resettextdrawb);
	   			}
			}

	if(pickupid == hasicjobs)
			{
			if(povolani[playerid][pJobs] == 6)
				{
					SetTimerEx("jobsjoined", 500, true, "i", playerid);
					KillTimer(resettextdrawa);
					 }
				 	else
				 	{
					SetTimerEx("jobsjoin", 500, true, "i", playerid);
					KillTimer(resettextdrawb);
	   			}
			}

	if(pickupid == pravnik)
			{
			if(povolani[playerid][pJobs] == 7)
				{
					SetTimerEx("jobsjoined", 500, true, "i", playerid);
					KillTimer(resettextdrawa);
					 }
				 	else
				 	{
					SetTimerEx("jobsjoin", 500, true, "i", playerid);
					KillTimer(resettextdrawb);
	   			}
			}

	if(pickupid == zdravotnikjobs)
			{
			if(povolani[playerid][pJobs] == 10)
				{
					SetTimerEx("jobsjoined", 500, true, "i", playerid);
					KillTimer(resettextdrawa);
					 }
				 	else
				 	{
					SetTimerEx("jobsjoin", 500, true, "i", playerid);
					KillTimer(resettextdrawb);
	   			}
			}
		if(pickupid == pizzajobs)
			{
			if(povolani[playerid][pJobs] == 9)
				{
					SetTimerEx("jobsjoined", 500, true, "i", playerid);
					KillTimer(resettextdrawa);
					 }
				 	else
				 	{
					SetTimerEx("jobsjoin", 500, true, "i", playerid);
					KillTimer(resettextdrawb);
	   			}
			}


		
		if(pickupid == Delnik_zacatecnik)
		{
			SCM(playerid,-1 ,"{ffff00}Zdar dělníku dej {00ffff}Y {ffff00}pro ukazani Zakazek co mužeš dělat :)");
		}
		
		if(pickupid == TGKorleone)
		{
		 SCM(playerid, -1, "Vítej V tuning Garazi mafiana Korleona");
		}
		
		if(pickupid == Delnikc)
		{
		    if(povolani[playerid][pJobs] == 8)
		    {
		    SCM(playerid,-1 ,"Bohužel už jsi dělnik :) nelze se znovu zamestnat");
			}else{
			SCM(playerid,-1 ,"{00ff00}Zdar dej {00ffff}L.ALT {00ff00}pro Zamestnani");
			}
		}
		
		if(pickupid == vezeni)
		{
		    SetPlayerInterior(playerid, 6);
		    SetPlayerPos(playerid, 263.3697,90.6460,1001.0391);
		}
		
		if(pickupid == zvezeni)
		{
		    SetPlayerInterior(playerid, 0);
		    SetPlayerPos(playerid, 210.6013,1834.7349,17.6406);
		}
		
		
		if(pickupid == sfshopcars || lvshopcars || lsshopcars)
		{
		    new carshopaaa[1200];
			strcat(carshopaaa,"Vozidlo\tCastka\n");
			strcat(carshopaaa,"Infernus\t InfernusShop $\n");
			strcat(carshopaaa,"Uranus\t UranusShop $\n");
			strcat(carshopaaa,"Savanna\t SavanaShop $\n");
			strcat(carshopaaa,"Bullet\t BulletShop $\n");
			strcat(carshopaaa,"Blista\t BlistaShop $\n");
			strcat(carshopaaa,"Tampa\t TampaShop $\n");
		    ShowPlayerDialogEx(playerid, 4287, 5,"Aaa Auto", carshopaaa,"Koupit","Odejit");
		}
	return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
	return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
	return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(Premium[playerid][pVIP] == 2)
	{
	    if( newkeys & obratit )
		{
		    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) //Zistí či šoférujeme
		    {
		        new vozidlo = GetPlayerVehicleID( playerid ), Float:angle; //Zistí id vozidla.

		        GetVehicleZAngle( vozidlo, angle ); // Zistí pozíciu "Z"
		        SetVehicleZAngle( vozidlo, angle ); // po tomto sa vozidlo otočí
		    }
		}
	}
	
	if(povolani[playerid][pJobs] == 8)
	{
	    if ( newkeys & stlacy)
	    {
	       	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        	{
              	if(IsPlayerInRangeOfPoint(playerid,15, 669.1949,900.0837,-40.6707))
				{
					if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 406 || GetVehicleModel(GetPlayerVehicleID(playerid)) ==  455 || GetVehicleModel(GetPlayerVehicleID(playerid)) ==  486)
					{
					new mise[500];
					strcat(mise, "Mise\tOD\tDO\n");
					strcat(mise, "Ucen\tHunter Qverry\tLV\n");
					strcat(mise, "Ucen\tHunter Qverry\tWhestone\n");
					strcat(mise, "Ucen\tHunter Qverry\tTerra Robada\n");
					strcat(mise, "Ucen\tHunter Qverry\tLas Payasades\n");
					strcat(mise, "Ucen\tHunter Qverry\tVerdant Meadows\n");
					strcat(mise, "Ucen\tHunter Qverry\tThe Clown's Pocket\n");
					strcat(mise, "Ucen\tHunter Qverry\tLV\n");
					strcat(mise, "Ucen\tLV\tLV\n");
					ShowPlayerDialogEx(playerid, 2583, 5, "Dělník", mise, "Prijmam", "Odmitam");
					}
				}
			}
		}
	}
	
	if (newkeys & KEY_CROUCH)
		{
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        	{
        	if(IsPlayerInRangeOfPoint(playerid,15, 1582.7944,-1414.2760,13.7182))
				{
				new mafian[250];
		    SCM(playerid,-1,"Prave si vstoupil do tuningu Mafiana: Korleona ");
			strcat(mafian, "Nazev \t Castka \t Dodavatel\n");
			strcat(mafian, "Nitrox2 \t 4000$ \t Dolkas\n");
			strcat(mafian, "Nitrox5 \t 8500$ \t Dolkas\n");
			strcat(mafian, "Cutter \t 1000$ \t Ikea\n");
			strcat(mafian, "Dollars \t 2000$\t EuroTrans CZ\n");
			strcat(mafian, "Hydraulika\t 10000$\t SafeTruckers\n");
			strcat(mafian, "Opravit \t 20000$ \t Korleon\n");
		    ShowPlayerDialog(playerid,8534,5,"Vítej u Karleona",mafian,"Objednat","Uzavrit");
		        }
			}
  		}
	
/*	if (HOLDING( newkeys , KEY_JUMP))
	{
	    if(IsPlayerInRangeOfPoint(playerid, 15, -2.4159,-269.0276,5.4297 ))
	        {
     	if(doors == 0)
			{
        new string[50];
        new movetime = MoveObject(garaztwo, -7.2000000,-268.6000100,8.3000000, 4.0);
        format(string, sizeof(string), "Otevirani potrva %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        doors = 1;
    		}else{
		if(doors == 1)
		    {
    	new string[50];
        new movetime = MoveObject(garaztwo, 3.2000000,-268.6000100,8.3000000, 3.0);
        format(string, sizeof(string), "Zavíraní potrva %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        doors = 0;
			}
		}
	}*/
	
    if ( HOLDING( newkeys , KEY_WALK ))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1, -49.8968,-269.3628,6.6332 ))
		{
			if(povolani[playerid][pJobs] == 1)
			{
			    new vyplata[95];
				format(vyplata, sizeof(vyplata), "{ffffff}Na tvé vyplatní pásce je: \n {00ff00}%d{ff0000}$\n {ffffff}přeješ si jí vybrat", PlayerInfo[playerid][pVyplata]);
				ShowPlayerDialogEx(playerid, 1350, DIALOG_STYLE_MSGBOX, "Vyplatní páska", vyplata, "Ano","Ne");				}
				else
				{
    			ShowPlayerDialogEx(playerid, 100 , DIALOG_STYLE_MSGBOX, "trucker povolani","Chceš bejt Kamionak?","Ano","Ne");
			}
   		}
	}
	    if ( HOLDING( newkeys , KEY_WALK ))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1, -1713.7528,-62.5537,3.5547 ))
		{
			if(povolani[playerid][pJobs] == 1)
			{
			    new vyplata[95];
				format(vyplata, sizeof(vyplata), "{ffffff}Na tvé vyplatní pásce je: \n {00ff00}%d{ff0000}$\n {ffffff}přeješ si jí vybrat", PlayerInfo[playerid][pVyplata]);
				ShowPlayerDialogEx(playerid, 1350, DIALOG_STYLE_MSGBOX, "Vyplatní páska", vyplata, "Ano","Ne");				}
				else
				{
    			ShowPlayerDialogEx(playerid, 100 , DIALOG_STYLE_MSGBOX, "trucker povolani","Chceš bejt Kamionak?","Ano","Ne");
			}
   		}
	}
	if ( HOLDING( newkeys , KEY_WALK ))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1, 1123.4253,1465.5111,5.8203 ) || IsPlayerInRangeOfPoint(playerid, 1, -1737.9996,31.9208,3.5547 ))
		{
			if(povolani[playerid][pJobs] == 2)
			{
			    new vyplata[95];
				format(vyplata, sizeof(vyplata), "{ffffff}Na tvé vyplatní pásce je: \n {00ff00}%d{ff0000}$\n {ffffff}přeješ si jí vybrat", PlayerInfo[playerid][pVyplata]);
				ShowPlayerDialogEx(playerid, 1350, DIALOG_STYLE_MSGBOX, "Vyplatní páska", vyplata, "Ano","Ne");				}
				else
				{
    			ShowPlayerDialogEx(playerid, 101 , DIALOG_STYLE_MSGBOX, "Bus povolani","Chceš bejt Autobusak/čka?","Ano","Ne");
			}
		}
	}
	
	if ( HOLDING( newkeys , KEY_WALK ))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1, 2241.4446,1809.1289,10.8203 ))
		{
			if(povolani[playerid][pJobs] == 3)
			{
			    new vyplata[95];
				format(vyplata, sizeof(vyplata), "{ffffff}Na tvé vyplatní pásce je: \n {00ff00}%d{ff0000}$\n {ffffff}přeješ si jí vybrat", PlayerInfo[playerid][pVyplata]);
				ShowPlayerDialogEx(playerid, 1350, DIALOG_STYLE_MSGBOX, "Vyplatní páska", vyplata, "Ano","Ne");
				}
				else
				{
    			ShowPlayerDialogEx(playerid, 142 , DIALOG_STYLE_MSGBOX, "Taxikařske povolani","Chceš bejt Taxikař/kou?","Ano","Ne");
			}
		}
	}
	
	if ( HOLDING( newkeys , KEY_WALK ))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1, -2101.5940,-395.3710,35.5313 ))
		{
			if(povolani[playerid][pJobs] == 4)
			{
			    new vyplata[95];
				format(vyplata, sizeof(vyplata), "{ffffff}Na tvé vyplatní pásce je: \n {00ff00}%d{ff0000}$\n {ffffff}přeješ si jí vybrat", PlayerInfo[playerid][pVyplata]);
				ShowPlayerDialogEx(playerid, 1350, DIALOG_STYLE_MSGBOX, "Vyplatní páska", vyplata, "Ano","Ne");
				}
				else
				{
    			ShowPlayerDialogEx(playerid, 144 , DIALOG_STYLE_MSGBOX, "Mechanik povolani","Chceš bejt Mechanikem/čkou?","Ano","Ne");
			}
		}
	}
	
	if ( HOLDING( newkeys , KEY_WALK ))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1, 2251.9001,2489.7878,10.9908 ))
		{
		    if(PlayerInfo[playerid][pWandlvl] > 0) return SCM(playerid, -1, "Nelze se zaměstnat pokud máš WantedLevel!");
			if(povolani[playerid][pJobs] == 5)
			{
			    new vyplata[95];
				format(vyplata, sizeof(vyplata), "{ffffff}Na tvé vyplatní pásce je: \n {00ff00}%d{ff0000}$\n {ffffff}přeješ si jí vybrat", PlayerInfo[playerid][pVyplata]);
				ShowPlayerDialogEx(playerid, 1350, DIALOG_STYLE_MSGBOX, "Vyplatní páska", vyplata, "Ano","Ne");				}
				else
				{
    			ShowPlayerDialogEx(playerid, 145 , DIALOG_STYLE_MSGBOX, "Policejní povolani","Chceš bejt Policajtem/kou?","Ano","Ne");
			}
		}
	}
	
	if ( HOLDING( newkeys , KEY_WALK ))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1, 211.4185,1810.4886,21.8672 ))
		{
     		if(PlayerInfo[playerid][pWandlvl] > 0) return SCM(playerid, -1, "Nelze se zaměstnat pokud máš WantedLevel!");
			if(povolani[playerid][pJobs] == 6)
			{
			    new vyplata[95];
				format(vyplata, sizeof(vyplata), "{ffffff}Na tvé vyplatní pásce je: \n {00ff00}%d{ff0000}$\n {ffffff}přeješ si jí vybrat", PlayerInfo[playerid][pVyplata]);
				ShowPlayerDialogEx(playerid, 1350, DIALOG_STYLE_MSGBOX, "Vyplatní páska", vyplata, "Ano","Ne");				}
				else
				{
    			ShowPlayerDialogEx(playerid, 146 , DIALOG_STYLE_MSGBOX, "Dozorce povolani","Chceš bejt Dozorce/kou?","Ano","Ne");
			}
		}
	}
	
	if ( HOLDING( newkeys , KEY_WALK ))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1, 677.5715,924.5881,-40.5159 ))
		{
  			if(povolani[playerid][pJobs] == 8)
			{
			    new vyplata[95];
				format(vyplata, sizeof(vyplata), "{ffffff}Na tvé vyplatní pásce je: \n {00ff00}%d{ff0000}$\n {ffffff}přeješ si jí vybrat", PlayerInfo[playerid][pVyplata]);
				ShowPlayerDialogEx(playerid, 1350, DIALOG_STYLE_MSGBOX, "Vyplatní páska", vyplata, "Ano","Ne");				}
				else
				{
				ShowPlayerDialogEx(playerid, 364 , DIALOG_STYLE_MSGBOX, "Dělník povolani","Chceš bejt Dělník/čka?","Ano","Ne");
			}
		}
	}
	
	if(Premium[playerid][pVIP] == 2)
	{
		if ( PRESSING( newkeys , KEY_FIRE ))
		{
		    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
			if (GetVehicleModel( GetPlayerVehicleID(playerid) ))
			{
			    AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
			}
		}
	}
	return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}

public OnPlayerUpdate(playerid)
{
	return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

	ShowedPlayerDialog[playerid] = false;
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return SendClientMessage(playerid, 0xff0000,"[ ! ]Tve data byla uložena!");
            if(response)
            {
                SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
		        new s[1200];
		        strcat(s,""r"{ccff00}=====================================[{ff0000}Pravidla{ccff00}]=====================================\n");
		        strcat(s,""r" \t{ff0000}1.{ffffff}Neurážej adminy{ff0000}!\n");
		        strcat(s,""r" \t{ff0000}2.{ffffff}nespamuj{ff0000}!\n");
		        strcat(s,""r" \t{ff0000}3.{ffffff}chyby pište neprodleně na e-mail (/kontakt){ff0000}!\n");
		        strcat(s,""r" \t{ff0000}4.{ffffff}necheatuj! pezprodleně permanet IP BAN{ff0000}!\n");
		        strcat(s,""r" \t{ff0000}5.{ffffff}obhajování pište na e-mail (př.ja sem speed hack neměl){ff0000}!\n");
		        strcat(s,""r" \t{ff0000}6.{ffffff}je zakázáno schazovat server (úmyslně,neúmyslně){ff0000}!\n");
		        strcat(s,""r" \t{ff0000}7.{ffffff}PŘÍSNÝ ZÁKAZ REKLAMI{ff0000}!!!\n");
		        strcat(s,""r" \t{ff0000}8.{ffffff}Hráč je povinen se držet zásad slušného chování, dobrých mravů a respektuje veškerá ustanovení administratorů\n.");
				strcat(s,""r" \n\t{ff0000}!!{ffffff}TATO PRAVIDLA PLATÍ I PRO ADMINISTRÁTORY{ff0000}!!\n");
				strcat(s,""r"{ccff00}=====================================[{ff0000}Informace{ccff00}]=====================================\n");
				strcat(s,""r"\t \t \t{ff0000}!!!{ffffff} Neznalost pravidel neomlouvá {ff0000}!!!\n");
		        strcat(s,""r" {99ff00}Zadal jste špatné heslo!\n");
		        strcat(s,""r" {99ff00}Zkuste to znovu:");
				povolani[playerid][pJobs] = 0;
				if(!strlen(inputtext)) return ShowPlayerDialogEx(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "nwm",s,"Register","Quit");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_WriteInt(File,"Wandlvl",0);
                INI_WriteInt(File,"Skin",0);
                INI_WriteInt(File,"Kredit",0);
                INI_WriteInt(File,"Bank",0);
                INI_WriteInt(File,"Jobs",0);
                INI_WriteInt(File,"RidicakB",0);
                INI_WriteInt(File,"RidicakC+E",0);
                INI_WriteInt(File,"Pohlavi",0);
                INI_WriteInt(File,"Type_Premium",0);
                INI_WriteInt(File,"Level",0);
                INI_WriteInt(File,"Ban",0);
                INI_WriteInt(File,"BanEx",0);
                INI_WriteInt(File,"Kick",0);
                INI_WriteInt(File,"Funkce",0);
                INI_WriteInt(File,"JoinView",0);
    			INI_WriteInt(File,"CloseView",0);
    			INI_WriteInt(File,"Spawn",1);
			    INI_WriteInt(File,"Cela",0);
    			INI_WriteString(File,"CelaDuvod"," ");
    			INI_WriteString(File,"CelaZatknul"," ");
				INI_Close(File);

                
                new ss[1200];
		        strcat(ss,""r"{ccff00}=====================================[{ff0000}Pravidla{ccff00}]=====================================\n");
		        strcat(ss,""r" \t{ff0000}1.{ffffff}Neurážej adminy{ff0000}!\n");
		        strcat(ss,""r" \t{ff0000}2.{ffffff}nespamuj{ff0000}!\n");
		        strcat(ss,""r" \t{ff0000}3.{ffffff}chyby pište neprodleně na e-mail (/kontakt){ff0000}!\n");
		        strcat(ss,""r" \t{ff0000}4.{ffffff}necheatuj! pezprodleně permanet IP BAN{ff0000}!\n");
		        strcat(ss,""r" \t{ff0000}5.{ffffff}obhajování pište na e-mail (př.ja sem speed hack neměl){ff0000}!\n");
		        strcat(ss,""r" \t{ff0000}6.{ffffff}je zakázáno schazovat server (úmyslně,neúmyslně){ff0000}!\n");
		        strcat(ss,""r" \t{ff0000}7.{ffffff}PŘÍSNÝ ZÁKAZ REKLAMI{ff0000}!!!\n");
		        strcat(ss,""r" \t{ff0000}8.{ffffff}Hráč je povinen se držet zásad slušného chování, dobrých mravů a respektuje veškerá ustanovení administratorů\n.");
				strcat(ss,""r" \n\t{ff0000}!!{ffffff}TATO PRAVIDLA PLATÍ I PRO ADMINISTRÁTORY{ff0000}!!\n");
				strcat(ss,""r"{ccff00}=====================================[{ff0000}Informace{ccff00}]=====================================\n");
				strcat(ss,""r"\t \t \t{ff0000}!!!{ffffff} Neznalost pravidel neomlouvá {ff0000}!!!\n");
		        strcat(ss,""r" {99ff00}Úspěšně jste se registroval\n");
		        strcat(ss,""r" {99ff00}Nyní se můžete připojit do hry");
          		SpawnPlayer(playerid);
	    		SetPlayerColor(playerid, 0xffffffaa);
	    		SetPlayerPos(playerid, 1649.5458,1301.3575,10.8203);
                ShowPlayerDialogEx(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_PASS,""COL_WHITE"Success!",ss,"Ok","");
			}
        }

        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
                    new ss[1200];
			        strcat(ss,""r"{ccff00}=====================================[{ff0000}Pravidla{ccff00}]=====================================\n");
			        strcat(ss,""r" \t{ff0000}1.{ffffff}Neurážej adminy{ff0000}!\n");
			        strcat(ss,""r" \t{ff0000}2.{ffffff}nespamuj{ff0000}!\n");
			        strcat(ss,""r" \t{ff0000}3.{ffffff}chyby pište neprodleně na e-mail (/kontakt){ff0000}!\n");
			        strcat(ss,""r" \t{ff0000}4.{ffffff}necheatuj! pezprodleně permanet IP BAN{ff0000}!\n");
			        strcat(ss,""r" \t{ff0000}5.{ffffff}obhajování pište na e-mail (př.ja sem speed hack neměl){ff0000}!\n");
			        strcat(ss,""r" \t{ff0000}6.{ffffff}je zakázáno schazovat server (úmyslně,neúmyslně){ff0000}!\n");
			        strcat(ss,""r" \t{ff0000}7.{ffffff}PŘÍSNÝ ZÁKAZ REKLAMI{ff0000}!!!\n");
			        strcat(ss,""r" \t{ff0000}8.{ffffff}Hráč je povinen se držet zásad slušného chování, dobrých mravů a respektuje veškerá ustanovení administratorů\n.");
					strcat(ss,""r" \n\t{ff0000}!!{ffffff}TATO PRAVIDLA PLATÍ I PRO ADMINISTRÁTORY{ff0000}!!\n");
					strcat(ss,""r"{ccff00}=====================================[{ff0000}Informace{ccff00}]=====================================\n");
					strcat(ss,""r"\t \t \t{ff0000}!!!{ffffff} Neznalost pravidel neomlouvá {ff0000}!!!\n");
			        strcat(ss,""r" {99ff00}Úspěšně jste přihlásil\n");
			        strcat(ss,""r" {99ff00}Vítejte zpět");
					ShowPlayerDialogEx(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_PASS,""COL_WHITE"Success!",ss,"Ok","");
                }
                else
                {
                    new s[1200];
			        strcat(s,""r"{ccff00}=====================================[{ff0000}Pravidla{ccff00}]=====================================\n");
			        strcat(s,""r" \t{ff0000}1.{ffffff}Neurážej adminy{ff0000}!\n");
			        strcat(s,""r" \t{ff0000}2.{ffffff}nespamuj{ff0000}!\n");
			        strcat(s,""r" \t{ff0000}3.{ffffff}chyby pište neprodleně na e-mail (/kontakt){ff0000}!\n");
			        strcat(s,""r" \t{ff0000}4.{ffffff}necheatuj! pezprodleně permanet IP BAN{ff0000}!\n");
			        strcat(s,""r" \t{ff0000}5.{ffffff}obhajování pište na e-mail (př.ja sem speed hack neměl){ff0000}!\n");
			        strcat(s,""r" \t{ff0000}6.{ffffff}je zakázáno schazovat server (úmyslně,neúmyslně){ff0000}!\n");
			        strcat(s,""r" \t{ff0000}7.{ffffff}PŘÍSNÝ ZÁKAZ REKLAMI{ff0000}!!!\n");
			        strcat(s,""r" \t{ff0000}8.{ffffff}Hráč je povinen se držet zásad slušného chování, dobrých mravů a respektuje veškerá ustanovení administratorů\n.");
					strcat(s,""r" \n\t{ff0000}!!{ffffff}TATO PRAVIDLA PLATÍ I PRO ADMINISTRÁTORY{ff0000}!!\n");
					strcat(s,""r"{ccff00}=====================================[{ff0000}Informace{ccff00}]=====================================\n");
					strcat(s,""r"\t \t \t{ff0000}!!!{ffffff} Neznalost pravidel neomlouvá {ff0000}!!!\n");
			        strcat(s,""r" {99ff00}Zadal jste špatné heslo!\n");
			        strcat(s,""r" {99ff00}Zkuste to znovu:");
                    ShowPlayerDialogEx(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",s,"Ok","");
                }
                INI_ParseFile(CarPath(playerid), "LoadCar_%s", .bExtra = true, .extra = playerid);
                return 1;
            }
        }
    }
    
/*if(dialogid == 886)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádné heslo!");
      	if(strcmp(inputtext, garaz1o, true) == 0)
			{
			new string[50];
		        new movetime = MoveObject(garazone, 2224.3999000,-1346.0000000,17.1000000, 4.0);
		        format(string, sizeof(string), "Otevirani potrva %d milliseconds", movetime);
		        SendClientMessage(playerid, 0xFF000000, string);
			return 1;
			}
			if(strcmp(inputtext, garaz1z, true) == 0)
			{
			new string[50];
		        new movetime = MoveObject(garazone, 2224.3999000,-1346.0000000,24.5000000, 3.0);
		        format(string, sizeof(string), "Zavíraní potrva %d milliseconds", movetime);
		        SendClientMessage(playerid, 0xFF000000, string);
			return 1;
			}else{SCM(playerid, -1,"Spatne zadane heslo");}
  		}
 	}
if(dialogid == 887)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádné heslo!");
      	if(strcmp(inputtext, garaz2o, true) == 0)
			{
        new string[50];
        new movetime = MoveObject(garaztwo, 2224.3999000,-1352.7000000,17.1000000, 4.0);
        format(string, sizeof(string), "Otevirani potrva %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        return 1;
    		}
		if(strcmp(inputtext, garaz2z, true) == 0)
		    {
    	new string[50];
        new movetime = MoveObject(garaztwo, 2224.3999000,-1352.7000000,24.5000000, 3.0);
        format(string, sizeof(string), "Zavíraní potrva %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
			return 1;
			}else{SCM(playerid, -1,"Spatne zadane heslo");}
  		}
 	}
if(dialogid == 888)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádné heslo!");
      	if(strcmp(inputtext, garaz3o, true) == 0)
			{
        new string[50];
        new movetime = MoveObject(garaztree, 2224.3999000,-1359.7000000,17.1000000, 4.0);
        format(string, sizeof(string), "Otevirani potrva %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        return 1;
            }
		if(strcmp(inputtext, garaz3z, true) == 0)
			{
    	new string[50];
        new movetime = MoveObject(garaztree, 2224.3999000,-1359.7000000,24.5000000, 3.0);
        format(string, sizeof(string), "Zavíraní potrva %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
			return 1;
			}else{SCM(playerid, -1,"Spatne zadane heslo");}
  		}
 	}
if(dialogid == 889)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádné heslo!");
      	if(strcmp(inputtext, garaz4o, true) == 0)
			{
        new string[50];
        new movetime = MoveObject(garazfour, 2224.4004000,-1366.4004000,17.1000000, 4.0);
        format(string, sizeof(string), "Otevirani potrva %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
			return 1;
			}
		if(strcmp(inputtext, garaz4z, true) == 0)
			{
    	new string[50];
        new movetime = MoveObject(garazfour, 2224.4004000,-1366.4004000,24.5000000, 3.0);
        format(string, sizeof(string), "Otevirani potrva %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
			return 1;
			}else{SCM(playerid, -1,"Spatne zadane heslo");}
    }
  }
*/

if(dialogid == 1234)
	{
	    if(response ==1)
	    {
	    	if(Pohlavi[playerid][pSex] == 0)
			{
				SpawnPlayer(playerid);
				SetPlayerPos(playerid, 1649.5458,1301.3575,10.8203);
				
			}
		}
	}

if(dialogid == 23)
	{
		if(response == 1)
		{
			if(!inputtext[0]) return SendClientMessage(playerid,RED,"[ ! ] Musíš zadat číslo");
			else
			{
				new string[128];
				taxa[playerid] = strval(inputtext);
                format(string,128,"[ ! ] Nastavil jste si taxu na %d",taxa[playerid]);
				SendClientMessage(playerid,0xFFF000AA,string);
			}
		}
	}
	
if(dialogid == 1350)
	{
		if(response == 1)
		{
		    if(Premium[playerid][pVIP] == 0 || Premium[playerid][pVIP] == 1)
		    {
		        new prachy = PlayerInfo[playerid][pVyplata];
				GivePlayerMoney(playerid, prachy);
				SCM(playerid, -1 ,"Pravě ti zaměsnanec dal prachy na ruku ");
				PlayerInfo[playerid][pVyplata] = 0;
			}
   			if(Premium[playerid][pVIP] == 2)
		    {
			 	new prachy = PlayerInfo[playerid][pVyplata];
				PlayerBanks[playerid][pBank] += prachy;
				SCM(playerid, -1 ,"Pravě ti zaměsnanec Poslal peníze do banky /info");
				PlayerInfo[playerid][pVyplata] = 0;
			}
		}
	}
	
if(dialogid == 3333)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádné misto!");
      	if(strcmp(inputtext, "A", true) == 0)
			{
        new string[50];
        format(string, sizeof(string), "{ffff00}Pravě si začal skoušky na řidičak skupiny: {00ff00}A");
        SendClientMessage(playerid, 0xFF000000, string);
			return 1;
			}
		if(strcmp(inputtext, "C+E", true) == 0)
        if(AutoSkola[playerid][pAsCe] == 0)
			{
         if(GetPlayerMoney(playerid) < 35000)
			return SendClientMessage(playerid, Barva-none, "Nemas dostatek penez, Cena 35 000$");
			GivePlayerMoney(playerid, -35000);
        SetPlayerPos(playerid, -2256.1208,2361.3933,6.0005);
        SendClientMessage(playerid, -1, "{ffff00}Pravě si začal skoušky na řidičak skupiny: {00ff00}C+E");
        AutoSkola_Ce[playerid] = 2;
        SetPlayerCheckpoint(playerid, -2256.1208,2361.3933,6.0005, 10);
        PutPlayerInVehicle(playerid,CreateVehicle(403, -2256.1208,2361.3933,6.0005+5,4.9696, 6,6, 8000, 0),0);
			return 1;
			}
		if(strcmp(inputtext, "B", true) == 0)
			if(AutoSkola[playerid][pAsB] == 0)
			{
			if(GetPlayerMoney(playerid) < 15000)
			return SendClientMessage(playerid, Barva-none, "Nemas dostatek penez, Cena 15 000$");
			GivePlayerMoney(playerid, -15000);
        SetPlayerPos(playerid, -2256.9644,2354.1072,4.9696);
        SendClientMessage(playerid, -1, "{ffff00}Pravě si začal skoušky na řidičak skupiny: {00ff00}B");
        AutoSkola_B[playerid] = 1;
        SetPlayerCheckpoint(playerid, -2256.9644,2354.1072,4.9696, 10);
        PutPlayerInVehicle(playerid,CreateVehicle(415,  -2256.9644,2354.1072+5,4.9696, 6,6, 8000, 0),0);
			return 1;
			}else{SCM(playerid, -1,"[AutoŠkola]Tento řídíčák už máš!");
				}else{
				if(AutoSkola[playerid][pAsB] == 1)
				{
				SendClientMessage(playerid, -1, "Tento řidičak nevyrabime");
				}
			}
  		}
 	}

if(dialogid == 9999)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádné misto!");
      	if(strcmp(inputtext, "red", true) == 0)
			{
        new string[50];
		SetPlayerPos(playerid, -2318.6309,1545.9492,18.7734);
        format(string, sizeof(string), "Portovani do PVP zony {00ff00}red");
        SendClientMessage(playerid, 0xFF000000, string);
        GivePlayerWeapon(playerid, 34, 200);
        GivePlayerWeapon(playerid, 39, 200);
        GivePlayerWeapon(playerid, 40, 200);
        GivePlayerWeapon(playerid, 31, 200);
			return 1;
			}
		if(strcmp(inputtext, "blue", true) == 0)
			{
    	new string[50];
        SetPlayerPos(playerid, -2474.4041,1548.7893,33.2273);
        format(string, sizeof(string), "Portovani do PVP zony {00ffff}Blue");
        SendClientMessage(playerid, 0xFF000000, string);
        GivePlayerWeapon(playerid, 34, 200);
        GivePlayerWeapon(playerid, 39, 200);
        GivePlayerWeapon(playerid, 40, 200);
        GivePlayerWeapon(playerid, 31, 200);
			return 1;
			}else{SCM(playerid, -1,"Spatne zadane udaje");}
  		}
 	}
 	
 /*if(dialogid == 956)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádné Pohlaví!");
      	if(strcmp(inputtext, "Kluk", true) == 0)
			{
        new sex[120];
        strcat(sex,"Pravě sis nastavil klučičí skiny! {ffff00}Boy");
        SendClientMessage(playerid, 0xFF000000, sex);
        Pohlavi[playerid][pSex] = 1;
			return 1;
			}
		if(strcmp(inputtext, "Holka", true) == 0)
			{
    	new sex[120];
        strcat(sex,"Pravě sis nastavila holčičí skiny! {ff0000} Girl");
        SendClientMessage(playerid, 0xFF000000, sex);
        Pohlavi[playerid][pSex] = 2;
			return 1;
			}else{SCM(playerid, -1,"Spatne zadane Pohlaví");
			}
  		}
 	}
*/
 if(dialogid == 956)
	{
	if(response == 1)
		{
		if(listitem == 0)
			{
	 	new sex[120];
        strcat(sex,"Pravě sis nastavil klučičí skiny! {ffff00}Boy");
        SendClientMessage(playerid, 0xFF000000, sex);
        Pohlavi[playerid][pSex] = 1;
			}
		else if(listitem == 1)
			{
		new sex[120];
        strcat(sex,"Pravě sis nastavila holčičí skiny! {ff0000} Girl");
        SendClientMessage(playerid, 0xFF000000, sex);
        Pohlavi[playerid][pSex] = 2;
			}
		}
		}

 	if(dialogid == 4287)
		{
		if(response == 1)
		{
			if(listitem == 0)
			{
				if(GetPlayerMoney(playerid) <= InfernusShop) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
				{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi Vozidlo: Infernus \n{ff0000}(napíš /garaz a klikni na ID vozidla potom jdi do garaze hned vedle)");
                GivePlayerMoney(playerid,-InfernusShop);
				/*new carowner[50];
				format(carowner, sizeof(carowner), "%s", PlayerName(playerid));
				VehInfo[playerid][vCarOwner] = carowner;*/
				format(VehInfo[playerid][vCarOwner],MAX_PLAYER_NAME,"%s",PlayerName(playerid));
				VehInfo[playerid][vCarId] = 411;
				VehInfo[playerid][vCarX] = -1708.3275;
				VehInfo[playerid][vCarY] = 10.9981;
				VehInfo[playerid][vCarZ] = 3.2818;
				}
			}
		else if(listitem == 1)
			{
			    if(GetPlayerMoney(playerid) <= UranusShop) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
				{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi Vozidlo: UranusShop \n{ff0000}(napíš /garaz a klikni na ID vozidla potom jdi do garaze hned vedle)");
				GivePlayerMoney(playerid,-15000000);
				/*new carowner[50];
				format(carowner, sizeof(carowner), "%s", PlayerName(playerid));
				VehInfo[playerid][vCarOwner] = carowner;*/
				format(VehInfo[playerid][vCarOwner],MAX_PLAYER_NAME,"%s",PlayerName(playerid));
				VehInfo[playerid][vCarId] = 558;
				VehInfo[playerid][vCarX] = -1708.3275;
				VehInfo[playerid][vCarY] = 10.9981;
				VehInfo[playerid][vCarZ] = 3.2818;
				}
			}
		else if(listitem == 2)
			{
			    if(GetPlayerMoney(playerid) <= ElegyShop) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
				{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi Vozidlo: Elegy \n{ff0000}(napíš /garaz a klikni na ID vozidla potom jdi do garaze hned vedle)");
				GivePlayerMoney(playerid,-ElegyShop);
				/*new carowner[50];
				GetPlayerName(playerid,carowner,sizeof(carowner));
				VehInfo[playerid][vCarOwner] = carowner;*/
				format(VehInfo[playerid][vCarOwner],MAX_PLAYERS,"%s",PlayerName(playerid));
				VehInfo[playerid][vCarId] = 562;
				VehInfo[playerid][vCarX] = -1708.3275 + 10;
				VehInfo[playerid][vCarY] = 10.9981 + 10;
				VehInfo[playerid][vCarZ] = 3.2818 + 10;
				}
			}
  	else if(listitem == 3)
			{
			    if(GetPlayerMoney(playerid) <= SavanaShop) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
				{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi Vozidlo: Savanna \n{ff0000}(napíš /garaz a klikni na ID vozidla potom jdi do garaze hned vedle)");
				GivePlayerMoney(playerid,-SavanaShop);
				/*new carowner[50];
				GetPlayerName(playerid,carowner,sizeof(carowner));
				VehInfo[playerid][vCarOwner] = carowner;*/
				format(VehInfo[playerid][vCarOwner],MAX_PLAYER_NAME,"%s",PlayerName(playerid));
				VehInfo[playerid][vCarId] = 567;
				VehInfo[playerid][vCarX] = -1708.3275 + 10;
				VehInfo[playerid][vCarY] = 10.9981 + 10;
				VehInfo[playerid][vCarZ] = 3.2818 + 10;
				}
			}
  	else if(listitem == 4)
			{
			    if(GetPlayerMoney(playerid) <= BulletShop) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
				{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi Vozidlo: Bullet \n{ff0000}(napíš /garaz a klikni na ID vozidla potom jdi do garaze hned vedle)");
				GivePlayerMoney(playerid,-BulletShop);
				/*new carowner[50];
				GetPlayerName(playerid,carowner,sizeof(carowner));
				VehInfo[playerid][vCarOwner] = carowner;*/
				format(VehInfo[playerid][vCarOwner],MAX_PLAYER_NAME,"%s",PlayerName(playerid));
				VehInfo[playerid][vCarId] = 541;
				VehInfo[playerid][vCarX] = -1708.3275 + 10;
				VehInfo[playerid][vCarY] = 10.9981 + 10;
				VehInfo[playerid][vCarZ] = 3.2818 + 10;
				}
			}
  	else if(listitem == 5)
			{
			    if(GetPlayerMoney(playerid) <= BlistaShop) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
				{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi Vozidlo: Blista \n{ff0000}(napíš /garaz a klikni na ID vozidla potom jdi do garaze hned vedle)");
				GivePlayerMoney(playerid,-BlistaShop);
				/*new carowner[50];
				GetPlayerName(playerid,carowner,sizeof(carowner));
				VehInfo[playerid][vCarOwner] = carowner;*/
				format(VehInfo[playerid][vCarOwner],MAX_PLAYER_NAME,"%s",PlayerName(playerid));
				VehInfo[playerid][vCarId] = 496;
				VehInfo[playerid][vCarX] = -1708.3275 + 10;
				VehInfo[playerid][vCarY] = 10.9981 + 10;
				VehInfo[playerid][vCarZ] = 3.2818 + 10;
				}
			}
  	else if(listitem == 6)
			{
			    if(GetPlayerMoney(playerid) <= TampaShop) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
				{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi Vozidlo: Tampa \n{ff0000}(napíš /garaz a klikni na ID vozidla potom jdi do garaze hned vedle)");
				GivePlayerMoney(playerid,-TampaShop);
				/*new carowner[50];
				GetPlayerName(playerid,carowner,sizeof(carowner));
				VehInfo[playerid][vCarOwner] = carowner;*/
				format(VehInfo[playerid][vCarOwner],MAX_PLAYER_NAME,"%s",PlayerName(playerid));
				VehInfo[playerid][vCarId] = 549;
				VehInfo[playerid][vCarX] = -1708.3275 + 10;
				VehInfo[playerid][vCarY] = 10.9981 + 10;
				VehInfo[playerid][vCarZ] = 3.2818 + 10;
				}
			}
		}
		}
		
if(dialogid == 999)
		{
		if(response == 1)
		{
		if(listitem == 0)
		{
		ShowPlayerDialogEx(playerid,1000,DIALOG_STYLE_INPUT,"Vybrať peniaze","Napíš koľko chceš vybrať","Vybrať","Zrušiť");
		}
		else if(listitem == 1)
		{
		ShowPlayerDialogEx(playerid,1001,DIALOG_STYLE_INPUT,"Vložiť peniaze","Napíš koľko chceš vložiť","Vložiť","Zrušiť");
		}
		else if(listitem == 2)
		{
		ShowPlayerDialogEx(playerid,1003,DIALOG_STYLE_MSGBOX,"Vybrať vše","Opravdu si přeješ vše Vybrat Z banky?","Vybrat","Zrušiť");
		}
		else if(listitem == 3)
		{
		ShowPlayerDialogEx(playerid,1004,DIALOG_STYLE_MSGBOX,"Vložiť vše","Opravdu si přeješ vše Vložit do banky?","Vložiť","Zrušiť");
		}
		else if(listitem == 4)
		{
		ShowPlayerDialogEx(playerid,1005,DIALOG_STYLE_INPUT,"Převod peněz","Napiš kolko chces poslat hračovi takto:\n \n{ffff00}<ID> <Častka>","Převéct","Zrušiť");
		}
		else if(listitem == 5)
		{
		new string[128];
		format(string,128,"Na tvém účtě je %d $",PlayerBanks[playerid][pBank]);
		ShowPlayerDialogEx(playerid,1002,DIALOG_STYLE_MSGBOX,"Stav účtu",string,"OK","");
		}
		}
		}
		
if(dialogid == 2583)
		{
		if(response == 1)
		{
		if(listitem == 0)
		{
			if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
			{
			mise_delnik_1[playerid] = 1;
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,2,565.3401,873.7526,-43.5811, 2642.4939,856.4453,6.0938, 15);
			SCM(playerid,red,"Zahajil ste Zakazku");
			}
		}
		else if(listitem == 1)
		{
			if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
			{
			mise_delnik_2[playerid] = 1;
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,2,565.3401,873.7526,-43.5811, -1906.3279,-1717.1256,22.1896, 15);
			SCM(playerid,red,"Zahajil ste Zakazku");
			}
		}
		else if(listitem == 2)
		{
			if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
			{
			mise_delnik_3[playerid] = 1;
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,2,565.3401,873.7526,-43.5811, -520.0107,2592.3752,53.8516, 15);
			SCM(playerid,red,"Zahajil ste Zakazku");
			}
		}
		else if(listitem == 3)
		{
			if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
			{
			mise_delnik_4[playerid] = 1;
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,2,565.3401,873.7526,-43.5811, -221.5137,2734.1328,63.1241, 15);
			SCM(playerid,red,"Zahajil ste Zakazku");
			}
		}
		else if(listitem == 4)
		{
			if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
			{
			mise_delnik_5[playerid] = 1;
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,2,565.3401,873.7526,-43.5811, 380.9294,2538.5537,16.9755, 15);
			SCM(playerid,red,"Zahajil ste Zakazku");
			}
		}
		else if(listitem == 5)
		{
	 		if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
			{
			mise_delnik_6[playerid] = 1;
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,2,565.3401,873.7526,-43.5811, 2434.7549,1911.3861,6.0519, 15);
			SCM(playerid,red,"Zahajil ste Zakazku");
			}
		}
		else if(listitem == 6)
		{
			if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
			{
			mise_delnik_7[playerid] = 1;
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,2,565.3401,873.7526,-43.5811, -221.5137,2734.1328,63.1241, 15);
			SCM(playerid,red,"Zahajil ste Zakazku");
			}
		}
		else if(listitem == 7)
		{
			if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
			{
			mise_delnik_8[playerid] = 1;
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,2,-1906.3279,-1717.1256,22.1896, -221.5137,2734.1328,63.1241, 15);
			SCM(playerid,red,"Zahajil ste Zakazku");
			}
		}
		}
		}

if(dialogid == 2000)
		{
		if(response == 1)
		{
		if(listitem == 0)
		{
		Premium[playerid][pVIP] = 1;
		PlayerPoints[playerid][pKredit] -= 500;
		ShowPlayerDialogEx(playerid,2023, DIALOG_STYLE_MSGBOX,"{00ff00}Zakoupeno","Pravě sis zakoupil Premium Klasik Pro zobrazeni přikazu napíš /Premium","Potvrzuji","");
		SetTimerEx("stopvip", 86400, false, "i", playerid);
		}
		else if(listitem == 1)
		{
		Premium[playerid][pVIP] = 2;
		PlayerPoints[playerid][pKredit] -= 4320;
		ShowPlayerDialogEx(playerid,2024, DIALOG_STYLE_MSGBOX,"{00ff00}Zakoupeno","Pravě sis zakoupil Premium Extra Pro zobrazeni přikazu napíš /Premium","Potvrzuji","");
		SetTimerEx("stopvip", 604800, false, "i", playerid);
		}
		}
		}
/*--------------Online Radio Setup--------------*/
if(dialogid == 369)
		{
		if(response == 1)
		{
		if(listitem == 0)
		{
		ShowPlayerDialogEx(playerid,3698,DIALOG_STYLE_INPUT,"{00ffee}Vybrať Stanicy CZ","{ffffff}napiš: {00ffff}list","Vybrať","Zrušiť");
		}
		else if(listitem == 1)
		{
		/*PlayAudioStreamForPlayer(playerid, "https://listenonline.eu/00000707.m3u");*/
		PlayAudioStreamForPlayer(playerid, "http://myradiostream.com/35/14706");
		}
		else if(listitem == 2)
		{
        ShowPlayerDialogEx(playerid,3699,DIALOG_STYLE_INPUT,"{00ffee}Vybrať Stanicy SK","{ffffff}napiš: {00ffff}list","Vybrať","Zrušiť");
		}
		else if(listitem == 3)
		{
		StopAudioStreamForPlayer(playerid);
		SCM(playerid,-1,"{ff0000}[!]{ffff00}Radio Vypnuto!");
		}
		}
		}
/*-------------------CZ Radio------------------*/
 if(dialogid == 3698)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádnou stanici! (listcz)");
        if(strcmp(inputtext, "listcz", true) == 0)
			{
			new rdol[250];
			strcat(rdol,"{ffff00}Název\t napsat do vyhledavače stanice\n");
			strcat(rdol,"{AAFFFF}Impuls\t {00ff00}impuls\n");
			strcat(rdol,"{AAFFFF}Kiss Delta\t {00ff00}kissdelta\n");
			strcat(rdol,"{AAFFFF}Evropa 2\t {00ff00}evropa2\n");
			SendClientMessage(playerid,-1,rdol);
			return 1;
			}
		if(strcmp(inputtext, "impuls", true) == 0)
			{
        new rdo[120];
        strcat(rdo,"Pravě sis naladil {ffff00}Impuls");
        SendClientMessage(playerid, 0xFF000000, rdo);
        PlayAudioStreamForPlayer(playerid, "http://icecast6.play.cz/cesky-impuls.mp3");
			return 1;
			}
        if(strcmp(inputtext, "kissdelta", true) == 0)
			{
        new rdo[120];
        strcat(rdo,"Pravě sis naladil {ffff00}Kiss Delta");
        SendClientMessage(playerid, 0xFF000000, rdo);
        PlayAudioStreamForPlayer(playerid, "http://icecast1.play.cz:443/kissdelta192.mp3");
			return 1;
			}
		if(strcmp(inputtext, "kisshady", true) == 0)
			{
        new rdo[120];
        strcat(rdo,"Pravě sis naladil {ffff00}Kiss Hády");
        SendClientMessage(playerid, 0xFF000000, rdo);
        PlayAudioStreamForPlayer(playerid, "http://icecast1.play.cz/kisshady256.mp3");
			return 1;
			}
		if(strcmp(inputtext, "evropa2", true) == 0)
			{
    	new rdo[120];
        strcat(rdo,"Pravě sis naladil {ffff00}Evropu 2");
        SendClientMessage(playerid, 0xFF000000, rdo);
        PlayAudioStreamForPlayer(playerid, "http://icecast3.play.cz/evropa2-128.mp3");
			return 1;
			}else{SCM(playerid, -1,"Spatne zadana Stanice");
			}
  		}
 	}
 /*-------------------SK Radio------------------*/
 if(dialogid == 3699)
	{
	if(response == 1)
		{
		if(!inputtext[0]) return SendClientMessage(playerid, 0xFFFFFFFF, "Nezadal jsi žádnou stanici!");
        if(strcmp(inputtext, "listsk", true) == 0)
			{
			new rdol[250];
			strcat(rdol,"{ff000e}Název\t napsat do vyhledavače stanice\n");
			strcat(rdol,"{AAFFFF}Fun Radio - Dance\t {00ff00}fr-d\n");
			strcat(rdol,"{AAFFFF}Radio Vlna\t {00ff00}rv\n");
			strcat(rdol,"{AAFFFF}Fun Radio - Running\t {00ff00}fr-r\n");
   			SendClientMessage(playerid,-1,rdol);
			return 1;
			}
		if(strcmp(inputtext, "fr-d", true) == 0)
			{
        new rdo[120];
        strcat(rdo,"Pravě sis naladil {ffff00}Fun Radio - Dance");
        SendClientMessage(playerid, 0xFF000000, rdo);
        PlayAudioStreamForPlayer(playerid, "http://stream.funradio.sk:8000/dance128.mp3");
			return 1;
			}
        if(strcmp(inputtext, "rv", true) == 0)
			{
        new rdo[120];
        strcat(rdo,"Pravě sis naladil {ffff00}Rádio Vlna");
        SendClientMessage(playerid, 0xFF000000, rdo);
        PlayAudioStreamForPlayer(playerid, "http://stream.radiovlna.sk/vlna-lo.mp3");
			return 1;
			}
		if(strcmp(inputtext, "fr-r", true) == 0)
			{
    	new rdo[120];
        strcat(rdo,"Pravě sis naladil {ffff00}Fun Rádio - Running");
        SendClientMessage(playerid, 0xFF000000, rdo);
        PlayAudioStreamForPlayer(playerid, "http://stream.funradio.sk:8000/running128.mp3");
			return 1;
			}else{SCM(playerid, -1,"Spatne zadana Stanice");
			}
  		}
 	}
/*------------------------------------------------*/
if(dialogid == 3571)
		{
		if(response == 1)
			{
			if(listitem == 0)
    			{
				if(VehInfo[playerid][vCarOwner])
					{
					new carsc[MAX_PLAYERS];
					new viewcars[MAX_PLAYER_NAME+1];
						if(viewcars[playerid] == 0)
						{
						viewcars[playerid] = 1;
						carsc[playerid] = AddStaticVehicle(VehInfo[playerid][vCarId],VehInfo[playerid][vCarX],VehInfo[playerid][vCarY],VehInfo[playerid][vCarZ],VehInfo[playerid][vCarR],VehInfo[playerid][vCarColor1],VehInfo[playerid][vCarColor2]);
						
						}
						if(viewcars[playerid] == 1)
						{
						DestroyVehicle(VehInfo[playerid][vCarId]);
						viewcars[playerid] = 0;
						}
					}
				}
			}
   		return 1;
		}
/*====================JOBS/Prace/Dialog==================*/
if(dialogid == 100)
		{
		if(response == 1)
		{
  if(povolani[playerid][pJobs] == 1)
		{
		    SendClientMessage(playerid, 0xff0000,"Už si Kamionakem/čkou !");
		}else{
		    SetPlayerColor(playerid, 0x33cc33aa);
		new jobsj[123];
		format(jobsj,sizeof(jobsj),"{00ffff}%s {ffffff}se stal Kamionakem/čkou!", PlayerName(playerid));
  		SendClientMessageToAll(-1,jobsj);
  		povolani[playerid][pJobs] = 1;
  		PlayerInfo[playerid][nSpawn] = 1;
  		SetSpawnInfo(playerid,1,180,-49.8968,-269.3628,6.6332,358.2857,22, 100, 26, 400, 18, 100);
  		SpawnPlayer(playerid);
		}
		}
		return 1;
		}

if(dialogid == 101)
		{
		if(response == 1)
		{
		if(povolani[playerid][pJobs] == 2)
			{
				SendClientMessage(playerid, 0xff0000,"Už si Autobusakem/čkou !");
				}else{
				SetPlayerColor(playerid, 0x33cc33aa);
		new jobsj[123];
		format(jobsj,sizeof(jobsj),"{00ffff}%s {ffffff}se stal Autobusakem/čkou!", PlayerName(playerid));
  		SendClientMessageToAll(-1,jobsj);
  		povolani[playerid][pJobs] = 2;
  		PlayerInfo[playerid][nSpawn] = 1;
  		SetSpawnInfo(playerid,1,171,1126.2648,1460.0244,5.8203,213.8855,23, 100, 26, 400, 18, 100);
  		SpawnPlayer(playerid);
		}
		}
		return 1;
		}
		
if(dialogid == 142)
		{
		if(response == 1)
		{
		if(povolani[playerid][pJobs] == 3)
			{
				SendClientMessage(playerid, 0xff0000,"Už si Taxikářem/kou !");
				}else{
				SetPlayerColor(playerid, 0xffff00ff);
		new jobsj[123];
		format(jobsj,sizeof(jobsj),"{00ffff}%s {ffffff}se stal Taxikářem/kou!", PlayerName(playerid));
  		SendClientMessageToAll(-1,jobsj);
  		povolani[playerid][pJobs] = 3;
  		PlayerInfo[playerid][nSpawn] = 1;
  		SpawnPlayer(playerid);
		}
		}
		return 1;
		}
		
if(dialogid == 144)
		{
		if(response == 1)
		{
		if(povolani[playerid][pJobs] == 4)
			{
				SendClientMessage(playerid, 0xff0000,"Už si Mechanikem/čkou !");
				}else{
				SetPlayerColor(playerid, 0x333300ff);
		new jobsj[123];
		format(jobsj,sizeof(jobsj),"{00ffff}%s {ffffff}se stal Mechanik/čkou!", PlayerName(playerid));
  		SendClientMessageToAll(-1,jobsj);
  		povolani[playerid][pJobs] = 4;
  		PlayerInfo[playerid][nSpawn] = 1;
  		SpawnPlayer(playerid);
		}
		}
		return 1;
		}
		
if(dialogid == 145)
		{
		if(response == 1)
		{
		if(povolani[playerid][pJobs] == 5)
			{
				SendClientMessage(playerid, 0xff0000,"Už si Policajtem/kou !");
				}else{
				SetPlayerColor(playerid, 0x00CCFFff);
		new jobsj[123];
		format(jobsj,sizeof(jobsj),"{00ffff}%s {ffffff}se stal Policajtem/kou!", PlayerName(playerid));
  		SendClientMessageToAll(-1,jobsj);
  		povolani[playerid][pJobs] = 5;
  		PlayerInfo[playerid][nSpawn] = 1;
  		SpawnPlayer(playerid);
		}
		}
		return 1;
		}
		
if(dialogid == 146)
		{
		if(response == 1)
		{
		if(povolani[playerid][pJobs] == 6)
			{
				SendClientMessage(playerid, 0xff0000,"Už si Dozorce/tkou !");
				}else{
				SetPlayerColor(playerid, 0x3333CCff);
		new jobsj[123];
		format(jobsj,sizeof(jobsj),"{00ffff}%s {ffffff}se stal Dozorcem/tkou!", PlayerName(playerid));
  		SendClientMessageToAll(-1,jobsj);
  		povolani[playerid][pJobs] = 6;
  		PlayerInfo[playerid][nSpawn] = 1;
  		SpawnPlayer(playerid);
		}
		}
		return 1;
		}



if(dialogid == 364)
		{
		if(response == 1)
		{
		if(povolani[playerid][pJobs] == 8)
			{
				SendClientMessage(playerid, 0xff0000,"Už si Dělnik/čkou !");
				}else{
				SetPlayerColor(playerid, 0x333333aa);
		new jobsj[123];
		format(jobsj,sizeof(jobsj),"{00ffff}%s {ffffff}se stal Dělnik/čkou!", PlayerName(playerid));
  		SendClientMessageToAll(-1,jobsj);
  		povolani[playerid][pJobs] = 8;
  		PlayerInfo[playerid][nSpawn] = 1;
  		SetSpawnInfo(playerid,1,171,677.5715,924.5881,-40.5159,43.2807,22, 100, 26, 400, 18, 100);
  		SpawnPlayer(playerid);
		}
		}
		return 1;
		}
/*========================================================*/
if(dialogid == 2147)
		{
		if(response == 1)
		{
		if(listitem == 0)
		{
			if(PlayerInfo[playerid][nJoin] == 0)
			{
			    PlayerInfo[playerid][nJoin] = 1;
			}
		else
			if(PlayerInfo[playerid][nJoin] == 1)
			{
			    PlayerInfo[playerid][nJoin] = 0;
			}
		}
		else if(listitem == 1)
		{
		    if(PlayerInfo[playerid][nClose] == 0)
		    {
		        PlayerInfo[playerid][nClose] = 1;
			}
		else
		    if(PlayerInfo[playerid][nClose] == 1)
		    {
                PlayerInfo[playerid][nClose] = 0;
			}
		}
		else if(listitem == 2)
		{
		    if(PlayerInfo[playerid][nSpawn] == 1)
		    {
		        PlayerInfo[playerid][nSpawn] = 2;
			}
		else
		    if(PlayerInfo[playerid][nSpawn] == 2)
		    {
		        PlayerInfo[playerid][nSpawn] = 3;
			}
		else
		    if(PlayerInfo[playerid][nSpawn] == 3)
		    {
		        PlayerInfo[playerid][nSpawn] = 4;
			}
		else
		    if(PlayerInfo[playerid][nSpawn] == 4)
		    {
		        PlayerInfo[playerid][nSpawn] = 1;
			}
        }
		}
		}
		
if(dialogid == 8534)
		{
		if(response == 1)
		    {
		    if(listitem == 0)
		        {
		        if(GetPlayerMoney(playerid) <= 4000) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
					{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi do Vozidla Nitro x2");
                GivePlayerMoney(playerid,-4000);
		        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
				if (GetVehicleModel( GetPlayerVehicleID(playerid) ))
					{
			    AddVehicleComponent(GetPlayerVehicleID(playerid), 1009);
					}
		        }
		        }
			if(listitem == 1)
			    {
			    if(GetPlayerMoney(playerid) <= 8500) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
					{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi do Vozidla Nitro x5");
                GivePlayerMoney(playerid,-8500);
			    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
				if (GetVehicleModel( GetPlayerVehicleID(playerid) ))
					{
			    AddVehicleComponent(GetPlayerVehicleID(playerid), 1008);
					}
			    }
			    }
			if(listitem == 2)
			    {
			    if(GetPlayerMoney(playerid) <= 1000) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
					{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi do Vozidla Kola Cutter");
                GivePlayerMoney(playerid,-1000);
			    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
				if (GetVehicleModel( GetPlayerVehicleID(playerid) ))
					{
			    AddVehicleComponent(GetPlayerVehicleID(playerid), 1079);
					}
			    }
			    }
			if(listitem == 3)
				{
				if(GetPlayerMoney(playerid) <= 2000) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
					{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi do Vozidla Kola Dollars");
                GivePlayerMoney(playerid,-2000);
				if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
				if (GetVehicleModel( GetPlayerVehicleID(playerid) ))
					{
			    AddVehicleComponent(GetPlayerVehicleID(playerid), 1083);
					}
				}
				}
			if(listitem == 4)
			    {
			    if(GetPlayerMoney(playerid) <= 10000) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
					{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi do vozidla Hydrauliku");
                GivePlayerMoney(playerid,-10000);
			    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
				if (GetVehicleModel( GetPlayerVehicleID(playerid) ))
					{
			    AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
					}
				}
				}
			if(listitem == 5)
			    {
			    if(GetPlayerMoney(playerid) <= 20000) return SCM(playerid, 0xff0000aa, "[!]Sorry nemáš dostatek peněz!!");
					{
				SCM(playerid, 0x00ffaaaa, "Zakoupil jsi Opravu vozidla");
                GivePlayerMoney(playerid,-20000);
                if(IsPlayerInAnyVehicle(playerid))
        			{
        		RepairVehicle(GetPlayerVehicleID(playerid));
        		SendClientMessage(playerid, 0x33AA33AA, "Kolerio ti opravil Vozidlo za 20000$");
        			}
				}
				}
			}
		}
		
if(dialogid == 6652)
		{
		if(response == 1)
		{
		if(listitem == 0)
			{
			new info[150];
			new infos[150];
			format(info, sizeof(info), "{ffff00}Skin id: {ff0000}%d\n\n{ffff00}AdminLevel: {ff0000}%d\n\n{00ffff}WantedLevel: {ff0000}%d\n\n", PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pWandlvl]);
			format(infos, sizeof(infos), "{ffff00}Level: {00ff00}%d", Levels[playerid][pLevel]);
			new s[300];
			strcat(s, info);
			strcat(s, infos);
			ShowPlayerDialogEx(playerid, Dialog_Info, DIALOG_STYLE_MSGBOX, "Info", s,"Pokračovat","Zavřít");
			}
				else if(listitem == 1)
				{
				    new ucet[150];
				    format(ucet, sizeof(ucet), "\t{ffff00}Peníze: {0000ff}%d{00ff00}$\n\n\t{ffff00}Bance: {0000ff}%d{00ff00}$\n\n\t {00ff00}%d {ff9900}Kreditu" , GetPlayerMoney(playerid), PlayerBanks[playerid][pBank], PlayerPoints[playerid][pKredit]);
				    ShowPlayerDialog(playerid, 18, DIALOG_STYLE_MSGBOX, "Učet",ucet,"Zavrit","");
				}
					else if(listitem == 2)
					{
				    	new help[1000];
						strcat(help,"{ffffff}}--------------------------------------------------<{00ff00}Přikazy:{ffffff}>--------------------------------------------------{\n");
						strcat(help,"\t /help \t (ukaze ti napovedy atd..)\n");
						strcat(help,"\t /mechanik \t (Zavolas si sluzbu mechanika)\n");
						strcat(help,"\t /admins \t (Prehled ja cí admins sou na serveru)\n");
						strcat(help,"\t /premium \t (Premium ucet)\n");
						strcat(help,"\t /pm \t <id_hrace> <Zprava>\n");
						strcat(help,"\t /pay \t <id_hrace> <castka>\n");
						strcat(help,"\t /buykredit \t zatím neni\n");
						strcat(help,"\t /ucet \t (ukaze ti tvuj ucet penize atd...\n");
						strcat(help,"\t /telefon \t zatim neni\n");
						strcat(help,"\t /radio \t (zde si muzes pustit hudbu(bude se poupravovat))\n");
						strcat(help,"\t /sellkredit \t zatim neni\n");
						strcat(help,"\t /dotaz \t <tvuj dotaz>\n");
						strcat(help,"\t /hodnosti\t zatim neni\n");
						strcat(help,"\t /afk \t hodi te do AFK/unAFK\n");
						strcat(help,"\tBzedomovec:\t /zebrat <id>\n");
						strcat(help,"\tZaměstnanec:\t /darzebrakovi <id> <castka>\n");
						ShowPlayerDialogEx(playerid, 7896, DIALOG_STYLE_MSGBOX, "{00ffff}Help",help,"OK","Cancel");
					}
						else if(listitem == 3)
						{
							        new contact[900];
							strcat(contact, "{ccff00}=====================================[{ffffff}Kontakt{ccff00}]=====================================\n");
							strcat(contact, "{00ff00}Majitel\t{ff9900}TedakCZE\t{99ffff}E-mail:\t{ffff00}TedakCZ@seznam.cz\tSkype:{ff9900}none\n");
							strcat(contact, "{00ffff}Hl.Administrator\t{ff9900}Arrowq\t{99ffff}E-mail:\t{00ff00}levcz@seznam.cz \tSkype:{ff9900}levcz92\n");
							strcat(contact, "{ff0000}Hl.Administrator\t{ff9900}HPB\t{99ffff}E-mail:\t{00ff00}none\tSkype:{ff9900}none\n");
							strcat(contact, "{ff0000}Administrator\t{ff9900}[L]unyx[6]\t{99ffff}E-mail:Lunyx666@seznam.cz\t{00ff00}\tSkype:{ff9900}ondralunyx\n");
							strcat(contact, "{ff0000}Administrator\t{ff9900}[B]rambora\t{99ffff}E-mail:bramboraakasandmoon@seznam.cz\t{00ff00}Pitrok@seznam.cz\tSkype:{ff9900}none\n");
							strcat(contact, "{ff0000}Admin\t{ff9900}Volná-pozice\t{99ffff}E-mail:\t{00ff00}none\tSkype:{ff9900}none\n");
							ShowPlayerDialogEx(playerid, Dialog_kontakt, DIALOG_STYLE_MSGBOX, "{6677ff}Kontakt",contact, "OK","Cancel");
						}
							else if(listitem == 4)
							{
							    ShowPlayerDialogEx(playerid, 15,DIALOG_STYLE_MSGBOX,"{ff0000}Web" ,"\tWebova stranka Webu: {00ff00}http://TheWarriors.cz", "OK","");
						 	}
		}
		}

if(dialogid == 1000)
		{
		if(response == 1)
		{
		if(PlayerBanks[playerid][pBank] < strval(inputtext)) return SendClientMessage(playerid,-1,"Nemáš toľko na účte");
		if(!IsNumeric(inputtext)) return SendClientMessage(playerid,-1,"Musíš zadať číselnú hodnotu !");
		PlayerBanks[playerid][pBank]-=strval(inputtext);
		GivePlayerMoney(playerid,strval(inputtext));
		}
		return 1;
		}

		if(dialogid == 1001)
		{
		if(response == 1)
		{
		if(strval(inputtext) > GetPlayerMoney(playerid)) return SendClientMessage(playerid,-1,"Zle zadaná čiastka !");
		if(!IsNumeric(inputtext)) return SendClientMessage(playerid,-1,"Musíš zadať číselnú hodnotu !");
		PlayerBanks[playerid][pBank]+=strval(inputtext);
		GivePlayerMoney(playerid,-strval(inputtext));
		}
		return 1;
		}
		
		if(dialogid == 1003)
		{
		if(response == 1)
		{
		new prachy = PlayerBanks[playerid][pBank];
		GivePlayerMoney(playerid,prachy);
		SCM(playerid, -1, "PRAVĚ SI VYBRAL VŠECHNY SVOJE PRACHY Z BANKY!");
		PlayerBanks[playerid][pBank] = 0;
		}
		return 1;
		}
		
		if(dialogid == 1004)
		{
		if(response == 1)
		{
		new prachy = GetPlayerMoney(playerid);
        PlayerBanks[playerid][pBank] += prachy;
        GivePlayerMoney(playerid,-prachy);
        SCM(playerid, -1, "PRAVĚ SI VLOŽIL VŠECHNY SVOJE PRACHY DO BANKY!");
		}
		return 1;
		}
		
		if(dialogid == 1005)
		{
		if(response == 1)
		{
			new id,Prachy;
   			if(sscanf(inputtext,"ii",id,Prachy)) return SCM(playerid, -1, "[!]Použití: <ID> <Castka>");
   			if(!IsNumeric(inputtext)) return SendClientMessage(playerid,-1,"Musíš zadať číselnú hodnotu !");
   			if(Prachy > PlayerBanks[playerid][pBank]) return SendClientMessage(playerid,-1,"Zle zadaná čiastka !");
            PlayerBanks[id][pBank] += Prachy;
            PlayerBanks[playerid][pBank] -= Prachy;
            SCM(playerid,-1,"Poslal ste hračovy peníze");
            SCM(id,-1, "Hrač vam posila penize do banky /info");
		}
		return 1;
		}
	return 1;
}

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{

	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}

public ZaplatTaxu(taxikarnik,zakaznik)
{
 	if(IsPlayerInAnyVehicle(GetPlayerVehicleID(taxikarnik)))
 	{

  		new vehicleid = GetPlayerVehicleID(taxikarnik);
  		if(IsPlayerInVehicle(vehicleid,zakaznik))
  		{

   			if(GetPlayerMoney(zakaznik) < taxa[zakaznik])
   			{

    			RemovePlayerFromVehicle(zakaznik);
    		}else{

			    GivePlayerMoney(zakaznik,-taxa[taxikarnik]);
			    GivePlayerMoney(taxikarnik,taxa[taxikarnik]);
			    SetTimerEx("ZaplatTaxu",5000,0,"i",taxikarnik,zakaznik);

    		}
		}
 	}
	return 1;
}

CMD:setadmin(playerid,params[])
{
	if(PlayerInfo[playerid][pAdmin] < 5 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xff0000aa,"notlevel");
	new level,pid;
	if(sscanf(params, "ui" ,pid,level)) return SCM(playerid,-1, "[ ! ]Použi /setadmin <ID > <level>");
	if(pid == INVALID_PLAYER_ID) return SCM(playerid,-1, "[ ! ]Hráč není připojený !" );
	if (level < 0 || level > 6) return SCM(playerid,-1 , "[ ! ]Lze nastavit pouze level 0-6" );

	new s[144];
		format(s, sizeof(s), "{ff0000}[ ! ]Majitel nebo Hl.Administrátor %s nastavil hráči %s [AdminLevel:{00ff00} %i {ff0000} ]", PlayerName(playerid), PlayerName(pid), level);
		SendClientMessageToAll(-1,s); /* Odešle zprávu */
	PlayerInfo[pid][pAdmin] = level;
	return 1;
}

CMD:tpa(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, red,notlevel);
	new tpaid;
	if(sscanf(params, "u", tpaid)) return SCM(playerid, -1,"[ ! ]Použí /tpa <id>");
	if(tpaid == INVALID_PLAYER_ID) return SCM(playerid,-1, "[ ! ]Hráč není připojený !" );
    new Float:X;
    new Float:Y;
    new Float:Z;
	GetPlayerPos(tpaid, X,Y,Z);
	SetPlayerPos(playerid, X,Y,Z + 5);
	return 1;
}

CMD:get(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, red,notlevel);
	new getid;
	if(sscanf(params, "u", getid)) return SCM(playerid,-1,"[ ! ]Použí /get <id>");
	if(getid == INVALID_PLAYER_ID) return SCM(playerid,-1,"[ ! ]Hrač neni připojený !");
    new Float:X;
    new Float:Y;
    new Float:Z;
	GetPlayerPos(playerid, X,Y,Z);
	SetPlayerPos(getid, X,Y,Z + 5);
	return 1;
}

CMD:aban(playerid, params[])
{
    new id, reason[170];
	if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, red,notlevel);
	else if(sscanf(params, "us", id, reason))SendClientMessage(playerid, -1, "Použij: /ban [ID][Duvod]");
	else if(id==playerid)SendClientMessage(playerid,-1,"Nemůžeš Zabanovat sám sebe!!");
	else if(id==PlayerInfo[id][pAdmin])SendClientMessage(playerid,red,"Nemůžeš Zabanovat kolegu");
	else if (id==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"Hráč není připojen!!");
	else {
	new Name[MAX_PLAYER_NAME], KickMessage[128];
	new Name2[MAX_PLAYER_NAME];
	GetPlayerName(playerid, Name, sizeof(Name));
	GetPlayerName(id, Name2, sizeof(Name2));
	format(KickMessage, sizeof(KickMessage), "{ff0000}Administátor {00ffff}%s {ff0000}dal Ban hráči {00ffff}%s {ff0000}[ Dôvod: %s ]", Name, Name2, reason);
	SendClientMessageToAll(-1, KickMessage);
	Banid[id][pBan] = 1;
	Kick(id);
}
	return 1;
}

CMD:aunban(playerid, params[])
{
    new username;
    if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, red,notlevel);
 	if(sscanf(params, "s" ,username)) return SCM(playerid,-1,"[ ! ]Použí /unban <nick>");
 	if(PlayerInfo[username][pBan] == 1) return SendClientMessage(playerid,-1,"[ BAN System ] Hráč nemá ban!");
		{
  	new s[500];
		format(s, sizeof(s),  "{ff0000}[ ! ]Administrátor %s Dal UnBan hráči %s !!", PlayerName(playerid),username);
		SendClientMessageToAll(red,s);
		Banid[username][pBan] = 0;
		}
	return 1;
}

/*
CMD:ipban(playerid, params[])
{
    new ip,days,send;
	if(sscanf(params, "uic" ,ip,days,send)) return SCM(playerid,-1,"[ ! ]Piuží /ipban <ip> <cas banu> <zaco dostal ipban>");
	if (days < 60 || days > 432000) return SCM(playerid,-1 , "[ ! ]Lze nastavit pouze cas(sekundy 60(1min)-86400(1day)-432000(5day)" );
	new s[124];
	format(s, sizeof(s),  "{ff0000}[ ! ]Administrátor %s Dal IpBan hráči %s [na{00ff00} %i {ff0000}sec ] Duvod:> %s <!!", PlayerName(playerid), ip,days,send);
	SendClientMessageToAll(-1,s);
	BanIP(ip,days,send,PlayerName(playerid));
	return 1;
}

CMD:unipban(playerid, params[])
{
    new ip;
	if(sscanf(params, "u" ,ip)) return SCM(playerid,-1,"[ ! ]Piuží /unipban <ip>");
	new s[124];
	format(s, sizeof(s),  "{ff0000}[ ! ]Administrátor %s Dal UnIpBan hráči %s !!", PlayerName(playerid), ip);
	SendClientMessageToAll(-1,s);
	UnbanIP(ip);
	return 1;
}
*/
CMD:setvip(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, -1,"Bohužel nemáš dostatečná práva!!");
	new PiD,Vip;
	if(sscanf(params, "ui" ,PiD,Vip)) return SCM(playerid, -1,"Špatně napsaný příkaz: /setvip <ID> <V.I.P_ID> ID: 0 -normal,1 -vip,2 -extravip");
	if(PiD == INVALID_PLAYER_ID) return SCM(playerid,-1, "[ ! ]Hráč není připojený !" );
	if (Vip < 0 || Vip > 2) return SCM(playerid,-1 , "[ ! ]Lze nastavit pouze V.I.P: 0-2!" );
	new s[144];
	format(s, sizeof(s), "{ff0000}[ ! ]Hl. Administrátor %s nastavil hráči %s [Premium:{00ff00} %i {ff0000} ]", PlayerName(playerid), PlayerName(PiD), Vip);
	SendClientMessageToAll(-1,s); /* Odešle zprávu */
	Premium[PiD][pVIP] = Vip;
	return 1;
}
CMD:pay(playerid, params[])
{
	new id, money;
	if(sscanf(params, "ii", id, money)) return SCM(playerid, -1, "Špatně napsaný příkaz: /money <ID> <MONEY> !");
	if (id == INVALID_PLAYER_ID) return SCM(playerid,-1, "Špatně napsané ID hráče !");
	if (money < 1 || money > 100000) return SCM(playerid,-1, "Lze odeslat jen 1-10000 $");
	if(GetPlayerMoney(playerid) < money) return SCM(playerid,-1, "Nemáte dostatek peněz");
	if(id == playerid) return SCM(playerid,-1, "Nemůžete odesílat peníze sám sobě");
	new paymsg[133], payMsgs[133];
	format(paymsg, sizeof(paymsg), "[Pay]Poslal jsi hračovi %s častku: %d$ !", PlayerName(id),money);
	SCM(playerid, -1, paymsg);
	format(payMsgs, sizeof(payMsgs),"[Pay]Hráč %s  vám poslal %s častku: %d$ !" , PlayerName(playerid), money);
	SCM(id, -1, payMsgs);
	GivePlayerMoney(id, money);
	GivePlayerMoney(playerid, -money);
	return 1;
}

CMD:pm(playerid, params[])
{
	new pmid, pmtext[130];
	if(sscanf(params, "us", pmid, pmtext)) return SCM(playerid, -1, "[ ! ]Špatně napsaný příkaz: /pm <ID> <TEXT> !");
	if (pmid == INVALID_PLAYER_ID) return SCM(playerid, -1, "[ ! ] Hráč neni připojený / Špatně napsané ID hráče !");
	if(pmid == playerid) return SCM(playerid , -1, "[ ! ]Nemůžete odesílat PM sám sobě!");
	new pmtexta[130], pmtexts[130];
	format(pmtexts, sizeof(pmtexts), "{ffff00}[PM]Od Hráče %s(%d): %s", PlayerName(playerid),playerid, pmtext);
	SendClientMessage(pmid, -1, pmtexts);
	format(pmtexta, sizeof(pmtexta),"{ffff00}[PM]Pro Hráče %s(%d): %s", PlayerName(pmid),pmid, pmtext);
	SendClientMessage(playerid, -1, pmtexta);
	return 1;
}

CMD:admin(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, 0xff0000aa, "[ ! ]Nejste Admin a byste mohl použit tento příkaz !");
    new s[1200];
        strcat(s,""r"{ccff00}=====================================[{ff0000}AdminPřikazy{ccff00}]=====================================\n");
		strcat(s,""r" \t{ff0000}AdminLevel 1{00ff00}:{ffffff}/ahouse , /admin , /ann , /f , /tpa , /odpoved , /amechanik , /sdotaz\n");
        strcat(s,""r" \t{ff0000}AdminLevel 2{00ff00}:{ffffff}/asetskin , /vchat , /raut , /get , /dann\n");
        strcat(s,""r" \t{ff0000}AdminLevel 3{00ff00}:{ffffff}/aauto , /heals , /dann , /eodmeny , /ban , /unban , /svet , /kick , /jtpc\n");
        strcat(s,""r" \t{ff0000}AdminLevel 4{00ff00}:{ffffff}/givecash , /rpmoney , /djs , /setvip\n");
        strcat(s,""r" \t{ff0000}AdminLevel 5{00ff00}:{ffffff}/setvip , /port , /aheals , /rsvr , /doklady , /cobject\n");
		strcat(s,""r" \t{ff0000}AdminLevel 6+RCON{00ff00}:{ffffff}/setadmin , all(prikazy)\n");
        strcat(s,""r"{ccff00}=========================================================================================================\n");
	ShowPlayerDialogEx(playerid, 14, DIALOG_STYLE_MSGBOX, "Admin Příkazy", s,"Ano", "Cancel");
	return 1;
}

CMD:tploc(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 3 ) return SCM(playerid, red, notlevel);
	SetPlayerPos(playerid, 211.4185,1810.4886,21.8672);
	return 1;
}

CMD:amechanik(playerid, params[])
{
        if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, 0xff0000aa, "[ ! ]Nejste Admin !");
		if(IsPlayerInAnyVehicle(playerid))
        {
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, 0x33AA33AA, "[ ! ]Admin Mechanik >Tvoje auto bylo úspěšně opraveno za 0$!");
        }
        else SendClientMessage(playerid, 0xAA3333AA, "Nejsi v Autě!");
        return 1;
}

CMD:givecash(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, 0xff0000aa, "[ ! ]Nejste Admin abyste mohl použit tuto pujčku !");
	new ids, moneys;
	if(sscanf(params, "ii", ids,moneys)) return SCM(playerid, -1, "[ ! ]Špatně napsaný příkaz: /givecash <ID> <MONEY> !");
	if (ids == INVALID_PLAYER_ID) return SCM(playerid, -1,"[ ! ]Špatné ID hrače");
	if (moneys < 1 || moneys > 5000000) return SCM(playerid, -1, "[ ! ]Lze si pujčit jen 1$-5.000.000$");
	new apujckamsg[132];
	format(apujckamsg, sizeof(apujckamsg), "{66ff00}[{99ff00}AdminPujčka{66ff00}]{ffff00}Pujčil sis: {ff0000}%d {00ff00}$" , moneys);
	SCM(playerid, -1, apujckamsg);
	GivePlayerMoney(ids,moneys);
	return 1;
}

CMD:aauto(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, 0xff0000aa, "[ ! ]Nejste Admin abyste mohl použit /aauto !");
	new carid, farba1, farba2;
	if(sscanf(params, "iii", carid, farba1, farba2)) return SCM(playerid, -1, "[AdminAuto]Špatně napsaný příkaz: /aauto <ID> <barva1> <barva2>");
	if (carid < 400 || carid > 611) return SCM(playerid, -1, "[ ! ]Lze si vybrat jen z carID: 400 až 611");
	new caridmsg[134];
	format(caridmsg, sizeof(caridmsg), "[AdminAuto]Portnul sis Vozidlo ID: %d", carid);
	SCM(playerid, -1, caridmsg);
	new Float:X;
    new Float:Y;
    new Float:Z;
    GetPlayerPos(playerid,X,Y,Z);
    PutPlayerInVehicle(playerid,CreateVehicle(carid, X, Y+5, Z, farba1,farba2, 8000, 0),0);
	return 1;
}

CMD:autobarva(playerid, params[])
{
	if(Premium[playerid][pVIP] == 1 || Premium[playerid][pVIP] == 2)
	{
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
		{
		new CarId = GetPlayerVehicleID(playerid);
		new colors1, colors2;
		if(sscanf(params, "ii",colors1, colors2)) return SCM(playerid, -1, "Špatně napsany příkaz: /autobarva <barva1> <barva2>");
		ChangeVehicleColor(CarId, colors1, colors2);
		new informationschangecolor[150];
		format(informationschangecolor,sizeof(informationschangecolor),"Barva vozidla změnena na barvu:( %d )__( %d )!", colors1,colors2);
		SCM(playerid, -1, informationschangecolor);
		}
	}
	return 1;
}

CMD:asetskin(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, 0xff0000aa, "[ ! ]Nejste Admin abyste mohl použit /asetskin !");
	new idp, skinid;
	if(sscanf(params, "ii", idp, skinid)) return SCM(playerid,-1,"[AdminSetSkin]Špatně napsaný příkaz: /asetskin <ID> <SkinID>");
	if (skinid < 0 || skinid > 311 ) return SCM(playerid, -1,"[ ! ]Lze si vybrat jen z skinID: 0 až 311");
	SetPlayerSkin(idp,skinid);
	PlayerInfo[idp][pSkin] = skinid;
	new skinmsg[135];
	format(skinmsg, sizeof(skinmsg), "[AdminSetSkin]Pravě si nastavil hrači %s skin: %d!", PlayerName(idp), skinid);
	SCM(playerid,-1,skinmsg);
	new idpmsg[135];
	format(idpmsg, sizeof(idpmsg), "{ff0000}Administrator %s ti nastavil SkinID: %d",PlayerName(playerid),skinid);
	SCM(idp,-1,idpmsg);
	return 1;
}

CMD:rpmoney(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, 0xff0000aa, "[ ! ]Nejste Admin abyste mohl použit /resetpmoney !");
	new respcashid;
	if(sscanf(params, "i", respcashid)) return SCM(playerid,-1,"[AdminSetSkin]Špatně napsaný příkaz: /rpmoney <ID>");
	new residmoney[137];
	format(residmoney, sizeof(residmoney), "[Admin]%s Odebral hrači: %s Penize", PlayerName(playerid),PlayerName(respcashid));
	SendClientMessageToAll(-1, residmoney);
	ResetPlayerMoney(respcashid);
	return 1;
}

CMD:premium(playerid , params[])
{
	if(Premium[playerid][pVIP] == 0)
	{
	new premiuminfo[500];
	format(premiuminfo, sizeof(premiuminfo), "Premium\tCena\tTvuj Kredit: %d", PlayerPoints[playerid][pKredit]);
	new vips[800];
	strcat(vips,premiuminfo);
	strcat(vips,"\nKlasicke Premium\t500\tKreditů");
	strcat(vips,"\nExtra Premium\t4320\t Kreditů");
	ShowPlayerDialog(playerid, 2000, 5,"Premium Info",vips,"OK","Cancel");
	}else{
	if(Premium[playerid][pVIP] == 1)
	{
	new vipk[600];
	strcat(vipk,"{ff0000}Warning:Tvé Premium je omezne než Premium Extra{ffffff}\n");
	strcat(vipk,"1.Portace do: /LS,/SF,/LV\n");
	strcat(vipk,"2.Změna barev na aute: /autobarva <barva1> <barva2>\n");
	strcat(vipk,"3.věčí vídělky");
	ShowPlayerDialogEx(playerid,2123,DIALOG_STYLE_MSGBOX,"Premium Klasik",vipk,"Rozumím","Cancel");
	}else{
	if(Premium[playerid][pVIP] == 2)
	{
	new vipe[800];
	strcat(vipe,"{ffffff}1.Portace do: /LS,/SF,/LV,/BS\n");
	strcat(vipe,"2.Změna barev na aute: /autobarva <barva1> <barva2>\n");
	strcat(vipe,"3.věčí vídělky\n");
	strcat(vipe,"4.jine skiny (premium skiny)\n");
	strcat(vipe,"5.dostupna jina vozidla\n");
	strcat(vipe,"6.psani barevne do chatu\n");
	strcat(vipe,"7.Pro otočení vozidla zmačkní:> {ff0000}N {ffffff}<");
	ShowPlayerDialogEx(playerid,2124,DIALOG_STYLE_MSGBOX,"Premium Extra",vipe,"Rozumím","Cancel");
	}
	}
	}
	return 1;
}

CMD:ls(playerid, params[])
{
if(Premium[playerid][pVIP] == 2)
{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vehicleid,481.4440,-1511.9784,20.2198);
	else SetPlayerPos(playerid,481.4440,-1511.9784,20.2198);
}
return 1;
}

CMD:ahouse(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, red , notlevel);
{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vehicleid,-2847.9951,2769.4617,243.3178);
	else SetPlayerPos(playerid,-2847.9951,2769.4617,243.3178);
}
return 1;
}

CMD:sf(playerid, params[])
{
if(Premium[playerid][pVIP] == 2)
{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vehicleid,-1948.1504,576.0588,35.1719);
	else SetPlayerPos(playerid,-1948.1504,576.0588,35.1719);
}
return 1;
}

CMD:lv(playerid,params[])
{
if(Premium[playerid][pVIP] == 2)
{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vehicleid,2136.1208,1435.3916,10.8203);
	else SetPlayerPos(playerid,2136.1208,1435.3916,10.8203);
}
return 1;
}

CMD:bs(playerid, params[])
{
if(Premium[playerid][pVIP] == 2)
{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vehicleid,-2263.0327,2305.5620,5.8353);
	else SetPlayerPos(playerid,-2263.0327,2305.5620,5.8353);
}
return 1;
}

CMD:stuntsf(playerid, params[])
{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vehicleid,-2164.5288,-191.8823,35.0473);
	else SetPlayerPos(playerid,-2164.5288,-191.8823,35.0473);
	return 1;
}

CMD:randoms(playerid , params[])
{
	if(PlayerPoints[playerid][pKredit] < 10) return SCM(playerid, -1 , "nemaš 10 Kreditů");
	GivePlayerWeapon(playerid, 30, 500);
	PlayerPoints[playerid][pKredit] -= 10;
	SCM(playerid, -1, "Pravě sis koupil random zbran za 10 Kreditu.");
	return 1;
}

CMD:heals(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, -1, notlevel);
	new id;
 	if(sscanf(params, "i", id)) return SCM(playerid, -1, "[ Heal ]špatně napsany příkaz: /aheal <ID>");
 	if (id == INVALID_PLAYER_ID) return SCM(playerid,-1, "[ Heal ]Špatně napsané ID hráče !");
	SetPlayerHealth(id, 100);
	return 1;
}
CMD:aheals(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, -1, notlevel);
 	new id;
 	if(sscanf(params, "i", id)) return SCM(playerid, -1, "[ Heal ]špatně napsany příkaz: /aheal <ID>");
 	if (id == INVALID_PLAYER_ID) return SCM(playerid,-1, "[ Heal ]Špatně napsané ID hráče !");
	SetPlayerHealth(id, 100);
	SetPlayerArmour(id, 100);
	return 1;
}

CMD:info(playerid, params[])
{
	ShowPlayerDialogEx(playerid, 6652, 4, "{ff0000}Informace","Info\nUcet\nHelp\nKontakt\nWebova Stranka","{00ff00}Vybrat","{ff0000}X");
	return 1;
}

CMD:port_pvp(playerid, params[])
{
    ShowPlayerDialogEx(playerid, 9999 , 1, "PVP PORT","chces do pvp mame tu jen pvp na lodi. \n napiš: Blue / Red","Potvrdit","Cancel");
	return 1;
}

CMD:jtpc(playerid, params[])
{
	new id;
	if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, -1, "Tento Příkaz /jtpc neexistuje");
	if(sscanf(params,"u",id)) return SCM(playerid, -1, "[!]Použití: /jtpc <id>");
	SetPlayerSpecialAction(id ,SPECIAL_ACTION_USEJETPACK);
	new s[150];
	format(s,sizeof(s), "Pravě si dal hračovy %s JetPack", PlayerName(id));
	SCM(playerid, red, s);
	return 1;
}

CMD:novinky(playerid, params[])
{
	new news[1300];
	strcat(news, "{ffffff}15.12.2016\tnews\t{ff0000}TedakCZE\n{ffffff}\n");
	strcat(news, "Nazdar tímto vám oznamujem  že jsme přidaly neake příkazy.\n");
	strcat(news, "{ffffff}15.12.2016\tUpDate\t{ff0000}TedakCZE\n{ffffff}\n");
	strcat(news, "Nazdar Pravě jsme přidaly Vozidla, děkujeme že hrajete na na šem serveru.\n");
	ShowPlayerDialogEx(playerid, 110 , DIALOG_STYLE_MSGBOX, "Update: novinky",news,"Beru na vědomí","");
	return 1;
}

CMD:vchat(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, 0xff0000aa, "[ ! ]Nejste Admin abyste mohl vymazat chat !");
	{
	    for (new i; i < 100; i++)
	    {
	    SendClientMessageToAll(-1," ");
	    }
		new clearchat[128];
		format(clearchat,sizeof(clearchat),"{ff0000}Administrator {00ffff}%s{ff0000} Vymazal Chat",PlayerName(playerid));
		SendClientMessageToAll(-1,clearchat);
	}
	return 1;
}

CMD:afk(playerid, params[])
{
    #pragma unused params
    if(AFK[playerid] == 0)
		{
		new string[128];
		new name[MAX_PLAYER_NAME];
		GetPlayerName(playerid, name, sizeof(name));
		format(string,128,"Hráč %s je AFK !",name);
		SendClientMessageToAll(0xff0000aa,string);
		TogglePlayerControllable(playerid,0);
		PlayerInfo[playerid][fFunkce] = 8;
		AFK[playerid] = 1;
		new Float:X, Float:Y, Float:Z;
		GetPlayerPos(playerid, X,Y,Z);
		AFKP = CreatePlayer3DTextLabel(playerid,"Hráč je AFK!",0xff0000aa,X,Y,Z, 180.0);
	}
	else
	{
	if(AFK[playerid] == 1)
		{
		new string[128];
		new name[MAX_PLAYER_NAME];
		GetPlayerName(playerid, name, sizeof(name));
		format(string,128,"Hráč %s neni AFK !",name);
		SendClientMessageToAll(0xff0000aa,string);
		TogglePlayerControllable(playerid,1);
		PlayerInfo[playerid][fFunkce] = 0;
		AFK[playerid] = 0;
		DeletePlayer3DTextLabel(playerid, AFKP);
		}
	}
	return 1;
}

CMD:dotaz(playerid, params[])
{
	if (DotazID[playerid] == 0)
			{
	if (!strlen(params)) return SendClientMessage(playerid, -1, "[  !  ] Použi: /dotaz [ OTÁZKA ] !");
	new
		Nick[MAX_PLAYER_NAME+1],
		String[145];
	GetPlayerName(playerid, Nick, MAX_PLAYER_NAME+1);
	format(String, sizeof(String), "Dotaz od %s(%d):{ffff00} %s", Nick,playerid, params);
	for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) {

		if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] >= 1) {

			SendClientMessage(i, 0xFF000000, String);
			}
		}
	SendClientMessage(playerid, -1, "[  !  ] Administrátor je zaneprážnění člověk odpoved na váš dotaz nemusí přijít hned!");
	DotazID[playerid] = 1;
	}else{
		if (DotazID[playerid] == 1)
		{
		SCM(playerid, red,"[  !  ] Administrátor ti ještě neodpověděl na Dotaz!");
		}
	}
	return 1;
}

CMD:taxi(playerid, params[])
{
	if (TaxiID[playerid] == 0)
			{
	if (!strlen(params)) return SendClientMessage(playerid, -1, "[  !  ] Použi: /dotaz [ OTÁZKA ] !");
	new
		Nick[MAX_PLAYER_NAME+1],
		String[145];
	GetPlayerName(playerid, Nick, MAX_PLAYER_NAME+1);
	format(String, sizeof(String), "{6633ff}Hráč {ffffff}%s(%d) {6633ff}si volá taxíka (V Bance má %d$)", Nick,playerid, PlayerBanks[playerid][pBank]);
	for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) {

		if(IsPlayerConnected(i) && povolani[i][pJobs] == 3) {

			SendClientMessage(i, 0xFF000000, String);
			}
		}
	SendClientMessage(playerid, -1, "{ffff00}Pravě ste si zavolal Taxíkáře!");
	TaxiID[playerid] = 1;
	}else{
		if (TaxiID[playerid] == 1)
		{
		SCM(playerid, red,"{ff0000}Už máte objědnanou službu!");
		}
	}
	return 1;
}

CMD:mechanik(playerid, params[])
{
	if (MechanikID[playerid] == 0)
			{
	if (!strlen(params)) return SendClientMessage(playerid, -1, "[  !  ] Použi: /dotaz [ OTÁZKA ] !");
	new
		Nick[MAX_PLAYER_NAME+1],
		String[145];
	GetPlayerName(playerid, Nick, MAX_PLAYER_NAME+1);
	format(String, sizeof(String), "{6633ff}Hráč {ffffff}%s(%d) {6633ff}si volá Mechanika (V Bance má %d$)", Nick,playerid, PlayerBanks[playerid][pBank]);
	for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) {

		if(IsPlayerConnected(i) && povolani[i][pJobs] == 4) {

			SendClientMessage(i, 0xFF000000, String);
			}
		}
	SendClientMessage(playerid, -1, "{ffff00}Pravě ste si zavolal Mechanika!");
	MechanikID[playerid] = 1;
	}else{
		if (MechanikID[playerid] == 1)
		{
		SCM(playerid, red,"{ff0000}Už máte objědnanou službu!");
		}
	}
	return 1;
}

CMD:zakaznik(playerid, params[]) {

    new
		pIDName;

 if (povolani[playerid][pJobs] == 3)
	    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 438 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
				{
	if (PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "[ ! ] Nemáte spravny Jobs!");
	if (sscanf(params, "u", pIDName)) return SendClientMessage(playerid, -1, "[ ! ] Použití: /zakaznik [ID/Jméno hráče]");
	if (pIDName == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "[ ! ] Hráč zadaným ID neni na serveru !");
	new Float:X;
	new Float:Y;
	new Float:Z;
	GetPlayerPos(pIDName, X,Y,Z);
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vehicleid, X,Y,Z);
	PutPlayerInVehicle(pIDName, vehicleid, 1);
	new
		Nick[MAX_PLAYER_NAME+1],
		String[145];
	GetPlayerName(playerid, Nick, MAX_PLAYER_NAME+1);
	format(String, sizeof(String), "Hráč %s Se za tebou portnul\n\n napiš mu kam chceš jet nebo muto označ \n nebo použí /gotaxi", Nick);
	ShowPlayerDialogEx(pIDName, 2435, DIALOG_STYLE_MSGBOX,"{ffff00}Taxi",String,"Zavrit","");
		TaxiID[pIDName] = 0;
				}
		}else if(TaxiID[pIDName] == 0)
		 		{
					SCM(playerid, -1, "Hráč nemá objednanou službu / Stahnul Službu / někdo už ho obsluhuje!");
		 		}
if (povolani[playerid][pJobs] == 4)
	    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 531)
				{
	if (PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "[ ! ] Nemáte spravny Jobs!");
	if (sscanf(params, "u", pIDName)) return SendClientMessage(playerid, -1, "[ ! ] Použití: /zakaznik [ID/Jméno hráče]");
	if (pIDName == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "[ ! ] Hráč zadaným ID neni na serveru !");
 	new Float:X;
	new Float:Y;
	new Float:Z;
	GetPlayerPos(pIDName, X,Y,Z);
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vehicleid, X,Y+6,Z);
	new
		Nick[MAX_PLAYER_NAME+1],
		String[145];
	GetPlayerName(playerid, Nick, MAX_PLAYER_NAME+1);
	format(String, sizeof(String), "Hráč %s Se za tebou portnul\n\n napiš /Opravit id", Nick);
	ShowPlayerDialogEx(pIDName, 2435, DIALOG_STYLE_MSGBOX,"{ffff00}Taxi",String,"Zavrit","");
		MechanikID[pIDName] = 0;
				}
		}else if(MechanikID[pIDName] == 0)
		 		{
					SCM(playerid, -1, "Hráč nemá objednanou službu / Stahnul Službu / někdo už ho obsluhuje!");
		 		}
	return 1;
}

CMD:taxa(playerid, params[])
{
    if(povolani[playerid][pJobs] != 3) return SendClientMessage(playerid,RED,"[ ! ] Musíš být taxikář !");
	if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,RED,"[ ! ] Musíš být v autě !");
	ShowPlayerDialog(playerid,23,DIALOG_STYLE_INPUT,"Taxa","Napiš cenu za 5 sec","Uložit","Konec");
	#pragma unused params
	return 1;
}

CMD:opravit(playerid, params[])
{
	new idmechanika;
	if(sscanf(params, "u",idmechanika)) return SCM(playerid, -1, "[!]Použiti: /opravit <id-mechanika>");
	if(povolani[idmechanika][pJobs] <= 4)SendClientMessage(playerid, -1, "Hrač změnil zaměstnani");
	new Float:X;
	new Float:Y;
	new Float:Z;
	GetPlayerPos(idmechanika, X,Y,Z);
	if(!IsPlayerInRangeOfPoint(playerid,10, X,Y,Z)) return SCM(playerid, -1,"nejsi u mechanika");
	{
	    RepairVehicle(GetPlayerVehicleID(playerid));
	}
	return 1;
}

CMD:sdotaz(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, red, notlevel);
	    new pIDName, say[136], Nick[MAX_PLAYER_NAME+1];
	    if(sscanf(params, "us",pIDName,say)) return SCM(playerid,-1,"Špatně zadaný příkaz: /sdotaz <id> <duvod>");
        GetPlayerName(pIDName, Nick, MAX_PLAYER_NAME+1);
		new saya[120];
		format(saya, sizeof(saya), "Administátor %s Smazal Dotaz hrači %s [Duvod: %s]", PlayerName(playerid),Nick,say);
		SendClientMessageToAll(red, saya);
		DotazID[pIDName] = 0;
	return 1;
}

CMD:odpoved(playerid, params[]) {

	new
		pIDName,
		pOdpoved[136];
	if (PlayerInfo[playerid][fFunkce] == 3)
	    {
	if (PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "[ ! ] Nemáte Administrátorská pravá!");
	if (sscanf(params, "us", pIDName, pOdpoved)) return SendClientMessage(playerid, -1, "[ ! ] Použití: /odpoved [ID/Jméno hráče] [ODPOVĚD]");
	if (pIDName == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "[ ! ] Hráč zadaným ID neni na serveru !");	new
		Nick[MAX_PLAYER_NAME+1],
		String[145];
	GetPlayerName(playerid, Nick, MAX_PLAYER_NAME+1);
	format(String, sizeof(String), "{00ffff}Admin {ff0000}%s {00ffff}vám odpovídá:\n\n {00ff00}%s", Nick, pOdpoved);
	ShowPlayerDialogEx(pIDName, 2435, DIALOG_STYLE_MSGBOX,"{ffff00}Odpověd na dotaz",String,"Zavrit","");
		DotazID[pIDName] = 0;
		}
	return 1;
}

CMD:djs(playerid, params[])
{
	if(PlayerInfo[playerid][fFunkce] == 2) return SendClientMessage(playerid, -1, "Nemáš nato Funkci");
		if(DJ[playerid] == 0)
		{
		    DJ[playerid] = 1;
	        for( new u; u < MAX_PLAYER_NAME; u++ )
	        {
	            PlayAudioStreamForPlayer(u, "http://myradiostream.com/35/14706");
			}
		}
	else
		{
		if(DJ[playerid] == 1)
		{
				SCM(playerid, 0xff0000,"Vypnul si sobe Radio a nechal hracum zaple!");
	            StopAudioStreamForPlayer(playerid);
	            DJ[playerid] = 0;
		}
	}
	return 1;
}

CMD:achat(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,red,notlevel);
	new chat[127];
	if(sscanf(params, "s", chat)) return SCM(playerid, -1, "[!]Použití: /achat <text>");
	new zprava[147];
	new nick[MAX_PLAYER_NAME+1];
	GetPlayerName(playerid,nick,MAX_PLAYER_NAME+1);
	format(zprava,sizeof(zprava), "Administrátor: %s : %s",nick,chat);
	SendClientMessageToAll(0xff0000aa,zprava);
	return 1;
}

CMD:ann(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, notlevel);
		{
    new string[256];
	if(IsPlayerConnected(playerid)){
	if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Pouziti: /ann [TEXT]");
	if(ann_aktivace==1){
	KillTimer(timer_ann);
	for(new i=0;i<= GetMaxPlayers();i++) TextDrawHideForPlayer(i,Ann);
	}
	format(string,sizeof(string),"~w~%s",params);
	timer_ann = SetTimer("Ann_end",4000,0);
	TextDrawSetString(Ann,string);
	for(new i=0;i<= GetMaxPlayers();i++) TextDrawShowForPlayer(i,Ann);
	ann_aktivace=1;
		}
	}
	return 1;
}

CMD:reloadtext(playerid, params[])
{
	TextDrawHideForPlayer(playerid, Text:JobsJoineds);
	TextDrawHideForPlayer(playerid, Text:JobsJoins);
	TextDrawHideForPlayer(playerid, Text:JobsJoinedsbox);
	TextDrawHideForPlayer(playerid, Text:JobsJoinsbox);
	SCM(playerid,-1,"{00ff00}Reload Success");
	return 1;
}

CMD:dann(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, -1, notlevel);
		{
	new string[256];
	if(IsPlayerConnected(playerid)){
	if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Pouziti: /dann [TEXT]");
	if(dann_aktivace==1){
	KillTimer(timer_dann);
	for(new i=0;i<= GetMaxPlayers();i++) TextDrawHideForPlayer(i,Dann);
	}
	format(string,sizeof(string),"~w~%s",params);
	timer_dann = SetTimer("Dann_end",4000,0);
	TextDrawSetString(Dann,string);
	for(new i=0;i<= GetMaxPlayers();i++) TextDrawShowForPlayer(i,Dann);
	dann_aktivace=1;
		}
	}
	return 1;
}

CMD:akick(playerid, params[])
{
    new id, reason[170];
	if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, red,"Nejste admin!");
	else if(sscanf(params, "us", id, reason))SendClientMessage(playerid, -1, "Použij: /kick [ID][Duvod]");
	else if(id==playerid)SendClientMessage(playerid,-1,"Nemůžeš Zabanovat sám sebe!!");
	else if (id==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"Hráč není připojen!!");
	else if(id==PlayerInfo[id][pAdmin])SendClientMessage(playerid,red,"Nemůžeš Zabanovat kolegu");
	else if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, red, "Nemužeš zabanovat Admina");
	else {
	new Name[MAX_PLAYER_NAME], KickMessage[150];
	new Name2[MAX_PLAYER_NAME];
	GetPlayerName(playerid, Name, sizeof(Name));
	GetPlayerName(id, Name2, sizeof(Name2));
	format(KickMessage, sizeof(KickMessage), "{ff0000}Administátor {00ffff}%s {ff0000}dal kick hráči {00ffff}%s [ Dôvod: %s ]", Name, Name2, reason);
	SendClientMessageToAll(-1, KickMessage);
	SCM(id, -1, KickMessage);
	Kick(id);
	}
    return 1;
}

CMD:radio(playerid, params[])
{
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
		{
		new or[510];
		strcat(or,"\t{ffffff}Vyber si Radio\n");
		strcat(or,"\t{ffff00}CZ Radio\n");
		strcat(or,"\t{ffff00}Server Radio\n");
		strcat(or,"\t{ffff00}SK Radio\n");
		strcat(or,"\t{ff0000}Vypnout");
		ShowPlayerDialogEx(playerid, 369, 5,"Online Radio",or,"Vybrat","Zavrit");
		}
		else
			{
			SCM(playerid,-1,"[/Radio]{ff0000}Bohužel nejsi ve Vozidle!!");
			}
	return 1;
}

CMD:garaz(playerid, params[])
{
	new s[600];
	strcat(s,"Vozidlo:\n");
	new ss[400];
 	format(ss,sizeof(ss),"0)%d",VehInfo[playerid][vCarId]);
	strcat(s,ss);
	ShowPlayerDialog(playerid,3571,5,"Garaz",s,"Vybrat","Spatky");
	return 1;
}

CMD:savecar(playerid, params[])
{
	if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, 0xff0000aa,"[!]Bohužel nejsi ve vozidle!");
	if(VehInfo[playerid][vCarOwner])
	{
		new Float:X;
		new Float:Y;
		new Float:Z;
		new Float:R;
		GetVehiclePos(VehInfo[playerid][vCarId],X,Y,Z);
		GetVehicleZAngle(VehInfo[playerid][vCarId], R);
		SetVehiclePos(VehInfo[playerid][vCarId],X, Y, Z);
		VehInfo[playerid][vCarX] = X;
		VehInfo[playerid][vCarY] = Y;
		VehInfo[playerid][vCarZ] = Z;
		VehInfo[playerid][vCarR] = R;
		new INI:Garage = INI_Open(CarPath(playerid));
		INI_SetTag(Garage,"CarsData");
		INI_WriteFloat(Garage,"X",VehInfo[playerid][vCarX]);
		INI_WriteFloat(Garage,"Y",VehInfo[playerid][vCarY]);
		INI_WriteFloat(Garage,"Z",VehInfo[playerid][vCarZ]);
		INI_WriteFloat(Garage,"R",VehInfo[playerid][vCarR]);
		INI_Close(Garage);
		SCM(playerid, 0x00ff00aa, "[!]Vozidlo Zaparkovano !!");
	}
	else
	{
	SCM(playerid,0xff0000aa, "[!]Sorry nevlastníš vozidlo!!");
	}
	return 1;
}

CMD:kill(playerid, params[])
{
	SCM(playerid,-1,"{00ffff}za {ff0000}5 {00ffff}sec spácháš sebevraždu!");
	SetTimerEx("killing", 5000, false, "i", playerid);
	return 1;
}


CMD:vypoved(playerid, params[])
{
	if(povolani[playerid][pJobs] < 1) return SCM(playerid, red, "Nemužeš dát vypoved");
	povolani[playerid][pJobs] = 0;
	SetPlayerColor(playerid, 0xffffffaa);
	SCM(playerid, -1, "Pravě si dál vypověd v praci hodně štěstí bezďaku! /zebrat");
	return 1;
}

CMD:nastaveni(playerid, params[])
{
    new str[256];
	new string[350];

                    format(str,sizeof(str),"{ffff00}Připojovaní hraču\t",PlayerInfo[playerid][nJoin]);
                    strcat(string,str);
					if(PlayerInfo[playerid][nJoin] == 0)
					{
				 	strcat(string,"ON\n");
					}
				else
				    if(PlayerInfo[playerid][nJoin] == 1)
					{
					strcat(string,"OFF\n");
					}


                    format(str,sizeof(str),"{ffff00}Odchazeni  hraču%s\t",PlayerInfo[playerid][nClose]);
                    strcat(string,str);
                	if(PlayerInfo[playerid][nClose] == 0)
					{
				 	strcat(string,"ON\n");
					}
				else
				    if(PlayerInfo[playerid][nClose] == 1)
					{
					strcat(string,"OFF\n");
					}

                    format(str,sizeof(str),"{ffff00}Spawn u \t",PlayerInfo[playerid][nSpawn]);
                    strcat(string,str);
                    if(PlayerInfo[playerid][nSpawn] == 0)
					{
					strcat(string,"Bezdak\n");
					}
				else
                	if(PlayerInfo[playerid][nSpawn] == 1)
					{
					strcat(string,"Zamestnani\n");
					}
				else
					if(PlayerInfo[playerid][nSpawn] == 2)
					{
				 	strcat(string,"Firma\n");
					}
				else
				    if(PlayerInfo[playerid][nSpawn] == 3)
					{
					strcat(string,"Gang\n");
					}
				else
                	if(PlayerInfo[playerid][nSpawn] == 4)
					{
					strcat(string,"Dum\n");
					}
					
					new strsss[270];
					strcat(strsss, string);
					ShowPlayerDialogEx(playerid, 2147, 4,"Nastaveni",strsss,"Nastavit","Zavrit");
	return 1;
}


CMD:doklady(playerid, params[])
{
	new ids,rda,rdce;
		if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, 0xff0000aa, notlevel);
	if(sscanf(params,"uii",ids,rda,rdce)) return SCM(playerid,-1,"/doklady <id> <ridicakb> <ridicakce>");
	{
	new smsc[130];
	format(smsc, sizeof(smsc),"Administrátor %s dal Hrači %s doklady Řidičak: B(%d) a C+E(%d)", PlayerName(playerid),PlayerName(ids),rda,rdce);
	SendClientMessageToAll(0xff0000, smsc);
	AutoSkola[ids][pAsB] = rda;
	AutoSkola[ids][pAsCe] = rdce;
	}
	return 1;
}

CMD:rsvr(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, 0xff0000aa, notlevel);
	new resetserver[250];
	format(resetserver, sizeof(resetserver), "Administrator {00ffff}%s {ff0000}Resetoval Server",PlayerName(playerid));
	SendClientMessageToAll( 0xff0000aa, resetserver);
	SetTimerEx("RestartServers", 5000, false, "i", playerid);
	return 1;
}

CMD:svet(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, 0xff0000aa, notlevel);
	new world;
	if(sscanf(params, "i",world)) return SCM(playerid, -1, "{ff0000}[!]Příkaz: /svet <cislo sveta>");
	SetPlayerVirtualWorld(playerid, world);
    new svety[380];
    format(svety, sizeof(svety),"{00ffff}přesunul ses do světa čislo: {ff0000} %d!", world);
    SCM(playerid, -1, svety);
	return 1;
}

CMD:cobject(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, red, "[ ! ]Bohužel ento příkaz smí pouze Hl.Administátor + Majitel Serveru!");
	new idc;
	if(sscanf(params, "i", idc)) return SCM(playerid, red, "Špatně zadaný příkaz: /cobject <id>");
	new Float:X;
	new Float:Y;
	new Float:Z;
	GetPlayerPos(playerid,X,Y,Z);
	CreateObject( idc, X+10, Y, Z , 0.00000, 0.00000 , 0.00000, 0);
	new idobj[500];
	format(idobj,sizeof(idobj), "{ff0000}Administrátor{00ffff} %s {ff0000}Vytvořil Object [ID:{00ffff} %d{ff0000}] ", PlayerName(playerid),idc);
	SendClientMessageToAll(-1, idobj);
	return 1;
}

CMD:eodmeny(playerid, params[])
{
    new eid, eodmena, eduvod[145];
	new eodm[145];
	new Nick[MAX_PLAYER_NAME+1];
	if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, red,notlevel);
	if	(eid==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"Hráč není připojen!!");
	if(sscanf(params, "uis", eid, eodmena, eduvod)) return SCM(playerid,red,"Špatně zadaný příkaz: /eodmeny <id> <odmena> <duvod odmeny>");
	GetPlayerName(playerid, Nick, MAX_PLAYER_NAME+1);
	format(eodm, sizeof(eodm), "Administrátor %s udělyl Odměnu hrači %s[Duvod: %s]", Nick,PlayerName(eid) ,eduvod);
	new send[150];
	strcat(send, eodm);
	SendClientMessageToAll(red, send);
	PlayerBanks[eid][pBank] += eodmena;
	return 1;
}

CMD:odebratm(playerid, params[])
{
	new oid, openize, oduvod[145];
	new om[145];
	new Nick[MAX_PLAYER_NAME+1];
	if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, red, notlevel);
	if (oid==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"Hráč není připojen!!");
	if(sscanf(params, "uis", oid, openize, oduvod)) return SCM(playerid,red,"Špatně zadaný příkaz: /odebratm <id> <castka> <duvod>");
	GetPlayerName(playerid,Nick, MAX_PLAYER_NAME+1);
	format(om, sizeof(om), "{ff0000}Administrátor %s Odebral hračovi %s penize zbanky %d [Důvod: %s]",Nick,PlayerName(oid),openize,oduvod);
	SendClientMessageToAll(red,om);
	PlayerBanks[oid][pBank] -= openize;
	return 1;
}

CMD:zebrat(playerid, params[])
{
	if(povolani[playerid][pJobs] == 0)
	{
	    new zebratid;
	    if(sscanf(params, "u",zebratid)) return SCM(playerid, -1,"Špatně zadaný příkaz: /zebrat <id>");
	    {
	        new zebrot[150];
	        format(zebrot,sizeof(zebrot), "Bezdomovec %s(%d) tě žadá o nějaké drobné {aaffee}/darzebrakovi <id> <castka>", PlayerName(playerid),playerid);
			SCM(playerid, -1,"Pravě žebráš od hrače o peníze");
			SCM(zebratid, -1,zebrot);
		}
	}
	return 1;
}

CMD:darzebrakovi(playerid, params[])
{
	if(povolani[playerid][pJobs] >= 1)
	{
	    new id, castka;
		if(sscanf(params, "ui", id,castka)) return SCM(playerid,-1,"Špatně zadaný příkaz: /darzebrakovi <id> <castka>");
		new sayplayer[120],sayid[125];
		format(sayplayer, sizeof(sayplayer), "Daroval jste bezdakovi %s pár drobnych %d$", PlayerName(id),castka);
		format(sayid, sizeof(sayid),"Hráč %s ti daroval %d$ na jidlo a pití", PlayerName(playerid),castka);
		SCM(playerid,-1, sayplayer);
		SCM(id,-1, sayid);
		GivePlayerMoney(playerid, -castka);
		GivePlayerMoney(id, castka);
	}
	return 1;
}

CMD:garage(playerid, params[])
{
	new garages[MAX_PLAYERS] = 0;
	if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, red, notlevel);
		if(garages[playerid] == 0)
	 	{
	        garages[playerid] = 1;
			new string[50];
	        new movetime = MoveObject(dozorcegarage, 213.8999900,1875.6000000,10.4000000, 4.0);
	        format(string, sizeof(string), "Otevirani garaže Rychlost: %d milliseconds", movetime);
	        SendClientMessage(playerid, 0xFF000000, string);
	     }
     else if(garages[playerid] == 1)
	     {
	        garages[playerid] = 0;
	        new string[50];
	        new movetimes = MoveObject(dozorcegarage, 213.8999900,1875.6000000,14.7000000, 4.0);
	        format(string, sizeof(string), "Zavírani garaže Rychlost: %d milliseconds", movetimes);
	        SendClientMessage(playerid, 0xFF000000, string);
		 }
	return 1;
}

CMD:delcar(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, red, "[ ! ]Bohužel na tento prikaz nemas dostatecny adminlevel");
	DestroyVehicle(GetPlayerVehicleID(playerid));
	return 1;
}

CMD:giveweapon(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, red, notlevel);
	new id, idzbrane, naboje;
	if(sscanf(params,"ii",id, idzbrane, naboje)) return SCM(playerid, -1, "[!]Použiti: /giveweapon <id> <id-zbrane> <naboje>");
	GivePlayerWeapon(id, idzbrane, naboje);
	return 1;
}

CMD:jail(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,red, notlevel);
	new jailid,jailduvod[175],jailtime;
	new JailName[MAX_PLAYER_NAME+1];
	if(sscanf(params, "ids", jailid,jailtime,jailduvod)) return SCM(playerid, -1,"[!]Použití: /jail <ID> <Cas> <Duvod>");
    if	(jailid==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"Hráč není připojen!!");
	SetPlayerInterior(jailid, 6);
	PlayerInfo[jailid][pCela] = 1;
	SetPlayerPos(jailid, 264.1659,82.0855,1002.0391);
	TextDrawShowForPlayer(jailid, PozadiNazvu);
	TextDrawShowForPlayer(jailid, NazevVezen);
	TextDrawShowForPlayer(jailid, VezenDuvod);
	TextDrawShowForPlayer(jailid, Zatknul);
	TextDrawShowForPlayer(jailid, PlayerVezenDuvod);
	TextDrawShowForPlayer(jailid, PlayerZatknul);
	TextDrawSetString(PlayerVezenDuvod ,jailduvod);
	TextDrawSetString(PlayerZatknul ,PlayerName(playerid));
	SetTimerEx("unjail", jailtime, false, "i", jailid);
	new jailsay[145];
	GetPlayerName(jailid,JailName,MAX_PLAYER_NAME+1);
	format(jailsay,sizeof(jailsay), "{ff0000}Administrátor {00ffff}%s {ff0000}zatknul hrače {00ffff}%s {ff0000}na %d sec [duvod: %s]",PlayerName(playerid), JailName, jailtime, jailduvod);
	SendClientMessageToAll(-1,jailsay);
	return 1;
}

CMD:unjail(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,red, notlevel);
	new unjailid;
	new unjailduvod[145];
	new UnJailName[MAX_PLAYER_NAME+1];
	if(sscanf(params, "is", unjailid, unjailduvod)) return SCM(playerid, -1,"[!]Použití: /unjail <id> <duvod>");
    if	(unjailid==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"Hráč není připojen!!");
	SetPlayerInterior(unjailid, 3);
	SetPlayerPos(unjailid, 297.4843,183.2155,1008.2719);
	TextDrawHideForPlayer(unjailid, PozadiNazvu);
	TextDrawHideForPlayer(unjailid, NazevVezen);
	TextDrawHideForPlayer(unjailid, VezenDuvod);
	TextDrawHideForPlayer(unjailid, PlayerVezenDuvod);
	TextDrawHideForPlayer(unjailid, Zatknul);
	TextDrawHideForPlayer(unjailid, PlayerZatknul);
	PlayerInfo[unjailid][pCela] = 0;
	new UnJailSay[145];
	GetPlayerName(unjailid,UnJailName,MAX_PLAYER_NAME+1);
	SetTimerEx("unjail", 0, false, "i", unjailid);
	format(UnJailSay, sizeof(UnJailSay), "Administrátor %s Propustil hrače %s z vězení[duvod: %s]", PlayerName(playerid), UnJailName, unjailduvod);
	SendClientMessageToAll(red, UnJailSay);
	return 1;
}

CMD:hide(playerid, params[])
{
	if(Premium[playerid][pVIP] == 2)
	{
	    if(povolani[playerid][pJobs] == 1)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape schovan!");
    		SetPlayerColor(playerid, 0x33666600);
		}
		if(povolani[playerid][pJobs] == 2)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape schovan!");
    		SetPlayerColor(playerid, 0x33cc3300);
		}
		if(povolani[playerid][pJobs] == 3)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape schovan!");
			SetPlayerColor(playerid, 0xffff0000);
		}
		if(povolani[playerid][pJobs] == 4)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape schovan!");
    		SetPlayerColor(playerid, 0x33330000);
		}
		if(povolani[playerid][pJobs] == 5)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape schovan!");
    		SetPlayerColor(playerid, 0x00CCFF00);
		}
		if(povolani[playerid][pJobs] == 6)
		{
		    SCM(playerid, -1,"Tvuj nick byl na mape schovan!");
		    SetPlayerColor(playerid, 0x3333CC00);
		}
		if(povolani[playerid][pJobs] == 8)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape schovan!");
    		SetPlayerColor(playerid, 0x33333300);
		}
	}
	return 1;
}

CMD:funkce(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, 0xff0000, notlevel);
    new funkces[456];
    strcat(funkces, "ID: 0 = Zaneprázdnen\n");
    strcat(funkces, "ID: 1 = DJ\n");
    strcat(funkces, "ID: 2 = Řešeni Dotazu\n");
    strcat(funkces, "ID: 3 = Spravce Firem\n");
    strcat(funkces, "ID: 4 = Spravce Gangu\n");
    strcat(funkces, "ID: 5 = Spravce Podvodu\n");
    strcat(funkces, "ID: 6 = Spravce Strát\n");
    strcat(funkces, "ID: 7 = {ff0000}AFK");
    ShowPlayerDialogEx(playerid, 464186, DIALOG_STYLE_MSGBOX,"{ffff00}Funkce A-Team",funkces,"Zavrit","");
    return 1;
}

CMD:evortex(playerid, params[])
{
	SetPlayerPos(playerid,1544.5013,-1353.3010,329.4743);
	SCM(playerid, -1,"Vytvořil: TedakCZE Navrhl: danni01 Pomahal: Banny888");
	return 1;
}

CMD:unhide(playerid, params[])
{
	if(Premium[playerid][pVIP] == 2)
	{
	    if(povolani[playerid][pJobs] == 1)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape odhalen!");
    		SetPlayerColor(playerid, 0x336666aa);
		}
		if(povolani[playerid][pJobs] == 2)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape odhalen!");
    		SetPlayerColor(playerid, 0x33cc33aa);
		}
		if(povolani[playerid][pJobs] == 3)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape odhalen!");
			SetPlayerColor(playerid, 0xffff00ff);
		}
		if(povolani[playerid][pJobs] == 4)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape odhalen!");
    		SetPlayerColor(playerid, 0x333300ff);
		}
		if(povolani[playerid][pJobs] == 5)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape odhalen!");
    		SetPlayerColor(playerid, 0x00CCFFff);
		}
		if(povolani[playerid][pJobs] == 6)
		{
		    SCM(playerid, -1,"Tvuj nick byl na mape odhalen!");
		    SetPlayerColor(playerid, 0x3333CCff);
		}
		if(povolani[playerid][pJobs] == 8)
	    {
	    	SCM(playerid, -1,"Tvuj nick byl na mape odhalen!");
    		SetPlayerColor(playerid, 0x333333aa);
		}
	}
	return 1;
}

CMD:odpocet(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, red, notlevel);
	{
		new sec = strval(params);
		if(!sec) return SendClientMessage(playerid, -1, "[ ! ] Pouzi: /odpocet <cas>");
		if(sec > 60 || sec < 1) return SendClientMessage(playerid, -1, "[ ! ] Pouzi rozmedzie 1 - 60 sekund");
		else
		{
		   OdpocetCas = sec;
		   OdpocetTimer = SetTimer("Odpocet_CMD", 1000, true);
		}
	}
return 1;
}

CMD:givekredit(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, red,notlevel);
	new id,kreditpay;
	if(sscanf(params, "ii", id,kreditpay)) return SCM(playerid, red, "[!]Použití: /GiveKredit <id> <Kredit>");
	PlayerPoints[id][pKredit] = kreditpay;
	new says[50];
	format(says,sizeof(says),"Administátor %s ti Nastavil %d Kreditů!",PlayerName(playerid),kreditpay);
	SCM(playerid, red, says);
	return 1;
}

CMD:f(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, 0xff0000, notlevel);
	new cislo;
	if(sscanf(params, "i", cislo)) return SCM(playerid, 0xff0000, "/f <cislo funkce> !");
	PlayerInfo[playerid][fFunkce] = cislo;
	new sprava[120],string[135];
	format(sprava, sizeof(sprava), "{00ffff} Nastavil sis Funkci ID{ff0000}%d_",cislo,PlayerInfo[playerid][fFunkce]);
                    if(PlayerInfo[playerid][fFunkce] == 8)
					{
				 	strcat(string,"{ff0000}AFK");
					}
					if(PlayerInfo[playerid][fFunkce] == 1)
					{
					strcat(string,"Zaneprázdnen");
					}
                	if(PlayerInfo[playerid][fFunkce] == 2)
					{
					strcat(string,"DJ");
					}
					if(PlayerInfo[playerid][fFunkce] == 3)
					{
					strcat(string,"Řešení Dotazu");
					}
					if(PlayerInfo[playerid][fFunkce] == 4)
					{
					strcat(string,"Spravce Firem");
					}
					if(PlayerInfo[playerid][fFunkce] == 5)
					{
					strcat(string,"Spravce Gangu");
					}
					if(PlayerInfo[playerid][fFunkce] == 6)
					{
					strcat(string,"Spravce Podvodu");
					}
					if(PlayerInfo[playerid][fFunkce] == 7)
					{
				 	strcat(string,"Spravce Strát");
					}
					new ss[400];
					strcat(ss, sprava);
					strcat(ss, string);
					SCM(playerid, -1, ss);
	return 1;
}

CMD:raut(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, red,notlevel);
	new vehicle = GetPlayerVehicleID(playerid);
	if(IsPlayerInVehicle(playerid, vehicle))
    {

	}
	else for(new i = GetVehiclePoolSize(); i > 0; i--)
 	if(!IsPlayerInAnyVehicle(playerid))
	{
	    SetVehicleToRespawn(i);
 	}
	new ssr[150];
	format(ssr, sizeof(ssr), "Administrátor {00ffff}%s {ff0000}Respawnul všechna Vozidla na Serveru",PlayerName(playerid));
	SendClientMessageToAll(red, ssr);
	return 1;
}

CMD:god(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 5 || PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pAdmin] == 4) return SCM(playerid,red,notlevel);
	SetPlayerHealth(playerid, 9999999999);
	SetPlayerArmour(playerid, 9999999999);
	return 1;
}

CMD:ungod(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 5 || PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pAdmin] == 4) return SCM(playerid,red,notlevel);
	SetPlayerHealth(playerid, 125);
	SetPlayerArmour(playerid, 100);
	return 1;
}

CMD:pocasi(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, red , notlevel);
	new idweather;
	if(sscanf(params , "i",idweather)) return SCM(playerid, -1, "[!]Použití: /SetWeather <počasi-id>");
 	if (idweather < 1 || idweather > 44) return SCM(playerid , red ,"pouze( 1-20 )");
 	for(new i=0; i<MAX_PLAYERS; i++)
      {
    SetPlayerWeather(i,idweather);
    	}
	return 1;
}

CMD:abung(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, red , notlevel);
	SetPlayerPos(playerid, 223.8629,1823.0437,6.4141);
	return 1;
}

CMD:admins(playerid, params[])
{
      new str[256];
      new string[1300];

      new online = 0;
      for(new i=0; i<MAX_PLAYERS; i++)
      {
         if(IsPlayerConnected(i))
         {
             {
				if(PlayerInfo[i][pAdmin] == 1)
				{
   	                format(str,sizeof(str),"{ff0000}Helper\t{ffff00}%s\n",PlayerName(i),PlayerInfo[i][fFunkce]);
                    strcat(string,str);
                    online ++;
				}
				if(PlayerInfo[i][pAdmin] == 2)
				{
                    format(str,sizeof(str),"{ff0000}Organizátor\t{ffff00}%s\t",PlayerName(i),PlayerInfo[i][fFunkce]);
                    strcat(string,str);
                    online ++;
				}
				if(PlayerInfo[i][pAdmin] == 3)
				{
                    format(str,sizeof(str),"{ff0000}Admin\t{ffff00}%s\t",PlayerName(i),PlayerInfo[i][fFunkce]);
                    strcat(string,str);
                    online ++;
				}
				if(PlayerInfo[i][pAdmin] == 4)
				{
                    format(str,sizeof(str),"{ff0000}Administrator\t{ffff00}%s\t",PlayerName(i),PlayerInfo[i][fFunkce]);
                    strcat(string,str);
                    online ++;
				}
				if(PlayerInfo[i][pAdmin] == 5)
				{

                    format(str,sizeof(str),"{ff0000}Hl.Administrator\t{ffff00}%s\t",PlayerName(i),PlayerInfo[i][fFunkce]);
                    strcat(string,str);
                    online ++;
				}
				if(PlayerInfo[i][pAdmin] == 6)
				{

                    format(str,sizeof(str),"{ffff00}Majitel\t{ff0000}%s\t",PlayerName(i),PlayerInfo[i][fFunkce]);
                    strcat(string,str);
                    online ++;
				}
				    if(PlayerInfo[i][fFunkce] == 8)
					{
				 	strcat(string,"{ff0000}AFK\n");
					}
				    if(PlayerInfo[i][fFunkce] == 1)
					{
					strcat(string,"Zaneprázdnen\n");
					}
                	if(PlayerInfo[i][fFunkce] == 2)
					{
					strcat(string,"DJ\n");
					}
					if(PlayerInfo[i][fFunkce] == 3)
					{
					strcat(string,"Řešení Dotazu\n");
					}
					if(PlayerInfo[i][fFunkce] == 4)
					{
					strcat(string,"Spravce Firem\n");
					}
					if(PlayerInfo[i][fFunkce] == 5)
					{
					strcat(string,"Spravce Gangu\n");
					}
					if(PlayerInfo[i][fFunkce] == 6)
					{
					strcat(string,"Spravce Podvodu\n");
					}
					if(PlayerInfo[i][fFunkce] == 7)
					{
				 	strcat(string,"Spravce Strát\n");
					}
            }
		 }
      }
      if(online < 1)
	  {
      ShowPlayerDialog(playerid,3335,DIALOG_STYLE_MSGBOX,"online Admins","na serveru neni žádný admin","ok","");
	  }
	  new sss[400];
	  strcat(sss,"Admin\tNick\tFunkce\n");
	  strcat(sss,string);
      ShowPlayerDialog(playerid,9563,5,"online Admins",sss,"ok","");
   return 1;
}

Zde je cely můj kod 

 

Sdílet tento příspěvek


Link to post
Share on other sites
  • 0
před 10 hodinami, Guyy. said:

1)


public jobsjoin(playerid,PlayerName)
{
    SCM(PlayerName,-1,"Pravě ses zaměstnal");
	TextDrawDestroy(Text:JobsJoins);
	TextDrawHideForPlayer(playerid, Text:JobsJoins);
	KillTimer(resettextdrawb);
		return 1;
}

jobsjoin(playerid,PlayerName) - Všade kde vyvolávaš tento public tak zadávaš iba playerid -->


SetTimerEx("jobsjoin", 10000 + 1000, true, "i", playerid);

 

2) SendClientMessage príjma ID hráča, nie jeho meno ktoré tak či tak nikde nezadávaš takže PlayerName = 0 čo znamená že správa nikdy nepríde hráčom nad id 0. Takže SCM(playerid, -1, ...);

 

3) 


resettextdrawb = SetTimerEx("jobsjoin", 10000 + 1000, true, "i", playerid);
KillTimer(resettextdrawb);

Osobne nechápem na čo je toto dobré.. Vyvoláš public jobsjoin ktorý sa vykoná za 11 sekúnd a hned ho aj zrušíš takže sa nevykoná vôbedz. V SetTimerEx zmeň true na false a vymaž KillTimer(..);, timer sa automaticky vypne keď sa vykoná.

 

4) Od riadku 


if(pickupid == busjobs)

po riadok


if(pickupid == pizzajobs)

 

Vyvoláš timer ktorý neoznačíš --> 


SetTimerEx("jobsjoined", 500, true, "i", playerid);

Takže sa tento timer opakuje až kým nevypneš server pretože ho nemáš ako vypnúť.. Takže -->


resettextdrawa alebo resettextdrawb = SetTimerEx("jobsjoined", 500, true, "i", playerid);

 

A ked ti to hore nepomohlo tak by som skúsil --> 

 

Děkuji pomohlo to tet to aspoň nespamuje ale furt to ukazuje kde nemá 😄   ja to mam dane na autech kde kupuju a tam me to ukazuje 😄 

Sdílet tento příspěvek


Link to post
Share on other sites
  • 0
před 48 minutami, Guyy. said:

EDIT:// Kedže som šiel cez notifikáciu tak som si nevšimol že problem bol opravený. 😄

😄 jo jo je já sem tam měl stejnou pozici na zaměstnaní asi 4x stejná adresa

ale mám otázku zda bys nevěděl proč mě nenačítá garáž ?  ukládá se ale už se nenačte po restartu serveru 

Edited by TedakCZ

Sdílet tento příspěvek


Link to post
Share on other sites
  • 0

Ako vidím používaš y_ini. V tom prípade ja ti nepomôžem kedže som vždy používal DOF2 a s ním som si spravil aj vlastný Car Systém a House Systém asi za 2 hodiny. Pokiaľ si nový v Pawn odporúčam použiť ľahšie File Systémy ako napr. DOF2 alebo aj file.inc. y_ini je trochu zložitejšie a pri copy & paste ho nikdy ani nepochopíš. (nehovor mi že si to vytvoril ty pretože ten public "LoadCar_data(...)" aj názvy ukladania a premenná VehInfo som videl pri jednom tutoriále na car system). Urobiť vlastný Car Systém je jednoduché (dokonca ešte viac jak som si myslel).

Pokiaľ by si chcel niečo vedieť radšej mi napíš SZ pretože aspoň myslím že moderátory nedovoľujú takéto multi témy v 1 topicu, síce je "SAMP Server" názov topicu, lenže ten problém ktorý si napísal hore si už opravil tak neviem či to berú jak vyriešené a už sa tu nemá písať. Neviem.

Sdílet tento příspěvek


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Odpovědět na dotaz...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Obnovili jsme váš původní obsah (obsah napsaný před zavřením).   Smazat obnovený obsah

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...