[Pomoc] Ucitavanje payday i setplayerspawn

Započeo YungDexy, Novembar 19, 2016, 02:03:03 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: NBE x14
Detaljan opis problema: Ovako, ne ucitava mi payday i setplayerspawn, ne ucitava mi jos PLAYER_STATE_SPAWNED i kada nekoga /arrest vreme mu ne ide nego stoji zamrznuto do reloga, svaka pomoc je dobrodosla, hvala unapred  :)
Dio skripte:
PLAYER_STATE_SPAWNED:    if(newstate == PLAYER_STATE_SPAWNED)
{
new Float: lwx, Float:lwy, Float:lwz;
GetPlayerPos(playerid, lwx, lwy, lwz);
if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8
{
SetPlayerSpawn(playerid);
}
        if(WantedPoints[playerid] > 0)
{
new dstring[128];
new wanted = WantedPoints[playerid];
new diecash = 0;
format(dstring, sizeof(dstring), "Izgubio si $%d jer si poginuo sa %d wanted levela.", diecash, wanted);
SendClientMessage(playerid, COLOR_YELLOW, dstring);
GivePlayerMoney(playerid, - diecash);
PlayerInfo[playerid][pWantedDeaths] += 1;
}
if(PlayerOnMission[playerid] > 0)
{
GameTextForPlayer(playerid, "~r~Misija propala", 5000, 3);
PlayerOnMission[playerid] = 0;
    PlayerInfo[playerid][pMissionNr] = 0;
}
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
if(PlayerInfo[playerid][pDonateRank] > 0) { JBC_SetPlayerHealth(playerid, 100.0); }
else { JBC_SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); }
MedicBill[playerid] = 1;
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
gPlayerSpawned[playerid] = 1;
SafeTime[playerid] = 60;
}
return 1;
}

SetPlayerSpawn: public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
    if(PlayerInfo[playerid][pTut] == 0)
    {
            SetPVarInt(playerid, "Izbegavanje", 0);
    TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            SetPlayerInterior(playerid, 3);
            SetPlayerInterior(playerid, 3);
            SetPlayerCameraPos( playerid, 1143.8341, -1039.4705, 81.0823 );
            SetPlayerCameraLookAt( playerid, 1150.5505, -1046.6729, 79.3458 );
            JBC_SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
            SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
            //SetPlayerInterior(playerid, 0);
            //SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, 280);
JBC_TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, 50);
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
SendClientMessage(playerid, COLOR_GREY, " Dobrodosli na Old Extreme. Bicete prosledjeni u imigraciono odeljenje.");
SendClientMessage(playerid, COLOR_WHITE, "1. Da li ste musko ili zensko? (napisite sta ste)");
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
ClearChatbox(playerid, 2);
TextDrawHideForPlayer(playerid, bssrpp1);
    TextDrawHideForPlayer(playerid, bssrpp2);
      TextDrawHideForPlayer(playerid, Textdraw1);
        TextDrawHideForPlayer(playerid, Textdraw0);
        //TextDrawHideForPlayer(playerid, Textdrawic);
        //TextDrawHideForPlayer(playerid, scrtd);
        //TextDrawHideForPlayer(playerid, scrtd1);
        TextDrawHideForPlayer(playerid, Zones[playerid]);
        TextDrawHideForPlayer(playerid, Zones1[playerid]);
        TextDrawHideForPlayer(playerid, Banka[playerid]);
        TextDrawHideForPlayer(playerid, Zlato[playerid]);
        TextDrawHideForPlayer(playerid, Time);
        TextDrawHideForPlayer(playerid, Datum);
        TextDrawHideForPlayer(playerid, PrikazPlus);
        TextDrawHideForPlayer(playerid, PrikazPlus);
        TextDrawHideForPlayer(playerid, Textdraw2);
        //TextDrawHideForPlayer(playerid, Zastava0);
        TextDrawHideForPlayer(playerid, Zastava1);
        TextDrawHideForPlayer(playerid, Zastava2);
        TextDrawHideForPlayer(playerid, Zastava3);
        TextDrawHideForPlayer(playerid, Zastava4);
        TextDrawHideForPlayer(playerid, Zastava5);
        //TextDrawHideForPlayer(playerid, Zastava6[playerid]);
