Oko pokretanja kucnog hitno

Započeo Deken, Novembar 21, 2017, 19:58:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ako si krenuo preko neke filterskripte raditi mod od 0 moras dodati main(){} i da kompajlas mod.
/\

nije filterskripta nego klasican gamemode udjes pawno i new obrisao sam ono filterscript init i exit

Citat: Deken poslato Novembar 22, 2017, 17:55:40 POSLE PODNE
nije filterskripta nego klasican gamemode udjes pawno i new obrisao sam ono filterscript init i exit
mogledaj dal imas main(){} uopste i posalji na pastebinu celu skriptu da ti ja sastavim posto nije mnogo velika 700 800 linija max.
/\

Citat: Selim404 poslato Novembar 22, 2017, 18:03:06 POSLE PODNE
Citat: Deken poslato Novembar 22, 2017, 17:55:40 POSLE PODNE
nije filterskripta nego klasican gamemode udjes pawno i new obrisao sam ono filterscript init i exit
mogledaj dal imas main(){} uopste i posalji na pastebinu celu skriptu da ti ja sastavim posto nije mnogo velika 700 800 linija max.

[pawn]
//=====================================BS:RP SKRIPTA BY VITO==============================================//

#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <streamer>

#define CRVENA "{FF1414}"
#define BELA "{FFFFFF}"

#pragma tabsize 0



//======================================[NEW]===============================================//

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
new Text:Textdraw16;
new Text:Textdraw17;
new Text:Textdraw18;
new Text:Textdraw19;
new Text:Textdraw20;
new Text:Textdraw21;
new Text:Textdraw22;
new VoziloKosaca[11];
new Start[ MAX_PLAYERS ] ;
new kositravu[MAX_PLAYERS];
new VoziloDostavljacaMesa[11];
new dostavimeso[MAX_PLAYERS];
new Start1[MAX_PLAYERS];

//=======================================[DEFINE]============================================//

#if defined FILTERSCRIPT

#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_VIOLET 0x9955DEEE
#define COLOR_LIGHTRED 0xFF99AADD
#define COLOR_SEAGREEN 0x00EEADDF
#define COLOR_GRAYWHITE 0xEEEEFFC4
#define COLOR_LIGHTNEUTRALBLUE 0xabcdef666
#define COLOR_GREENISHGOLD 0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN 0x0FFDD349
#define COLOR_NEUTRALBLUE 0xABCDEF01
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_MEDIUMBLUE 0x63AFF00A
#define COLOR_NEUTRAL 0xABCDEF97
#define COLOR_BLACK 0x00000000
#define COLOR_NEUTRALGREEN 0x81CFAB00
#define COLOR_DARKGREEN 0x12900BBF
#define COLOR_LIGHTGREEN 0x24FF0AB9
#define COLOR_DARKBLUE 0x300FFAAB
#define COLOR_BLUEGREEN 0x46BBAA00
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_RED1 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_TAN 0xFFFFCCAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD1 0xB4B5B7FF

#define DIALOG_LOGIN 1
#define DIALOG_WELCOME 2
#define DIALOG_WEAPONS 3
#define DIALOG_COMMANDS 4

//===============================================[HEXDECIMAL]===========================================================//

{ "BLUE", "1B1BE0" },
{ "PINK", "E81CC9" },
{ "YELLOW", "DBED15" },
{ "LIGHTGREEN", "8CED15" },
{ "LIGHTBLUE", "15D4ED" },
{ "RED", "FF0000" },
{ "GREY", "BABABA" },
{ "WHITE", "FFFFFF" },
{ "ORANGE", "DB881A" },
{ "GREEN", "37DB45" },
{ "PURPLE", "7340DB" }





