Help !
#1

1. How to make Trucking sub mission , help me out little bit i know little bit but don't know how to get trailer from a spot/place and where to leave that trailer and how to set cash after releasing trailer on the given positon

2. Fix this code of score/level/exprience,if you can:

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>

#define COLOR_ORANGE 0xD6D6D6AA
#pragma tabsize  0

//Variables

new mechanicer[MAX_PLAYERS];
new taxiery;
new pickup;

new binco;
new victim;
new zip;
new prolaps;

new jobs;
new JOB_MECHANIC[MAX_PLAYERS];
new JOB_TAXI[MAX_PLAYERS];
new JOB_BUSDRIVER[MAX_PLAYERS];

forward GivePlayerScore1(playerid);
forward GivePlayerScore2(playerid);
forward GivePlayerScore3(playerid);
forward GivePlayerScore4(playerid);
forward GivePlayerScore5(playerid);
forward GivePlayerScore6(playerid);
forward GivePlayerScore7(playerid);
forward GivePlayerScore8(playerid);
forward GivePlayerScore9(playerid);
forward GivePlayerScore10(playerid);
forward GivePlayerScore11(playerid);
forward GivePlayerScore12(playerid);
forward GivePlayerScore13(playerid);
forward GivePlayerScore14(playerid);
forward GivePlayerScore15(playerid);
new GiveScoreTimer[MAX_PLAYERS];
new GiveScoreTimer2[MAX_PLAYERS];
new GiveScoreTimer3[MAX_PLAYERS];
new GiveScoreTimer4[MAX_PLAYERS];
new GiveScoreTimer5[MAX_PLAYERS];
new GiveScoreTimer6[MAX_PLAYERS];
new GiveScoreTimer7[MAX_PLAYERS];
new GiveScoreTimer8[MAX_PLAYERS];
new GiveScoreTimer9[MAX_PLAYERS];
new GiveScoreTimer10[MAX_PLAYERS];
new GiveScoreTimer11[MAX_PLAYERS];
new GiveScoreTimer12[MAX_PLAYERS];
new GiveScoreTimer13[MAX_PLAYERS];
new GiveScoreTimer14[MAX_PLAYERS];
new GiveScoreTimer15[MAX_PLAYERS];