return 1;
    }
    if(OSCSpec[playerid] == 1)
{
    return 1;
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
new stan = PlayerInfo[playerid][pPstankey];
if(PlayerPaintballing[playerid] != 0)
{
    JBC_ResetPlayerWeapons(playerid);
      JBC_GivePlayerWeapon(playerid, 29, 999);
    rand = random(sizeof(PaintballSpawns));
    JBC_SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
            SetPlayerInterior(playerid, 6);
    PlayerInfo[playerid][pInt] = 6;
JBC_SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_LIGHTRED, "Nedovrsena zatvorska kazna , vracate se nazad u zatvor.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
    SetPlayerInterior(playerid, 0);
    PlayerInfo[playerid][pInt] = 0;
JBC_SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
return 1;
}
if(PlayerInfo[playerid][pRobijaJailed] == 1)
{
    SetPlayerInterior(playerid, 0);
    PlayerInfo[playerid][pInt] = 0;
JBC_SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
return 1;
}
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
{
    if(FirstSpawn[playerid] != 1)
    {
    //new string[256];
    //new cut = deathcost;
//JBC_GivePlayerMoney(playerid, -cut);
PlayerInfo[playerid][pDeaths] += 1;
//MedicBill[playerid] = 0;
SetPlayerInterior(playerid, 0);
//MedicTime[playerid] = 0;
//NeedMedicTime[playerid] = 0;
SetPlayerToTeamColor(playerid);
        JBC_SetPlayerPos(playerid,1174.8219,-1325.5898,14.5938);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
GameTextForPlayer(playerid, "~n~~w~Bicete izleceni za ~n~~r~60 ~w~sekundi", 60000, 4);
SetPlayerCameraPos(playerid, 1120.74, -1354.15, -10.22);
                SetPlayerCameraLookAt(playerid, 1117.86, -1350.06, -11.63);
                JBC_SetPlayerHealth(playerid, 100);
                SetTimerEx("SetPlayerSpawn", 60000, 0, "i", playerid);
                //SetTimerEx("IsPlayerOnAnyVehicle", 1000, false, "i", playerid);
                JustDied[playerid] = 1;
        MedicTime[playerid] = 1;
        NeedMedicTime[playerid] = 60;
/*JBC_SetPlayerHealth(playerid, 50.0);
PlayerInfo[playerid][pDeaths] += 1;
    SetPlayerInterior(playerid, 3);
    PlayerInfo[playerid][pInt] = 3;
        rand = random(sizeof(gMedicSpawns));
JBC_SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 0);
        JBC_TogglePlayerControllable(playerid, 0);
        GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You need to rest now ...", 30000, 3);
          JustDied[playerid] = 1;
        MedicTime[playerid] = 1;
        ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
        if(PlayerInfo[playerid][pDonateRank] > 0)
        {
            NeedMedicTime[playerid] = 30;
        }
        else
        {
        NeedMedicTime[playerid] = 40;
}
        PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);*/
    return 1;
}
}
if(JustDied[playerid] == 1)
{
    if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
    {
        SetPlayerVirtualWorld(playerid, 0);
        PlayerInfo[playerid][pVirWorld] = 0;
    }
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
}
/*if(PlayerInfo[playerid][pCrashed] == 1)
{
    if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
    {
        SetPlayerSpawn(playerid);
    return 1;
}
}*/
if(house !=255)
{
    if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
        SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
JBC_SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
}
if(stan !=255)
{
    if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
        SetPlayerInterior(playerid,StanInfo[stan][sInt]);
SetPlayerVirtualWorld(playerid,StanInfo[stan][sWorld]);
JBC_SetPlayerPos(playerid, StanInfo[stan][sExitx], StanInfo[stan][sExity],StanInfo[stan][sExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = stan;
StanEntered[playerid] = stan;
PlayerInfo[playerid][pInt] = StanInfo[stan][sInt];
return 1;
}
}
/*if(PlayerInfo[playerid][pRobijaTime] >= 1)
{
SetPlayerWorldBounds(playerid,337.5694,101.5826,1940.9759,1798.7453); //Reset world to player
        SetPlayerInterior(playerid, 0);
        PlayerInfo[playerid][pInt] = 0;
    JBC_SetPlayerPos(playerid, 90.2101,1920.4854,17.9422);
    }*/
if(PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    JBC_SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
    PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 241;
    return 1;
}
if(PlayerInfo[playerid][pLevel] == 1)//turista spawn
{
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,6);
    rand = random(sizeof(gCopPlayerSpawns));
    JBC_SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
PlayerInfo[playerid][pInt] = 6;
return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
{
SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,3);
JBC_SetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
PlayerInfo[playerid][pInt] = 3;
return 1;
    }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    JBC_SetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
    SetPlayerToTeamColor(playerid);
    JBC_SetPlayerPos(playerid, 1177.6360,-1324.0120,14.0805);
SetPlayerInterior(playerid,6);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 6;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 5);
    JBC_SetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
    PlayerInfo[playerid][pInt] = 5;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//La Famiglia Sinatra spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    JBC_SetPlayerPos(playerid, 1298.7446,-801.1938,84.1406);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
}
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
        SetPlayerToTeamColor(playerid);
    JBC_SetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
        SetPlayerToTeamColor(playerid);
        SetPlayerInterior(playerid,3);
