- 0
Nu-mi dispare masina si textdraw cand mor .
-
Similar Content
-
- 0 replies
- 247 views
-
- 9 replies
- 432 views
-
- 7 replies
- 325 views
-
- 6 replies
- 353 views
-
- 3 replies
- 473 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.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.