main () { return true; }
{
   print("\n----------------------------------");
   print(" BS:RP V 0.1.0 By Vito ");
   print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{

//============================================[VOZILA]============================================//

//===========================================[KOSAC TRAVE]==============================//
VoziloKosaca[1]=AddStaticVehicle(572,1952.9606,-1248.7236,19.2738,356.2620,101,1);
VoziloKosaca[2]=AddStaticVehicle(572,1950.2513,-1248.6025,19.1852,356.0848,116,1);
VoziloKosaca[3]=AddStaticVehicle(572,1947.7122,-1248.5604,19.0928,358.6038,101,1);
VoziloKosaca[4]=AddStaticVehicle(572,1945.2097,-1248.5056,18.9082,357.3105,25,1);
VoziloKosaca[5]=AddStaticVehicle(572,1943.2260,-1248.6458,18.7149,356.7913,116,1);
VoziloKosaca[6]=AddStaticVehicle(572,1955.1508,-1248.7366,19.3456,357.5720,116,1);
VoziloKosaca[7]=AddStaticVehicle(572,1957.5271,-1248.5740,19.4235,1.5130,116,1);
//======================================ZA BUREK=======================================//
VoziloDostavljacaMesa[1]=AddStaticVehicle(478,358.6689,-77.9277,1.3682,180.4324,45,1);
VoziloDostavljacaMesa[2]=AddStaticVehicle(478,362.3716,-77.7124,1.3723,182.3675,40,1);
VoziloDostavljacaMesa[3]=AddStaticVehicle(478,365.4081,-77.6442,1.3754,181.0363,39,1);
VoziloDostavljacaMesa[4]=AddStaticVehicle(478,368.3194,-77.6262,1.3743,180.7559,35,1);
VoziloDostavljacaMesa[5]=AddStaticVehicle(478,371.4335,-77.5982,1.3738,181.9012,20,1);
VoziloDostavljacaMesa[6]=AddStaticVehicle(478,372.0434,-98.4974,1.3601,2.1843,72,1);
VoziloDostavljacaMesa[7]=AddStaticVehicle(478,369.0987,-98.5261,1.3474,1.5724,66,1);
VoziloDostavljacaMesa[9]=AddStaticVehicle(478,365.9219,-98.6222,1.3459,357.6198,59,1);
VoziloDostavljacaMesa[9]=AddStaticVehicle(478,362.4759,-98.6007,1.3521,0.2182,45,1);
VoziloDostavljacaMesa[10]=AddStaticVehicle(478,359.5097,-98.7139,1.3521,1.2013,40,1);

//============================================[SKIN]==============================================//

SetGameModeText("BS:RP V.0.0.1 By Vito");
AddPlayerClass(0,1933.0145,-1247.8140,18.1099,351.8568,0,0,0,0,0,0);

//============================================[TDOVI]==============================================//

Textdraw0 = TextDrawCreate(481.250000, 1.750020, "B");
TextDrawLetterSize(Textdraw0, 0.449999, 1.600000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 8388863);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 0);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 1);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);

Textdraw1 = TextDrawCreate(493.750000, 2.333338, "alkan");
TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, -1);
TextDrawUseBox(Textdraw1, true);
TextDrawBoxColor(Textdraw1, 0);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 1);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(541.875000, 13.999979, "S");
TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 8388863);
TextDrawUseBox(Textdraw2, true);
TextDrawBoxColor(Textdraw2, 0);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);

Textdraw3 = TextDrawCreate(551.875000, 14.583353, "ammering");
TextDrawLetterSize(Textdraw3, 0.449999, 1.600000);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, -1);
TextDrawUseBox(Textdraw3, true);
TextDrawBoxColor(Textdraw3, 0);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 1);
TextDrawBackgroundColor(Textdraw3, 51);
TextDrawFont(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);

Textdraw4 = TextDrawCreate(604.500000, 100.666671, "usebox");
TextDrawLetterSize(Textdraw4, 0.000000, 8.176383);
TextDrawTextSize(Textdraw4, 436.125000, 0.000000);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, 0);
TextDrawUseBox(Textdraw4, true);
TextDrawBoxColor(Textdraw4, 102);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 0);
TextDrawFont(Textdraw4, 0);

Textdraw5 = TextDrawCreate(438.750000, 98.583335, "LD_SPAC:white");
TextDrawLetterSize(Textdraw5, 0.000000, 0.000000);
TextDrawTextSize(Textdraw5, 5.625000, 78.750015);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, 8388863);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 0);
TextDrawFont(Textdraw5, 4);

Textdraw6 = TextDrawCreate(444.375000, 98.583305, "LD_SPAC:white");
TextDrawLetterSize(Textdraw6, 0.000000, 0.000000);
TextDrawTextSize(Textdraw6, 158.125000, 4.666666);
TextDrawAlignment(Textdraw6, 1);
TextDrawColor(Textdraw6, 8388863);
TextDrawSetShadow(Textdraw6, 0);
TextDrawSetOutline(Textdraw6, 0);
TextDrawFont(Textdraw6, 4);

