- 0
Nu-mi dispare masina si textdraw cand mor .
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Konti.
Am o problema, desi am scris in OnPlayerDeath, OnPlayerExitVehicle si la OnPlayerSpawn sa se destruga masina si sa dispara textdraw, nu-mi merge ...
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.3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now