Jump to content
  • 0

Nu-mi dispare masina si textdraw cand mor .


Konti.

Question

Am o problema, desi am scris in OnPlayerDeath, OnPlayerExitVehicle si la OnPlayerSpawn sa se destruga masina si sa dispara textdraw, nu-mi merge ...

Spoiler

if(gGamersLowRiders[0] != INVALID_PLAYER_ID)
    {
        if(StartServerRiders == true)
        {
            StartServerRiders = false;
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[0]);
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[1]);
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[2]);
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[3]);
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[4]);
            PlayerTextDrawHide(gGamersLowRiders[0], LRArrows[gGamersLowRiders[0]][0]);
            PlayerTextDrawHide(gGamersLowRiders[0], LRArrows[gGamersLowRiders[0]][1]);
            PlayerTextDrawHide(gGamersLowRiders[0], LRArrows[gGamersLowRiders[0]][2]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[0]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[1]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[2]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[3]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[4]);
            PlayerTextDrawHide(gGamersLowRiders[1], LRArrows[gGamersLowRiders[1]][0]);
            PlayerTextDrawHide(gGamersLowRiders[1], LRArrows[gGamersLowRiders[1]][1]);
            PlayerTextDrawHide(gGamersLowRiders[1], LRArrows[gGamersLowRiders[1]][2]);
            DestroyVehicle(PlayerVehicleID[gGamersLowRiders[0]]), DestroyVehicle(PlayerVehicleID[gGamersLowRiders[1]]);
            gGamersLowRiders[0] = INVALID_PLAYER_ID, gGamersLowRiders[1] = INVALID_PLAYER_ID;
            PlayerVehicleID[gGamersLowRiders[0]] = INVALID_VEHICLE_ID, PlayerVehicleID[gGamersLowRiders[1]] = INVALID_VEHICLE_ID;
            SetPlayerPosEx(gGamersLowRiders[1], 1653.9709,-1656.2483,22.5156);
            SetPlayerVirtualWorld(gGamersLowRiders[1], 0);
            SCM(gGamersLowRiders[1], -1, "Oponetul tau a iesit din masina sa, respectiv a pierdut .");
            SCM(gGamersLowRiders[1], -1, "Deci tu esti castigatorul si primesti 15.000 $ .");
            GivePlayerCash(gGamersLowRiders[1], 15000);
            SCM(gGamersLowRiders[0], -1, "Deoarece ai murit ai fost exclus din competitie .");
            SetPlayerVirtualWorld(gGamersLowRiders[0], 0);
        }
        else
        {
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[0]);
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[1]);
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[2]);
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[3]);
            TextDrawHideForPlayer(gGamersLowRiders[0], LRRightBox[4]);
            PlayerTextDrawHide(gGamersLowRiders[0], LRArrows[gGamersLowRiders[0]][0]);
            PlayerTextDrawHide(gGamersLowRiders[0], LRArrows[gGamersLowRiders[0]][1]);
            PlayerTextDrawHide(gGamersLowRiders[0], LRArrows[gGamersLowRiders[0]][2]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[0]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[1]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[2]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[3]);
            TextDrawHideForPlayer(gGamersLowRiders[1], LRRightBox[4]);
            PlayerTextDrawHide(gGamersLowRiders[1], LRArrows[gGamersLowRiders[1]][0]);
            PlayerTextDrawHide(gGamersLowRiders[1], LRArrows[gGamersLowRiders[1]][1]);
            PlayerTextDrawHide(gGamersLowRiders[1], LRArrows[gGamersLowRiders[1]][2]);
            DestroyVehicle(PlayerVehicleID[gGamersLowRiders[0]]), DestroyVehicle(PlayerVehicleID[gGamersLowRiders[1]]);
            gGamersLowRiders[0] = INVALID_PLAYER_ID, gGamersLowRiders[1] = INVALID_PLAYER_ID;
            PlayerVehicleID[gGamersLowRiders[0]] = INVALID_VEHICLE_ID, PlayerVehicleID[gGamersLowRiders[1]] = INVALID_VEHICLE_ID;
            SetPlayerPosEx(gGamersLowRiders[1], 1653.9709,-1656.2483,22.5156);
            SetPlayerVirtualWorld(gGamersLowRiders[1], 0);
            SetPlayerPosEx(gGamersLowRiders[0], 1653.9709,-1656.2483,22.5156);
            SetPlayerVirtualWorld(gGamersLowRiders[0], 0);
        }
    }

E un sistem de lowriders, gGamersLowRider[0] e primul si respectiv gGamersLowRider[1] e al doilea jucator.

Cand meciul se incepe, si cnv castiga toate acestea dispar, si am copiat codul de acolo si l-am bagat la functiile de mai sus ( OnPlayerDeath, OnPlayyerExitVehicle, OnPlayerSpawn), dar oricum nu merge ...

Edited by Elody.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   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.