Textdraw7 = TextDrawCreate(438.750000, 173.833343, "LD_SPAC:white");
TextDrawLetterSize(Textdraw7, 0.000000, 0.000000);
TextDrawTextSize(Textdraw7, 163.750000, 5.250009);
TextDrawAlignment(Textdraw7, 1);
TextDrawColor(Textdraw7, 8388863);
TextDrawSetShadow(Textdraw7, 0);
TextDrawSetOutline(Textdraw7, 0);
TextDrawFont(Textdraw7, 4);

Textdraw8 = TextDrawCreate(603.125000, 99.750091, "LD_SPAC:white");
TextDrawLetterSize(Textdraw8, 0.000000, -18.562500);
TextDrawTextSize(Textdraw8, -8.125000, 78.166671);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, 8388863);
TextDrawUseBox(Textdraw8, true);
TextDrawBoxColor(Textdraw8, 0);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 0);
TextDrawFont(Textdraw8, 4);

Textdraw9 = TextDrawCreate(443.750000, 102.666664, "LD_SPAC:white");
TextDrawLetterSize(Textdraw9, 0.000000, -0.687500);
TextDrawTextSize(Textdraw9, 38.750000, 70.583320);
TextDrawAlignment(Textdraw9, 1);
TextDrawColor(Textdraw9, -1);
TextDrawUseBox(Textdraw9, true);
TextDrawBoxColor(Textdraw9, 0);
TextDrawSetShadow(Textdraw9, 0);
TextDrawSetOutline(Textdraw9, 0);
TextDrawFont(Textdraw9, 5);
TextDrawSetPreviewModel(Textdraw9, 293);
TextDrawSetPreviewRot(Textdraw9, 0.000000, 0.000000, 0.000000, 1.000000);

Textdraw10 = TextDrawCreate(490.625000, 102.666656, "LD_SPAC:white");
TextDrawLetterSize(Textdraw10, 0.000000, 0.000000);
TextDrawTextSize(Textdraw10, -6.875000, 75.250007);
TextDrawAlignment(Textdraw10, 1);
TextDrawColor(Textdraw10, 8388863);
TextDrawSetShadow(Textdraw10, 0);
TextDrawSetOutline(Textdraw10, 0);
TextDrawFont(Textdraw10, 4);

Textdraw11 = TextDrawCreate(106.375000, 448.916687, "usebox");
TextDrawLetterSize(Textdraw11, 0.000000, -4.529632);
TextDrawTextSize(Textdraw11, 202.375000, 0.000000);
TextDrawAlignment(Textdraw11, 1);
TextDrawColor(Textdraw11, -1);
TextDrawUseBox(Textdraw11, true);
TextDrawBoxColor(Textdraw11, 102);
TextDrawSetShadow(Textdraw11, 0);
TextDrawSetOutline(Textdraw11, 0);
TextDrawFont(Textdraw11, 4);

Textdraw12 = TextDrawCreate(0.625000, 425.833312, "LD_SPAC:white");
TextDrawLetterSize(Textdraw12, 0.000000, 0.000000);
TextDrawTextSize(Textdraw12, 231.250000, 2.916687);
TextDrawAlignment(Textdraw12, 1);
TextDrawColor(Textdraw12, 8388863);
TextDrawSetShadow(Textdraw12, 0);
TextDrawSetOutline(Textdraw12, 0);
TextDrawFont(Textdraw12, 4);

Textdraw13 = TextDrawCreate(233.875000, 427.333312, "usebox");
TextDrawLetterSize(Textdraw13, 0.000000, 2.081485);
TextDrawTextSize(Textdraw13, -2.000000, 0.000000);
TextDrawAlignment(Textdraw13, 1);
TextDrawColor(Textdraw13, 8388863);
TextDrawUseBox(Textdraw13, true);
TextDrawBoxColor(Textdraw13, 102);
TextDrawSetShadow(Textdraw13, 0);
TextDrawSetOutline(Textdraw13, 0);
TextDrawFont(Textdraw13, 0);

Textdraw14 = TextDrawCreate(127.500000, 426.416656, "Rekord:");
TextDrawLetterSize(Textdraw14, 0.449999, 1.600000);
TextDrawTextSize(Textdraw14, -6.875000, 3.500000);
TextDrawAlignment(Textdraw14, 1);
TextDrawColor(Textdraw14, -1);
TextDrawUseBox(Textdraw14, true);
TextDrawBoxColor(Textdraw14, 0);
TextDrawSetShadow(Textdraw14, 0);
TextDrawSetOutline(Textdraw14, 1);
TextDrawBackgroundColor(Textdraw14, 51);
TextDrawFont(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);