public GivePlayerScore1(playerid)
{
    SetPlayerScore(playerid, 1);
    return 1;
}
public GivePlayerScore2(playerid)
{
    SetPlayerScore(playerid, 2);
    return 1;
}
public GivePlayerScore3(playerid)
{
    SetPlayerScore(playerid, 3);
    return 1;
}
public GivePlayerScore4(playerid)
{
    SetPlayerScore(playerid, 4);
    return 1;
}
public GivePlayerScore5(playerid)
{
    SetPlayerScore(playerid, 5);
    return 1;
}
public GivePlayerScore6(playerid)
{
    SetPlayerScore(playerid, 6);
    return 1;
}
public GivePlayerScore7(playerid)
{
    SetPlayerScore(playerid, 7);
    return 1;
}
public GivePlayerScore8(playerid)
{
    SetPlayerScore(playerid, 8);
    return 1;
}
public GivePlayerScore9(playerid)
{
    SetPlayerScore(playerid, 9);
    return 1;
}
public GivePlayerScore10(playerid)
{
    SetPlayerScore(playerid, 10);
    return 1;
}
public GivePlayerScore11(playerid)
{
    SetPlayerScore(playerid, 11);
    return 1;
}
public GivePlayerScore12(playerid)
{
    SetPlayerScore(playerid, 12);
    return 1;
}
public GivePlayerScore13(playerid)
{
    SetPlayerScore(playerid, 13);
    return 1;
}
public GivePlayerScore14(playerid)
{
    SetPlayerScore(playerid, 14);
    return 1;
}
public GivePlayerScore15(playerid)
{
    SetPlayerScore(playerid, 15);
    return 1;
}

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    jobs = CreatePickup(1239,1,362.4671,173.6203,1008.3828,-1);
    AddStaticVehicle(525,2813.3120,1374.9358,10.6291,359.5251,52,54); //
    AddStaticVehicle(525,2810.2046,1374.6703,10.6505,2.0662,52,54); //
    AddStaticVehicle(525,2805.8354,1367.6526,10.6473,87.9377,52,54); //
    AddStaticVehicle(525,2805.3474,1364.9200,10.6606,90.0538,52,54); //
    AddStaticVehicle(525,2804.8330,1361.9142,10.6475,92.9163,52,54); //
    AddStaticVehicle(525,2804.7917,1358.1093,10.6266,85.3838,52,54); //
    AddStaticVehicle(525,2805.5627,1355.2761,10.6437,87.1027,52,54); //
    AddStaticVehicle(525,2804.6855,1351.0729,10.6465,91.5071,52,54); //
    AddStaticVehicle(525,2805.5110,1347.9838,10.6357,90.3564,52,54); //
    AddStaticVehicle(525,2804.8347,1345.1091,10.6614,89.6408,52,54); //
    AddStaticVehicle(420,2246.9246,2034.7103,10.6270,269.8234,6,1); //
    AddStaticVehicle(420,2246.8064,2038.6212,10.6172,269.6314,6,1); //
    AddStaticVehicle(420,2246.7952,2042.5216,10.6194,270.4222,6,1); //
    AddStaticVehicle(420,2246.6353,2046.7167,10.6165,269.2106,6,1); //
    AddStaticVehicle(420,2247.1021,2050.3955,10.6270,269.8377,6,1); //
    AddStaticVehicle(420,2284.5625,2050.3689,10.5950,268.2249,6,1); //
    AddStaticVehicle(420,2284.6382,2046.6752,10.6235,269.4680,6,1); //
    AddStaticVehicle(582,1024.3666,2238.2061,10.8681,87.9386,41,20); //
    AddStaticVehicle(582,1024.5304,2263.5625,10.8650,90.9301,41,20); //
    AddStaticVehicle(582,1024.1796,2270.2329,10.8650,88.8053,41,20); //
    AddStaticVehicle(582,1024.1565,2279.7329,10.8650,88.4759,41,20); //
    //Pickups
    binco = CreatePickup(1275, 1, 207.7380,-101.2481,1005.2578, -1);
    victim = CreatePickup(1275, 1, 208.8206,-3.5261,1001.2178, -1);
    zip = CreatePickup(1275, 1, 161.3910,-83.2536,1001.8047, -1);
    prolaps = CreatePickup(1275, 1, 207.0394,-129.1786,1003.5078, -1);
    //Disabling Player Markers
    ShowPlayerMarkers(0);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerConnect(playerid)
{
    //Map Icons
    //Binco
    SetPlayerMapIcon(playerid, 1, 2244.5437,-1674.0107,21.0313, 45, 0, MAPICON_LOCAL);
    SetPlayerMapIcon(playerid, 2, 2085.9902,2259.0959,22.0006, 45, 0, MAPICON_LOCAL);
    SetPlayerMapIcon(playerid, 3, 1667.5845,1732.9495,18.2082, 45, 0, MAPICON_LOCAL);
    //Zip
    SetPlayerMapIcon(playerid, 4, -1868.5573,874.9694,58.4700, 45, 0, MAPICON_LOCAL);
    SetPlayerMapIcon(playerid, 5, 2095.9131,2231.5745,22.0347, 45, 0, MAPICON_LOCAL);
    //Victim
    SetPlayerMapIcon(playerid, 6, -1683.6515,961.4503,56.5943, 45, 0, MAPICON_LOCAL);
    //Prolaps
    SetPlayerMapIcon(playerid, 7, 490.8308,-1373.9816,28.1953, 45, 0, MAPICON_LOCAL);
    GiveScoreTimer[playerid] = SetTimerEx ("GivePlayerScore1", 60000*60, true, "d", playerid);
    GiveScoreTimer2[playerid] = SetTimerEx ("GivePlayerScore2", 1800000, true, "d", playerid);
    GiveScoreTimer3[playerid] = SetTimerEx ("GivePlayerScore3", 5400000, true, "d", playerid);
    GiveScoreTimer4[playerid] = SetTimerEx ("GivePlayerScore4", 8640000, true, "d", playerid);
    GiveScoreTimer5[playerid] = SetTimerEx ("GivePlayerScore5", 11520000, true, "d", playerid);
    GiveScoreTimer6[playerid] = SetTimerEx ("GivePlayerScore6", 14400000, true, "d", playerid);
    GiveScoreTimer7[playerid] = SetTimerEx ("GivePlayerScore7", 25200000, true, "d", playerid);
    GiveScoreTimer8[playerid] = SetTimerEx ("GivePlayerScore8", 36000000, true, "d", playerid);
    GiveScoreTimer9[playerid] = SetTimerEx ("GivePlayerScore9", 54000000, true, "d", playerid);
    GiveScoreTimer10[playerid] = SetTimerEx ("GivePlayerScore10", 90000000, true, "d", playerid);
    GiveScoreTimer11[playerid] = SetTimerEx ("GivePlayerScore11", 126000000, true, "d", playerid);
    GiveScoreTimer12[playerid] = SetTimerEx ("GivePlayerScore12", 162000000, true, "d", playerid);
    GiveScoreTimer12[playerid] = SetTimerEx ("GivePlayerScore13", 216000000, true, "d", playerid);
    GiveScoreTimer14[playerid] = SetTimerEx ("GivePlayerScore14", 252000000, true, "d", playerid);
    GiveScoreTimer15[playerid] = SetTimerEx ("GivePlayerScore15", 288000000, true, "d", playerid);
   
    ///
    JOB_MECHANIC[playerid] = 0;
    JOB_TAXI[playerid] = 0;
    JOB_BUSDRIVER[playerid] = 0;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    KillTimer(GiveScoreTimer[playerid]);
    KillTimer(GiveScoreTimer2[playerid]);
    KillTimer(GiveScoreTimer3[playerid]);
    KillTimer(GiveScoreTimer4[playerid]);
    KillTimer(GiveScoreTimer5[playerid]);
    KillTimer(GiveScoreTimer6[playerid]);
    KillTimer(GiveScoreTimer7[playerid]);
    KillTimer(GiveScoreTimer8[playerid]);
    KillTimer(GiveScoreTimer9[playerid]);
    KillTimer(GiveScoreTimer10[playerid]);
    KillTimer(GiveScoreTimer11[playerid]);
    KillTimer(GiveScoreTimer12[playerid]);
    KillTimer(GiveScoreTimer13[playerid]);
    KillTimer(GiveScoreTimer14[playerid]);
    KillTimer(GiveScoreTimer15[playerid]);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    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[])
{
    return 0;
}

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

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    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)
{
if(pickupid == binco)
{
    new listitems[] = "1\tThe Truth\n2\tMaccer\t3\nEmmet\t4\nOld Woman\t5\nRich Woman\t6\nStreet Girl\t7\nNormal Ped (1)\t8\nNormal Ped (2)\t9\nNormal Ped(3)\t10\nRich Guy\n";
    ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Binco Shop", listitems, "Ok", "Cancel");
    }
    if(pickupid == victim)
    {
    new itemlist[] = "1\tDrug Dealer (1)\n2\tDrug Dealer (2)\n3\tDrug Dealer (3)\n4\tNormal Ped (1)\n5\tNormal Ped (2)\n6\tNormal Ped (3)\n7\tNormal Ped (4)\n8\tNormal Ped (5)\n9\tMountain Biker (1)\n10\tMountain Biker (2)\n";
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Victim Shop", itemlist, "Ok", "Cancel");
    }
    if(pickupid == zip)
    {
    new itemslist[] = "1\tNormal Ped\n2\tHot Chick (1)\n3\tHot Chick (2)\n4\tHot Chick (3)\n5\tHot Chick (4)\n6\tHot Chick (5)\n7\tPriest\n8\tKendl Johnson\n9\tDoctor\n10\tHippie\n";
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Zip Shop", itemslist, "Ok", "Cancel");
    }
    if(pickupid == prolaps)
    {
    new listitem[] = "1\tBiker\n2\tNormal Ped (1)\n3\tNormal Ped (2)\n4\tBusiness Woman (1)\n5\tBusiness Woman (2)\n6\tBusiness Man\n7\tFarmer\n8\tHillbilly (1)\n9\tHillbilly (2)\n10\tHillbilly (3)\n";
    ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Prolaps Shop", listitem, "Ok", "Cancel");
    }
    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[])
{
    // Binco
    if(dialogid == 4 && response == 1)
    {
    if(listitem == 0)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 1);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 1)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 2);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 2)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 6);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 3)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 10);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 4)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 12);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 5)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 13);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 6)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 15);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 7)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 14);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 8)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 19);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 9)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 20);
    GivePlayerMoney(playerid, -250);
    }
    }
    if(dialogid == 2 && response == 1)
    {
    if(listitem == 0)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 28);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 1)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 29);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 2)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 30);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 3)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 40);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 4)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 41);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 5)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 43);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 6)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 44);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 7)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 48);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 8)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 51);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 9)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 52);
    GivePlayerMoney(playerid, -250);
    }
    }
    // Zip
    if(dialogid == 3 && response == 1)
    {
    if(listitem == 0)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 60);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 1)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 63);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 2)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 64);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 3)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 152);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 4)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 178);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 5)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 237);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 6)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 68);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 7)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 65);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 8)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 70);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 9)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 72);
    GivePlayerMoney(playerid, -250);
    }
    }
    // Prolaps
    if(dialogid == 4 && response == 1)
    {
    if(listitem == 0)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 100);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 1)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 101);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 2)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 138);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 3)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 141);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 4)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 150);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 5)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 147);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 6)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 158);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 7)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 157);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 8)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 159);
    GivePlayerMoney(playerid, -250);
    }
    if(listitem == 9)
    {
    SendClientMessage(playerid, 0xFFFFFF, "Congratulations! You have got a new skin! Cost = 250$");
    SetPlayerSkin(playerid, 160);
    GivePlayerMoney(playerid, -250);
    }
    }