JBC_SetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
PlayerInfo[playerid][pInt] = 3;
JBC_GivePlayerWeapon(playerid, 43, 20);
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 1221.9855,-1813.5378,16.5938);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) //Jakuza
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 689.8480,-1275.5216,13.5595);
//JBC_SetPlayerPos(playerid, 513.882507,-11.269994,1001.565307);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //MS
    {
        SetPlayerToTeamColor(playerid);
    JBC_SetPlayerPos(playerid, 2604.1443,-1096.8738,69.4153);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //Ballas
    {
        SetPlayerToTeamColor(playerid);
    JBC_SetPlayerPos(playerid, 2508.7886,-1494.2750,24.0039);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    JBC_SetPlayerPos(playerid, 2770.7358,-1627.8873,12.1775);
    //JBC_SetPlayerPos(playerid, 964.106994,-53.205497,1001.124572);
    PlayerInfo[playerid][pInt] = 3;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//GSF
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
            JBC_SetPlayerPos(playerid, 2495.2676,-1688.9624,14.1338);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//Parking servis
{
    SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid, 0);
    JBC_SetPlayerPos(playerid, 1067.8535,-883.9738,43.1797);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) //Kazniclana org
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 1678.1116,-913.8533,50.7143);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) //LCN org
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 1133.3146,-2037.0826,69.0078);
//JBC_SetPlayerPos(playerid, 2324.419921,-1145.568359,1050.710083);
/// JBC_GivePlayerWeapon(playerid, 31, 150);
// SetPlayerInterior(playerid,12);
// PlayerInfo[playerid][pInt] = 12;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pHelper] >= 1) //OSC
    {
        SetPlayerToTeamColor(playerid);
//JBC_SetPlayerPos(playerid, 852.6305,-1436.5940,15.0437);
JBC_SetPlayerPos(playerid, -2640.762939,1406.682006,906.460937);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) //PO 1
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 960.5629,2232.1692,10.8453);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21) //PO 2
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 944.6101,2336.1396,10.8453);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) //PO 3
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 858.0616,2281.8372,10.8453);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) //PO 4
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 860.1057,2200.7346,10.8453);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24) //PO 5
    {
        SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 859.8685,2117.0002,10.8453);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    /*if(IsAnInstructor(playerid) || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) //Driving/Flying School spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,3);
JBC_SetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo[playerid][pInt] = 3;
        return 1;
    }*/
    if ((gTeam[playerid]) == 1)
    {
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
JBC_SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
/*if(PlayerInfo[playerid][pFMember] != 255)
{
    new family = PlayerInfo[playerid][pFMember];
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
    JBC_SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
    return 1;
}*/
    else
    {
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
}
return 1;
}