Textdraw15 = TextDrawCreate(641.375000, 427.333312, "usebox");
TextDrawLetterSize(Textdraw15, 0.000000, 2.081485);
TextDrawTextSize(Textdraw15, -2.000000, 0.000000);
TextDrawAlignment(Textdraw15, 1);
TextDrawColor(Textdraw15, 0);
TextDrawUseBox(Textdraw15, true);
TextDrawBoxColor(Textdraw15, 102);
TextDrawSetShadow(Textdraw15, 0);
TextDrawSetOutline(Textdraw15, 0);
TextDrawFont(Textdraw15, 0);

Textdraw16 = TextDrawCreate(1.250000, 425.250000, "LD_SPAC:white");
TextDrawLetterSize(Textdraw16, 0.000000, 0.000000);
TextDrawTextSize(Textdraw16, 229.375000, 2.333312);
TextDrawAlignment(Textdraw16, 1);
TextDrawColor(Textdraw16, 8388863);
TextDrawSetShadow(Textdraw16, 0);
TextDrawSetOutline(Textdraw16, 0);
TextDrawFont(Textdraw16, 4);

Textdraw17 = TextDrawCreate(226.875000, 425.833312, "LD_SPAC:white");
TextDrawLetterSize(Textdraw17, 0.000000, 0.000000);
TextDrawTextSize(Textdraw17, 5.000000, 22.166687);
TextDrawAlignment(Textdraw17, 1);
TextDrawColor(Textdraw17, 8388863);
TextDrawSetShadow(Textdraw17, 0);
TextDrawSetOutline(Textdraw17, 0);
TextDrawFont(Textdraw17, 4);

Textdraw18 = TextDrawCreate(1.875000, 446.250000, "LD_SPAC:white");
TextDrawLetterSize(Textdraw18, 0.000000, 0.000000);
TextDrawTextSize(Textdraw18, 226.875000, 1.750000);
TextDrawAlignment(Textdraw18, 1);
TextDrawColor(Textdraw18, 8388863);
TextDrawSetShadow(Textdraw18, 0);
TextDrawSetOutline(Textdraw18, 0);
TextDrawFont(Textdraw18, 4);

Textdraw19 = TextDrawCreate(0.625000, 425.833312, "LD_SPAC:white");
TextDrawLetterSize(Textdraw19, 0.000000, 0.000000);
TextDrawTextSize(Textdraw19, 2.500000, 22.166687);
TextDrawAlignment(Textdraw19, 1);
TextDrawColor(Textdraw19, 8388863);
TextDrawSetShadow(Textdraw19, 0);
TextDrawSetOutline(Textdraw19, 0);
TextDrawFont(Textdraw19, 4);

Textdraw20 = TextDrawCreate(492.500000, 102.083358, "Zlato:");
TextDrawLetterSize(Textdraw20, 0.449999, 1.600000);
TextDrawAlignment(Textdraw20, 1);
TextDrawColor(Textdraw20, -65281);
TextDrawUseBox(Textdraw20, true);
TextDrawBoxColor(Textdraw20, 0);
TextDrawSetShadow(Textdraw20, 0);
TextDrawSetOutline(Textdraw20, 1);
TextDrawBackgroundColor(Textdraw20, 51);
TextDrawFont(Textdraw20, 0);
TextDrawSetProportional(Textdraw20, 1);

Textdraw21 = TextDrawCreate(490.000000, 119.000007, "Banka:");
TextDrawLetterSize(Textdraw21, 0.449999, 1.600000);
TextDrawAlignment(Textdraw21, 1);
TextDrawColor(Textdraw21, 65535);
TextDrawUseBox(Textdraw21, true);
TextDrawBoxColor(Textdraw21, 0);
TextDrawSetShadow(Textdraw21, 0);
TextDrawSetOutline(Textdraw21, 1);
TextDrawBackgroundColor(Textdraw21, 51);
TextDrawFont(Textdraw21, 0);
TextDrawSetProportional(Textdraw21, 1);

Textdraw22 = TextDrawCreate(3.750000, 426.416595, "Igraci:");
TextDrawLetterSize(Textdraw22, 0.449999, 1.600000);
TextDrawAlignment(Textdraw22, 1);
TextDrawColor(Textdraw22, -1);
TextDrawUseBox(Textdraw22, true);
TextDrawBoxColor(Textdraw22, 0);
TextDrawSetShadow(Textdraw22, 0);
TextDrawSetOutline(Textdraw22, 1);
TextDrawBackgroundColor(Textdraw22, 51);
TextDrawFont(Textdraw22, 0);
TextDrawSetProportional(Textdraw22, 1);

