[Pomoc] Poslovi

Započeo Black22, Novembar 30, 2013, 17:49:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: DSRP
Detaljan opis problema: Ovako napravio sam 6 poslova i sve radi normalno ali kad doÄ'em na zadnji CP i dobijem plaću za odraÄ'eni posao izbaci mi login i moram se ponovo logirati i onda me respawna
Dio skripte:
    if(PlayerInfo[playerid][RaznosenjePoste] > 0)
    {
    //-------------------------| Raznosenje Poste |-------------------------//
        if(PlayerToPoint(5.00, playerid, 957.1968,-1273.1892,14.9401))// Raznosenje Poste - CP - utovar
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~utovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("PostaUtovarena",8000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 971.9276,-1092.2637,23.7262,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 971.9276,-1092.2637,23.7262))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 1055.1047,-1049.0885,31.2904,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 1055.1047,-1049.0885,31.2904))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 1155.9025,-1092.3091,25.3895,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 1155.9025,-1092.3091,25.3895))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 1255.4135,-1106.7579,24.7683,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 1255.4135,-1106.7579,24.7683))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 1272.1218,-1061.4514,29.3751,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 1272.1218,-1061.4514,29.3751))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 1337.9481,-1092.6340,23.6661,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 1337.9481,-1092.6340,23.6661))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 2095.4541,-1318.2894,24.4391,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 2095.4541,-1318.2894,24.4391))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 2096.8564,-1285.1677,24.4672,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 2096.8564,-1285.1677,24.4672))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 2141.4146,-1314.3708,23.9479,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 2141.4146,-1314.3708,23.9479))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 2145.0442,-1417.6949,24.9782,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 2145.0442,-1417.6949,24.9782))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
SetPlayerCheckpoint(playerid, 2072.8428,-1657.9763,13.1163,5.0);
}
    }
}
if(PlayerToPoint(5.00, playerid, 2072.8428,-1657.9763,13.1163))// Raznosenje Poste - CP
      {
    if(PlayerInfo[playerid][RaznosenjePoste] == 1)
    {
            new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
    TogglePlayerControllable(playerid, 0);
    GameTextForPlayer(playerid,"~y~istovar poste", 3000, 3);
    PostarTimer[playerid] = SetTimerEx("IstovarPoste",5000,false,"i",playerid);
    new plata = 200 +random(15);
new bonus = 50 +random(25);
new iznos = plata+bonus;
////PlayerInfo[playerid][Novac] += iznos;
DajPare(playerid, iznos);
B_SpremiPodatke(playerid);
            new poruka[256];
            DisablePlayerCheckpoint(playerid);
            PlayerInfo[playerid][RaznosenjePoste] = 0;
            format(poruka, sizeof(poruka),"{B7FF00}Novine razvezene...\n\n{FFFFFF}Iznos place: {33AA33}%d\n{FFFFFF}Iznos bonusa: {33AA33}%d\n\n{FFFFFF}Ukupno: {33AA33}%d", plata, bonus, plata+bonus);
            ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX,"{FFFFFF}Isplata place", poruka, "Zatvori", "");
}
    }
}
}

CMD:posta(playerid, params[])
{
if(PlayerInfo[playerid][pPosao] != 6) return SendClientMessage(playerid, 0xB4B5B7FF, "Nemate posao raznosaca poste!");
if(PlayerInfo[playerid][RaznosenjePoste] > 0) return SendClientMessage(playerid, 0xB4B5B7FF, "*Vec imas aktivirano raznosenje poste!");
    new idvozila = GetPlayerVehicleID(playerid);
if(RaznosacPosteVozila(idvozila))
{
PlayerInfo[playerid][RaznosenjePoste] = 1;
SendClientMessage(playerid,0x33AA33AA,"Postanski ured ");
    SendClientMessage(playerid,0xFFFF00FF,"(Posao aktiviran) {FFFFFF}Utovari postu u skladistu i odvezi ih do kuca!");
        SendClientMessage(playerid,0xF0F8FFAA,"Pomoc:{C3C3C3} Na mapi ti je oznacena lokacija utovara poste! Utovari i razvezi postu!");
        SetPlayerCheckpoint(playerid, 957.1968,-1273.1892,14.9401, 5.00);
}
else
{
    SendClientMessage(playerid, 0xB4B5B7FF, "!");
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

ShowPlayerDialog(playerid, 0 - stoji ti 0 pa mozda zato pokazuje login stavi id dijaloga za ovo predvidjen, DIALOG_STYLE_MSGBOX,"{FFFFFF}Isplata place", poruka, "Zatvori", "");