/arrest cmd:    if(strcmp(cmd, "/arrest", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(gTeam[playerid] == 2  || IsACop(playerid))
{
if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste na duznosti !");
    return 1;
}
if(PlayerToPoint(6.0, playerid, 268.3327,77.8972,1001.0391) || PlayerToPoint(6.0, playerid,332.5154,-1518.7258,35.4308) || PlayerToPoint(6.0, playerid, 611.9939,-588.7424,16.7882) || PlayerToPoint(6.0, playerid, 2292.4458,2460.6785,10.3889) || PlayerToPoint(6.0, playerid, 1540.0641,-1675.5873,13.5499))
{//New arrest system

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISCENJE: /arrest [id]");
return 1;
}
new suspect = GetClosestPlayer(playerid);
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel[suspect] < 1)
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac mora biti barem wanted level 1!");
    return 1;
}
new moneyss = ((WantedPoints[suspect]*1000) + 500);
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Uhapsili ste kriminalca %s!", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
JBC_GivePlayerMoney(suspect, -moneyss);
format(string, sizeof(string), "Uhapseni ste od strane policajca %s ~n~    oduzeto vam je $%d", sendername, moneyss);
GameTextForPlayer(suspect, string, 5000, 5);
JBC_ResetPlayerWeapons(suspect);
if(WantedLevel[suspect] == 1) {PlayerInfo[suspect][pJailTime] = 200;}
else if(WantedLevel[suspect] == 2) {PlayerInfo[suspect][pJailTime] = 400;}
else if(WantedLevel[suspect] == 3) {PlayerInfo[suspect][pJailTime] = 600;}
else if(WantedLevel[suspect] == 4) {PlayerInfo[suspect][pJailTime] = 800;}
else if(WantedLevel[suspect] == 5) {PlayerInfo[suspect][pJailTime] = 1000;}
else if(WantedLevel[suspect] == 6) {PlayerInfo[suspect][pJailTime] = 1200;}
else if(WantedLevel[suspect] >= 6) {PlayerInfo[suspect][pJailTime] = 1800;}
else { PlayerInfo[suspect][pJailTime] = 1800; }
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
    new currank[64];
    if(PlayerInfo[playerid][pRank] == 1) { currank = "Policajac"; }
else if(PlayerInfo[playerid][pRank] == 2) { currank = "Narednik"; }
else if(PlayerInfo[playerid][pRank] == 3) { currank = "Inspektor"; }
else if(PlayerInfo[playerid][pRank] == 4) { currank = "Kapetan"; }
else if(PlayerInfo[playerid][pRank] == 5) { currank = "Zamenik Sefa"; }
        else if(PlayerInfo[playerid][pRank] == 6) { currank = "Sef Policije"; }
        else if(PlayerInfo[playerid][pRank] == 7) { currank = "Deputy Chief"; }
        else if(PlayerInfo[playerid][pRank] == 8) { currank = "Chief"; }