return 1;
}

public OnGameModeExit()
{
   return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
   SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
   SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
   SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
   return 1;
}

public OnPlayerConnect(playerid)
{

   return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
   return 1;
}

public OnPlayerSpawn(playerid)
{

//=========================================[TDOVI]=========================================//

TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw8);
TextDrawShowForPlayer(playerid, Textdraw9);
TextDrawShowForPlayer(playerid, Textdraw10);
TextDrawShowForPlayer(playerid, Textdraw11);
TextDrawShowForPlayer(playerid, Textdraw12);
TextDrawShowForPlayer(playerid, Textdraw13);
TextDrawShowForPlayer(playerid, Textdraw14);
TextDrawShowForPlayer(playerid, Textdraw15);
TextDrawShowForPlayer(playerid, Textdraw16);
TextDrawShowForPlayer(playerid, Textdraw17);
TextDrawShowForPlayer(playerid, Textdraw18);
TextDrawShowForPlayer(playerid, Textdraw19);
TextDrawShowForPlayer(playerid, Textdraw20);
TextDrawShowForPlayer(playerid, Textdraw21);
TextDrawShowForPlayer(playerid, Textdraw22);

   return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   return 1;
}

public OnVehicleSpawn(vehicleid)
{
   return 1;
}

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

public OnPlayerText(playerid, text[])
{
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
   if (strcmp("/mycommand", cmdtext, true, 10) == 0)
   {
      // Do something here
      return 1;
   }
   return 0;
}

public OnPlayerCommandPerformed( playerid, cmdtext[], success) {

   if( !success ) return SendClientMessage(playerid,-1, ""CRVENA"[Greska] "BELA"Nepostojeca komanda! ");


   return true;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
   return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{


    return 1;
}



public OnPlayerEnterCheckpoint(playerid)
{

//===========================[KOSAC TRAVE]=================================//
DisablePlayerCheckpoint(playerid);


if(Start[playerid] == 0)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1910.9065,-1183.4401,22.4342,3.0);
}
else if(Start[playerid] == 1)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1931.7922,-1163.5945,21.7143,3.0);
}
else if(Start[playerid] == 2)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1987.4614,-1160.8689,20.9246,3.0);
}
else if(Start[playerid] == 3)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2002.5663,-1151.8746,22.6814,3.0);
}
else if(Start[playerid] == 4)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2033.7629,-1153.7010,23.1089,3.0);
}
else if(Start[playerid] == 5)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2048.2009,-1175.2698,23.3794,3.0);
}
else if(Start[playerid] == 6)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2051.2400,-1192.6033,23.6568,3.0);
}
else if(Start[playerid] == 7)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2036.9088,-1211.2786,22.7420,3.0);
}
else if(Start[playerid] == 8)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2024.1387,-1231.1516,21.9697,3.0);
}
else if(Start[playerid] == 9)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2010.5756,-1243.9318,22.9093,3.0);
}
else if(Start[playerid] == 10)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1967.6573,-1237.8304,20.0643,3.0);
}
else if(Start[playerid] == 11)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1934.7108,-1241.4706,18.1986,3.0);
}
else if(Start[playerid] == 12)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1899.2908,-1240.4778,15.3721,3.0);
}
else if(Start[playerid] == 13)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1879.1080,-1216.7605,17.5216,3.0);
}
else if(Start[playerid] == 14)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1882.9692,-1198.0802,20.8116,3.0);
}
else if(Start[playerid] == 15)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1888.9762,-1178.1691,23.8187,3.0);
}
else if(Start[playerid] == 16)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1921.9597,-1161.4310,22.5862,3.0);
}
else if(Start[playerid] == 17)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1992.9346,-1160.7639,20.9698,3.0);
}
else if(Start[playerid] == 18)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2030.7892,-1207.1803,21.9423,3.0);
}
else if(Start[playerid] == 19)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 2016.4780,-1223.7859,21.5503,3.0);
}
else if(Start[playerid] == 20)
{
Start[playerid]++;
SendClientMessage(playerid,-1,""CRVENA"[GAZDA]"BELA"Svaka cast nastavi dalje!");
SetPlayerCheckpoint(playerid, 1995.2039,-1228.4075,20.5757,3.0);
}
else if(Start[playerid] == 21)
{
GivePlayerMoney(playerid , 700);
SendClientMessage(playerid, -1, ""CRVENA"[GAZDA]"BELA"Pokosili ste travnjak i dobili platu u iznosu od 700 dolara!");
Start[playerid] = 0;
kositravu[playerid] = 0;
}