if(dialogid == 1 && response == 1)
    {
    if(listitem == 0)
    {
    SendClientMessage(playerid, 0x7777DDFF, "You have bought 1 Vodka for 65$!");
    GivePlayerMoney(playerid, -65);
    SetPlayerDrunkLevel(playerid, 3);
    SetPlayerSpecialAction(playerid, 22);
    }
    if(listitem == 1)
    {
    SendClientMessage(playerid, 0x7777DDFF, "You have bought 1 Wine for 35$!");
    GivePlayerMoney(playerid, -35);
    SetPlayerDrunkLevel(playerid, 2);
    SetPlayerSpecialAction(playerid, 22);
    }
    if(listitem == 2)
    {
    SendClientMessage(playerid, 0x7777DDFF, "You have bought 1 Beer for 25$!");
    GivePlayerMoney(playerid, -25);
    SetPlayerDrunkLevel(playerid, 1);
    SetPlayerSpecialAction(playerid, 20);
    }
    if(listitem == 3)
    {
    SendClientMessage(playerid, 0x7777DDFF, "You have bought 1 Bottle of Water for 5$!");
    GivePlayerMoney(playerid, -5);
    }
    }
    if(dialogid == 2 && response == 1)
    {
    if(listitem == 0)
    {
    SendClientMessage(playerid, 0x7777DDFF, "You have bought 1 Vodka for 65$!");
    GivePlayerMoney(playerid, -65);
    SetPlayerDrunkLevel(playerid, 3);
    SetPlayerSpecialAction(playerid, 22);
    }
    if(listitem == 1)
    {
    SendClientMessage(playerid, 0x7777DDFF, "You have bought 1 Wine for 35$!");
    GivePlayerMoney(playerid, -35);
    SetPlayerDrunkLevel(playerid, 2);
    SetPlayerSpecialAction(playerid, 22);
    }
    if(listitem == 2)
    {
    SendClientMessage(playerid, 0x7777DDFF, "You have bought 1 Beer for 25$!");
    GivePlayerMoney(playerid, -25);
    SetPlayerDrunkLevel(playerid, 1);
    SetPlayerSpecialAction(playerid, 20);
    }
    if(listitem == 3)
    {
    SendClientMessage(playerid, 0x7777DDFF, "You have bought 1 Bottle of Water for 5$!");
    GivePlayerMoney(playerid, -5);
    }
    }
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
// character dhela hai
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == 420)
    {
        if(JOB_TAXI[playerid] == 0) return RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, 0xD6D6D6AA, "You cant drive this car");
    }
    if(vehicleid == 525)
    {
        if(JOB_MECHANIC[playerid] == 0) return RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, 0xD6D6D6AA, "You cant drive this car");
        }
    if(vehicleid == 582)
    {
        if(JOB_BUSDRIVER[playerid] == 0) return RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, 0xD6D6D6AA, "You cant drive this car");
        }
    return 1;
}
// CMDS
COMMAND:takemjob(playerid,params[])
    {
    new taxier[MAX_PLAYERS];
    new mechanic[MAX_PLAYERS];
    new newser[MAX_PLAYERS];
            if(!IsPlayerInRangeOfPoint(playerid,1.0,362.4671,173.6203,1008.3828)) return SendClientMessage(playerid, COLOR_ORANGE,"You cannot use this command at this location");
    {
    if(taxier[playerid] == 1) return SendClientMessage(playerid,COLOR_ORANGE,"You already taken a job");
    {
    if(newser[playerid] == 1) return SendClientMessage(playerid,COLOR_ORANGE,"You already taken a job");
    {
                mechanicer[playerid] = 1;
                ShowPlayerDialog(playerid,29,DIALOG_STYLE_MSGBOX,"Mechanic Job","Congratulations you have taken a mechanic job, go to the mechanic park");
                pickup = SetPlayerCheckpoint(playerid,2820.6321,1367.2216,10.7500,1.5);
            }
            }
            }
            return 1;
    }
    ///////////////////////////