else { currank = "Policajac"; }
format(string, sizeof(string), "[Policija] Policija je upravo priveo i uhapsila gradjanina %s | Vreme:%d | Razlog:%s", giveplayer, PlayerInfo[suspect][pJailTime], PlayerCrime[suspect][pAccusedof]);
OOCNews(COLOR_BLUE, string);
}
else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
{
format(string, sizeof(string), "[SAJ] SAJ je upravo priveo i uhapsio gradjanina %s | Vreme:%d | Razlog:%s", giveplayer, PlayerInfo[suspect][pJailTime], PlayerCrime[suspect][pAccusedof]);
OOCNews(COLOR_BLUE, string);
}
else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
{
format(string, sizeof(string), "[JNA] JNA je upravo priveo i uhapsio gradjanina %s | Vreme:%d | Razlog:%s", giveplayer, PlayerInfo[suspect][pJailTime], PlayerCrime[suspect][pAccusedof]);
OOCNews(COLOR_BLUE, string);
}
SetPlayerInterior(suspect, 6);
SetPlayerColor(suspect, COLOR_WHITE);
                        WantedPoints[suspect] = 0;
                        WantedLevel[suspect] = 0;
    JBC_TogglePlayerControllable(suspect, 1);
JBC_SetPlayerPos(suspect,264.4167,82.5384,1001.0391);
GetPlayerName(suspect, sendername, sizeof(sendername));
                        new arr1[300];
                        new arr2[300];
                        new arr[600];
                            format(arr1,sizeof(arr1),"{80C8FE}DOSIJE:{FFFFFF}MUP\n{80C8FE}Vase Ime:{FFFFFF}%s\n{80C8FE}Wanted level:{FFFFFF}%d\n{80C8FE}Pocinjeni zlocin:{FFFFFF}%s\n{80C8FE}Tuzilac:{FFFFFF}%s\n{80C8FE}Prijavio:{FFFFFF}Nepoznat\n{80C8FE}Optuzen za:{FFFFFF}Nepoznato\n\n",sendername, WantedLevel[playerid],PlayerCrime[playerid][pAccusedof],PlayerCrime[playerid][pVictim]);
                            format(arr2,sizeof(arr2),"{80C8FE}Cena kazne zatvora:{FFFFFF}6000\n\n{80C8FE}Vreme zatvora:{FFFFFF}%d\n\n{80C8FE}Cena kaucije:{FFFFFF}Nedostupna\n\n{80C8FE}Ukoliko imas wanted level to znaci da si trazen,ne koristi ESCAPE menu zato sto ce server\nda te kikuje i bices u prisonu,ne trudi se da pobegnes sa servera jer ces opet biti u prisonu i\nserver ce da ti uzme - 20 k i 1h zatvora", PlayerInfo[suspect][pJailTime]);
                            format(arr, sizeof(arr),"%s%s",arr1,arr2);
                            ShowPlayerDialog(suspect,1328,DIALOG_STYLE_MSGBOX,"POLICIJSKI NALOG ZA HAPSENJE!",arr,"OK","OK");
format(string, sizeof(string), "Zatvoreni ste na %d sekundi.   Kaucija: Nedostupna", PlayerInfo[suspect][pJailTime]);
SendClientMessage(suspect, COLOR_WHITE, string);
PlayerInfo[suspect][pJailed] = 1;
          PlayerInfo[suspect][pArrested] += 1;
SetPlayerFree(suspect,playerid, "Uhapseni ste");
WantedPoints[suspect] = 0;
WantedLevel[suspect] = 0;
WantLawyer[suspect] = 1;
PlayerCuffed[suspect] = 0;
    JBC_GivePlayerMoney(playerid,500);
    SendClientMessage(playerid, COLOR_WHITE, "Dobili ste 500$ zbog hapsenja!");
}//distance
}//not connected
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Niko nije u blizini da ga uhapsite.");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste na mestu zatvora.");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Niste policajac/SAJ!");
    return 1;
}
}//not connected
return 1;
}