//============================================[BUREKDZIJA]============================================//
if(Start1[playerid] == 1)
{
SendClientMessage(playerid, -1,""CRVENA"[GAZDA]"BELA"Sad odvezite meso u fabriku bureka!");
DisablePlayerCheckpoint(playerid);
Start1[playerid]++;
SetPlayerCheckpoint(playerid, 1151.2487,-1204.6345,19.3616,4.0);
}
else if(Start1[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, 2000);
dostavimeso[playerid] = 0;
Start1[playerid] = 0;
SendClientMessage(playerid, -1,""CRVENA"[GAZDA]"BELA"Dovezli ste meso u fabriku bureka i dobili platu od 2000 dolara!");
}
return 1;
}



public OnPlayerLeaveCheckpoint(playerid)
{
   return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{


   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)
{
   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)
{
   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[])
{
   return 1;
}

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

forward Jail(playerid);
public Jail(playerid)
{
SetPlayerPos(playerid, 267.9954,85.6223,1001.0391);
SendClientMessage(playerid,0xAA3333AA, "Izasao si iz jaila( NE KRSI VISE PRAVILA!!!!)");
return 1;
}

forward VremeUtovara(playerid);
public VremeUtovara(playerid)
{
SendClientMessage(playerid, -1, ""CRVENA"[GAZDA]"BELA"Uspesno ste utovarili meso za burek nastavite dalje!");
return 1;
}

//-------------------------------------KOMANDE------------------------------------------------------//

CMD:heal(playerid, params[])
{
new targetid;
{
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije online!");
{
   if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid ,-1, ""CRVENA"[Greska]"BELA"Igrac nije Online!");
   {
      if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
      {
        if(sscanf(params,"i", targetid)) return SendClientMessage(playerid , 0xAA3333AA, "Koristi /heal ID");
       SetPlayerHealth(playerid ,100);
        }
   return 1;
      }
    }
  }
}
CMD:ban(playerid, params[])
{
   new targetid;
    {
     if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije online!");
     {
      if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,-1, ""CRVENA"[Greska]"BELA"Igrac nije Online!");
         {
             if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
              {
           if(sscanf(params,"i",targetid)) return SendClientMessage(playerid,0xAA3333AA, "Koristi /ban ID");
                GetPlayerName(playerid, name,sizeof(name));
             Ban(playerid);
           new string[60];
        format(string,  sizeof(string), ""CRVENA"[BAN]"BELA" %s je banovan sa servera!", name);
      SendClientMessageToAll(-1,string);
       }
      return 1;
     }
    }
   }
  }

CMD:kick(playerid, params[])
{
   new targetid;
   {
     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije Online!");
       {
           if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
         {
         if(sscanf(params,"i",targetid)) return SendClientMessage(playerid, 0xAA3333AA, "Koristi /kick ID");
          {
             if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije online!");
             GetPlayerName(playerid, name,sizeof(name));
               Kick(playerid);
             new string[60];
         format(string, sizeof(string), ""CRVENA"[KICK]"BELA" %s je kikovan sa servera!", name);
        SendClientMessageToAll(-1,string);
        }
      return 1;
      }
     }
   }
}

CMD:jetpack(playerid, params[])
{
   if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
      {
        if(sscanf(params,"u")) return SendClientMessage(playerid, 0xAA3333AA, "Koristi /jetpack");
       SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
         }
      return 1;
      }



CMD:kill(playerid, params[])
{
  new targetid;
   {
     {
      if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije online!");
       {
      if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije Online!");
        {
            if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
          {
           if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, 0xAA3333AA, "Koristi /kill ID");
               SetPlayerHealth(playerid, 0);
             new string[60];
           format(string,sizeof(string), "[Kill]Igrac %s je ubijen od strane Admin Tima", name);
          SendClientMessageToAll(0xAA3333AA,string);
          SendClientMessage(playerid, 0xAA3333AA, "Ubijen si od strane Admina %s");
       }
    return 1;
      }
    }
  }
}
}

