Jump to content

Problema Dealership


CristiBoss211

Recommended Posts

Salut, adaugi la OnPlayerClickTextDraw

If clickedid == INVALID_TEXT_DRAW

si adaugi scriptul pentru inchidere dealer, adica if indealer == 1 ascunzi textdrawurile distrugi masina setezi pozitia la player etc etc.

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

24 minutes ago, Mister said:

Salut, adaugi la OnPlayerClickTextDraw

If clickedid == INVALID_TEXT_DRAW

si adaugi scriptul pentru inchidere dealer, adica if indealer == 1 ascunzi textdrawurile distrugi masina setezi pozitia la player etc etc.

Fami tu direct eu decat sa le dau copy si sa le pun ca asa nu prea inteleg

Link to comment
Share on other sites

uite asa e la mine cand bag alea zice ca sunt invalide pl m ..

 

 

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
   
    if(esteintx[playerid] > 0)
    {
        GarajeDrawHide(playerid);
    }
    if(esteinchest[playerid] > 0)
    {
        hidechest(playerid);
    }
    if(esteinds[playerid] > 0)
    {
        DealerShipTextDrawHide(playerid);
        CancelSelectTextDraw(playerid);
        esteinds[playerid] = -1;
        DestroyVehicle(DSCAR[playerid]);
        SetCameraBehindPlayer(playerid);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPosEx(playerid, -1664.1561,1207.6320,7.2546);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    return 1;
}

Link to comment
Share on other sites

La 29.11.2019 la 11:50, CristiBoss211 a spus:

Fami tu direct eu decat sa le dau copy si sa le pun ca asa nu prea inteleg

Niciodata nu vei intelege daca dai doar copy paste ca idee

 

La 29.11.2019 la 11:57, CristiBoss211 a spus:

uite asa e la mine cand bag alea zice ca sunt invalide pl m ..

 

 

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(esteinds[playerid] > 0 && clickedid == INVALID_TEXT_DRAW)
    {
        DealerShipTextDrawHide(playerid);
        CancelSelectTextDraw(playerid);
        esteinds[playerid] = -1;
        DestroyVehicle(DSCAR[playerid]);
        SetCameraBehindPlayer(playerid);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPosEx(playerid, -1664.1561,1207.6320,7.2546);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    return 1;
}

Asta ar fi functia de la Dealership inlocuiesti tu

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.