PayDay: public PayDay()
{
new account,interest;
new rent = 0;
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pLevel] > 0)
    {
    if(MoneyMessage[i]==1)
{
    SendClientMessage(i, COLOR_LIGHTRED, "Niste platili vas dug, vreme je za zatvor.");
    GameTextForPlayer(i, "~r~Uhapsen si!", 2000, 1);
    SetPlayerInterior(i, 6);
    PlayerInfo[i][pInt] = 6;
                    JBC_SetPlayerPos(i, 264.4167,82.5384,1001.0391);
            PlayerInfo[i][pJailed] = 1;
            JBC_ResetPlayerWeapons(i);
WantedPoints[i] = 0;
WantedLevel[i] = 0;
                    SetPlayerWantedLevel(i,0);
PlayerInfo[i][pJailTime] = 240;
}
new playername2[MAX_PLAYER_NAME];
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo[i][pAccount];
new key = PlayerInfo[i][pPhousekey];
if(key != 999)
{
rent = HouseInfo[key][hRent];
if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
rent = 0;
}
else if(rent > JBC_GetPlayerMoney(i))
{
PlayerInfo[i][pPhousekey] = 999;
SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
rent = 0;
}
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
                }
                new tmpintrate;
if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
    if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+1; }//HouseInfo[key][hLevel]
}
else
{
    if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 4; }
else { tmpintrate = 4; }
}
if(PlayerInfo[i][pPayDay] >= 5 || PlayerInfo[i][pPosiguranje] >= 1)
{
    Tax += TaxValue;//Should work for every player online
    PlayerInfo[i][pAccount] -= TaxValue;
new checks = PlayerInfo[i][pPayCheck] / 5;
if(PlayerInfo[i][pDonateRank] > 0)
{
    new bonus = PlayerInfo[i][pPayCheck] / 10;
    checks += bonus;
}
    new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
    //ConsumingMoney[i] = 1;
    //JBC_GivePlayerMoney(i, checks);
    account += checks;
    if(PlayerInfo[i][pAccount] > 0)
    {
    PlayerInfo[i][pAccount] -= ebill;
    BizzInfo[48][bTill] += ebill;
}
else
{
    ebill = 0;
}
new staro = PlayerInfo[i][pAccount];
interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate/2);
                    PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pAccount] = account+interest;
new novo = PlayerInfo[i][pAccount];
new osgr = PlayerInfo[i][pPosiguranje];
new ZarPara;
ZarPara = random(500000)+100000;
new PotPara;
PotPara = random(500000)+100000;
new vdracun;
vdracun = random(150);
new gdracun;
gdracun = random(150);
new p1;
p1 = PlayerInfo[i][pPorez1];
new p2;
p2 = PlayerInfo[i][pPorez2];
new p3;
p3 = PlayerInfo[i][pPorez3];
new stringpl1[237];
new stringpl2[340];
new stringpl3[203];
new stringpl4[88];
new stringpl5[102];
new stringpl6[95];
new stringpl[1024];
format(stringpl1,sizeof(stringpl1),"{F3FF02}|___ BANKARSKI IZVESTAJ ___|\n{FFAF00}Plata: $%d\n{0049FF}OSIGURANJE: Dobili ste platu, al ne zaboravite na osiguranja %d\n{FFAF00}Stecen interes od para u banci: $%d\n{0049FF}|----------------------------|",checks,osgr,interest);
format(stringpl2,sizeof(stringpl2),"{F81414}X Racun za struju(EPS): -$%d\nX Racun za vodu(Vodovod): -$%d\nX Racun za komunalije(Gradska cistoca): -$%d\n\nX Porez na vozilo 1: %d$\nX Porez na vozilo 2: %d$\nX Porez na vozilo 3: %d$\n{0049FF}|----------------------------|\n{F81414}Rent: -$%d\n{6EF83C}Kamatna stopa: 0.%d percent\n",ebill,vdracun,gdracun,p1,p2,p3,rent,tmpintrate);
format(stringpl3,sizeof(stringpl3),"{0049FF}|----------------------------|\n{FFAF00}Staro Stanje: $%d\n{C9FFAB}Novo Stanje: $%d\n{FFAF00}= Proverite stanje vasih levela /levelup =\n{0049FF}|-----------STATUS DRZAVE-----------|",staro,novo);
format(stringpl4,sizeof(stringpl4),"{6EF83C}Ukupno zaradjenih para:$%d\n{F81414}Ukupno potrosenih para:$%d\n",ZarPara,PotPara);
format(stringpl6,sizeof(stringpl6),"{0049FF}PORUKA DANA: %s",RandomPoslovice[random(sizeof(RandomPoslovice))]);
if(ZarPara > PotPara)
{
format(stringpl5,sizeof(stringpl5),"{6EF83C}Finansijsko stanje u drzavi: Stabilno ,drzava profitira narod lepo zivi :D\n");
}
else if(PotPara > ZarPara)
{
format(stringpl5,sizeof(stringpl5),"{F81414}Finansijsko stanje u drzavi: Nestabilno,trosi se,ako se ovako nastavi bice bankrota\n");
}
format(stringpl, sizeof(stringpl),"%s%s%s%s%s%s",stringpl1,stringpl2,stringpl3,stringpl4,stringpl5,stringpl6);
            ShowPlayerDialog(i,6,DIALOG_STYLE_MSGBOX,"Bankarski izvestaj gradjana!",stringpl,"OK","OK");