CMD:clearchat(playerid, params[])
        {
           if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
         {
         if(sscanf(params,"u")) return SendClientMessage(playerid,0xAA3333AA, "Koristi /clearchat");
         SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            SendClientMessageToAll(0x00EEADDF, " ");
            GetPlayerName(playerid, name,sizeof(name));
            new string[50];
            format(string,sizeof(string), "Chat je obrisan od strane Admina %s !",name);
            SendClientMessageToAll(-1, string);
           
         }
      return 1;
      }

CMD:freeze(playerid,params[])
{
new targetid;
  {
    if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije Online!");
      {
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije online!");
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
         {
            if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, 0xAA3333AA, "Koristi /freeze ID");
               TogglePlayerControllable(playerid, 0);
             }
           return 1;
         }
      }
   }
   
CMD:unfreeze(playerid,params[])
{
new targetid;
  {
   if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije online!");
   {
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije online!");
    {
    if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije Online!");
      {
       if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
         {
            if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, 0xAA3333AA, "Koristi /unfreeze ID");
               TogglePlayerControllable(playerid, 1);
             }
           return 1;
         }
      }
   }
}
}

CMD:ahelp(playerid,params[])
  {
       if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[Greska]Nisi ovlasten!");
         {
            if(sscanf(params,"u")) return SendClientMessage(playerid, 0xAA3333AA, "Koristi /ahelp");
            SendClientMessage(playerid, 0xAA3333AA, "-------------------------------------------------------------------------------------------------------------------------------");
            SendClientMessage(playerid, 0xAA3333AA, "Admin Level 1: /ban /kill /freeze /unfreeze /kick /ahelp /jetpack /heal /clearchat ");
            SendClientMessage(playerid, 0xAA3333AA, "Admin Level 2: /ban /kill /freeze /unfreeze /kick /ahelp /jetpack /heal /clearchat ");
            SendClientMessage(playerid, 0xAA3333AA, "Admin Level 3: /ban /kill /freeze /unfreeze /kick /ahelp /jetpack /heal /clearchat");
            SendClientMessage(playerid, 0xAA3333AA, "Admin Level 4: /ban /kill /freeze /unfreeze /kick /ahelp /jetpack /heal /clearchat");
            SendClientMessage(playerid, 0xAA3333AA, "Head Admin: /ban /kill /freeze /unfreeze /kick /ahelp /jetpack /heal /clearchat /givegun");
            SendClientMessage(playerid, 0xAA3333AA, "Direktor: /ban /kill /freeze /unfreeze /kick /ahelp /jetpack /heal /clearchat /givegun");
            SendClientMessage(playerid, 0xAA3333AA, "Vlasnik: /ban /kill /freeze /unfreeze /kick /ahelp /jetpack /heal /clearchat /givegun");
               SendClientMessage(playerid, 0xAA3333AA, "-------------------------------------------------------------------------------------------------------------------------------");
             }
           return 1;
         }



CMD:pravila(playerid,params[])
{
               SendClientMessage(playerid, -1, "-------------------------------------------------------------------------------------------------------------------------------");
            SendClientMessage(playerid, -1, ""CRVENA"[RP]"BELA"-Simuliranje Stvarnog Zivota!");
            SendClientMessage(playerid, -1, ""CRVENA"[NONRP]"BELA"-Ometanje drugih igraca dok RP-aju!");
            SendClientMessage(playerid, -1, ""CRVENA"[MG]"BELA"-Mjesanje IC I OOC Chata!");
            SendClientMessage(playerid, -1, ""CRVENA"[PG]"BELA"-Nesto nemoguce u stvarnom zivotu a moguce u igrici!");
            SendClientMessage(playerid, -1, ""CRVENA"[DB]"BELA"-Ubistvo igraca sa mesta vozaca! PRIMJERI: :");
            SendClientMessage(playerid, -1, ""CRVENA"[TK]"BELA"-Ubistvo igraca iz organizacije");
            SendClientMessage(playerid, -1, ""CRVENA""BELA"-Ubistvo igraca na spawnu");
            SendClientMessage(playerid, -1, ""CRVENA"[CR]"BELA"-Trcanje Cik Cak da bi izbegao metke");
            SendClientMessage(playerid, -1, ""CRVENA"[BH]"BELA"-Trcanje i skakanje vise puta radi izbegavanja necega!(primjer:metci)");
            SendClientMessage(playerid, -1, ""CRVENA"[PVP]"BELA"]-Odnos igraca prema drugom igracu!");
            SendClientMessage(playerid, -1, ""CRVENA"[DM]"BELA"-Ubistvo igraca bez RP razloga!");
            SendClientMessage(playerid, -1, ""CRVENA"[PVE]"BELA"-Odnos igraca prema okolini!");
            SendClientMessage(playerid, -1, ""CRVENA"[MF]"BELA"-Pravljenje novih naloga da bi se obogatio!");
            SendClientMessage(playerid, -1, ""CRVENA"[AA]"BELA"-Koristenje Admin Komandi u svoju korist!");
            SendClientMessage(playerid, -1, ""CRVENA"[VA]"BELA"-Koristenje VIP Komandi u svoju korist!");
            SendClientMessage(playerid, -1, ""CRVENA"[PA]"BELA"-Koristenje Promoter Komandi u svoju korist!");
            SendClientMessage(playerid, -1, ""CRVENA"[HA]"BELA"-Koristenje Helper Komandi u svoju korist!");
            SendClientMessage(playerid, -1, ""CRVENA"[AE]"BELA"-Iskoristavanje drugog admina u svoju korist!");
            SendClientMessage(playerid, -1, ""CRVENA"[RPS]"BELA"-Kad igrac glumi da je SuperMan ne moze mu niko nista!!");
               SendClientMessage(playerid, -1, "-------------------------------------------------------------------------------------------------------------------------------");

   return 1;
}