COMMAND:taketjob(playerid,params[])
    {
        new taxier[MAX_PLAYERS];
    new mechanic[MAX_PLAYERS];
    new newser[MAX_PLAYERS];
        if(!IsPlayerInRangeOfPoint(playerid,1.0,362.4671,173.6203,1008.3828)) return SendClientMessage(playerid, COLOR_ORANGE,"You cannot use this command at this location");
    {
    if(mechanicer[playerid] == 1) return SendClientMessage(playerid,COLOR_ORANGE,"You already taken a job");
    {
    if(newser[playerid] == 1) return SendClientMessage(playerid,COLOR_ORANGE,"You already taken a job");
    {
                taxier[playerid] = 1;
                ShowPlayerDialog(playerid,29,DIALOG_STYLE_MSGBOX,"Taxi Job","Congratulations you have taken a Taxi job, go to the Taxi park");
                taxiery = SetPlayerCheckpoint(playerid,2262.2725,2035.8972,10.8203,1.5);
            }
            }
            }
            return 1;
    }
    /////////////////////
    new taxier[MAX_PLAYERS];
    new mechanic[MAX_PLAYERS];
    new newser[MAX_PLAYERS];
COMMAND:takenjob(playerid,params[])
    {
    if(!IsPlayerInRangeOfPoint(playerid,1.0,362.4671,173.6203,1008.3828)) return SendClientMessage(playerid, COLOR_ORANGE,"You cannot use this command at this location");
    {
    if(taxier[playerid] == 1) return SendClientMessage(playerid,COLOR_ORANGE,"You already taken a job");
    {
    if(mechanicer[playerid] == 1) return SendClientMessage(playerid,COLOR_ORANGE,"You already taken a job");
    {
                newser[playerid] = 1;
                ShowPlayerDialog(playerid,29,DIALOG_STYLE_MSGBOX,"News Job","Congratulations you have taken a News job, go to the News park");
            }
            }
            }
            return 1;
    }
///
CMD:jobhelp(playerid,params[])
{
if(!IsPlayerInRangeOfPoint(playerid,10.0,362.4671,173.6203,1008.3828)) return SendClientMessage(playerid, COLOR_ORANGE,"You cannot use this command at this location");
{
    ShowPlayerDialog(playerid, 21, DIALOG_STYLE_LIST, "Job Select","For taking the Mechanic job, Type here /Takemjob\n For taking the Taxi job type here /Taketjob\n For taking the SanAndreasNews job, Type here /takenjob", "Select", "Exit");
    }
    return 1;
    }
//
CMD:repair(playerid,params[])
    {
        if(JOB_MECHANIC[playerid] == 0) return SendClientMessage(playerid, 0xD6D6D6AA, "You are not a Mechanic!");
        {
            if(JOB_MECHANIC[playerid] == 1)
            {
                SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
                SendClientMessage(playerid, 0xD6D6D6AA, "You have Repaired the Vehicle! Repairing Fee = 200$");
                GivePlayerMoney(playerid, -200);
            }

        }
        return 1;
    }
Reply
#2

Please put your code in pawn][/pawn
Then I will try to help you.
Reply
#3

I did it ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)