format(stringpl, sizeof(stringpl), "~y~Plata~n~~w~Proverite stanje u vasem dzepu");
GameTextForPlayer(i, stringpl, 5000, 1);
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
PlayerInfo[i][pAccount] -= PlayerInfo[i][pPorez1];
PlayerInfo[i][pAccount] -= PlayerInfo[i][pPorez2];
PlayerInfo[i][pAccount] -= PlayerInfo[i][pPorez3];
if(PlayerInfo[i][pKazneni] >= 1)
{
JBC_GivePlayerMoney(i, -2000);
PlayerInfo[i][pKazneni] = 0;
}
if(PlayerInfo[i][pKazneni] >= 2)
{
JBC_GivePlayerMoney(i, -4000);
PlayerInfo[i][pKazneni] = 0;
}
if(PlayerInfo[i][pKazneni] >= 3)
{
JBC_GivePlayerMoney(i, -6000);
PlayerInfo[i][pKazneni] = 0;
}
if(PlayerInfo[i][pKazneni] >= 4)
{
JBC_GivePlayerMoney(i, -8000);
PlayerInfo[i][pKazneni] = 0;
}
if(PlayerInfo[i][pKazneni] >= 5)
{
JBC_GivePlayerMoney(i, -10000);
PlayerInfo[i][pKazneni] = 0;
}
if(FarmerVar[i] == 0)
{
FarmerPickup[i][0] = 0;
}
if(DrugFarmerVar[i] == 0)
{
DrugFarmerPickup[i][0] = 0;
}
if(SmugglerWork[i] == 0)
{
PayDaySecure[i] = 0;
}
if(PlayerInfo[i][pDonateRank] > 0)
{
    PlayerInfo[i][pPayDayHad] += 1;
    if(PlayerInfo[i][pVip] >= 4 || PlayerInfo[i][pOSC] >= 3)
    {
        PlayerInfo[i][pExp]++;
    }
}
}
else
{
    SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili platu, ili niste imali dovoljno osiguranja.");
}
}
}
}
//Kofer();
SaveAccounts();
Checkprop();
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Novembar 19, 2016, 02:08:09 PRE PODNE od YungBluud

She sucked my dick and got my brain washed
And for the shit that got your man popped
See what they did to Biggie and Pac

Gde si taj mod iskopao. Ima brdo bugova a i lose je radjen. Mani se toga. zivce ces izgubiti na popravak

Fin je mod samo ima posla. :)
MAKE IT BUN DEM!

Tuvia Bielski/Djole/Georgij Makarov