CMD:givegun(playerid,params[])
{
new targetid;
{
   if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA" Igrac nije online!");
   {
   if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, ""CRVENA" [Greska] "BELA" Igrac nije online!");
    {
       if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
        {
              if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,0xAA3333AA , "Koristi /givegun ID");
           GivePlayerWeapon(playerid, 24, 5000);
           }
       return 1;
      }
    }
  }
}

CMD:jail(playerid,params[])
{
  new targetid;
   {
     if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Igrac nije online!");
     {
    if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, ""CRVENA" [Greska] "BELA" Igrac nije online !");
        {
         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi ovlasten!");
          {
              if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,0xAA3333AA , "Koristi /jail ID");
                   SetPlayerPos(playerid, 267.9954,85.6223,1001.0391);
                   SetPlayerInterior(playerid, 6);
                   SetCameraBehindPlayer(playerid);
               new string[60];
               format(string,sizeof(string), "[Jail]Igrac %s je zatvoren od strane Admin Tima!", name);
               SendClientMessage(playerid, 0xAA3333AA, "Zatvoren si od strane Admin Tima");
               SendClientMessageToAll(0xAA3333AA,string);
               SetTimerEx("Jail", 1800000, false, "i",playerid);
               SetPlayerChatBubble(playerid, "VREME ZATVORA",-1, 40.0, 1800000);

               
          }
        return 1;
       }
     }
   }
}

CMD:poslovi(playerid, params[])
{
SendClientMessage(playerid, -1, ""CRVENA"[LISTA POSLOVA]");
SendClientMessage(playerid, -1, ""BELA"1:Kosac trave");
SendClientMessage(playerid, -1, ""BELA"1:Dostavljac mesa za burek");
return 1;
}

//=====================================[KOSACI TRAVE]=================================================================//
CMD:kositravu(playerid, params[])
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 572) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi u kosilici!");
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Niste na mestu vozaca!");
SendClientMessage(playerid, -1, ""CRVENA"[GAZDA]"BELA"Poceli ste posao pratite crvene markere!");
SetPlayerCheckpoint(playerid, 1916.2914,-1227.7218,17.9356,3.0);
kositravu[playerid] = 1;
return 1;
}

//=====================================[SVE OKO BUREKA]=================================================================//
CMD:mesozaburek(playerid, params[])
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 478) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Nisi u vozilu Dostavljaca Mesa!");
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, ""CRVENA"[Greska]"BELA"Niste na mestu vozaca!");
SendClientMessage(playerid, -1,""CRVENA"[GAZDA]"BELA"Poceli ste posao pratite crvene markere!");
SetPlayerCheckpoint(playerid, 2608.8318,730.8253,10.8203,3.0);
dostavimeso[playerid] = 1;
Start1[playerid] = 1;
SetTimerEx("Vreme Utovara", 5000, false, "i", playerid);
return 1;
}

//===============================================[ENUMSI]===============================================================//

enum
{
    DIALOG_LOGIN,
    DIALOG_WELCOME,
   DIALOG_COMMANDS,
   DIALOG_WEAPONS
}

[/pawn]