- 0
Nu-mi dispare masina si textdraw cand mor .
-
Similar Content
-
Am o problema cu un battlepass,de ce nu merge comanda /misiuni cand o scriu,tin sa precizez ca script-ul mi l-a facut chatgpt
By cbnmihaita,
- 2 answers
- 533 views
-
Am o problema cu un special quest de iarna,sunt la inceput cu scripting-ul si am o problema,cand intru in raza de checkpoint nu se intampla absolut nimic,stie cineva de ce?
By cbnmihaita,
- 2 answers
- 598 views
-
- 9 replies
- 1,027 views
-
Salut,imi apare asta cand pornesc serverul,dar eu am bagat acolo in server.cfg ce e nevoie,imi puteti spune va rog problema ?
By leoo671,
- 0 replies
- 912 views
-
- 6 replies
- 912 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.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