Jump to content
  • 0
Sign in to follow this  
caltabos

paint burned

Question

dupa cum se vede in poza, sistemul nu da reset la arme si la kill-uri jucatorului care a castigat!sa-mp-009.png.0fef92e273d0f2f9d6e037bd6fcd8f3e.pngdar in sistem "se da":Screenshot_1.png.f091fece2b94f1863c997791cf2b7fb7.png

Asta ar fi partea legata de reset:
 

			if(PaintType[i] != 0 && PlayersOnPaint(PaintType[i]-1) >= 2) {
				new pp = PaintType[i]-1;
				if(pp < 2) {
					format(string, sizeof(string), "Paintball time: %s~n~Current map: %s~n~Stats: %d kills, %d deaths.~n~Total score: %d~n~Best player: %s (kills: %d)~n~%d players in paintball.",
					CalculeazaTimp2(PaintTime[pp]), MapName(pp), PKills[i], PDeaths[i], PKills[i]-PDeaths[i], GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]], PlayersOnPaint(pp));
				}
				else {
					new masadenume[32];
					GetWeaponNameEx(GetPlayerWeapon(i), masadenume, sizeof(masadenume));

					format(string, sizeof(string), "Paintball time: %s~n~Current map: %s~n~Stats: %d kills, %d deaths.~n~Total score: %d~n~Level %d, Weapon: %s~n~Best player: %s (kills: %d)~n~%d players in paintball.",
					CalculeazaTimp2(PaintTime[pp]), MapName(pp), PKills[i], PDeaths[i], PKills[i]-PDeaths[i], GetPaintLevel(i), masadenume, GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]], PlayersOnPaint(pp));
				}
				
				if(PaintTime[pp] == 0 && PaintballWinner[pp] != -1) {
					for(new m = 0; m < 5; m++) SendDeathMessageToPlayer(i, 1001, 1001, 200);
					format(string, sizeof(string), "Statistica ta in aceasta runda: %d ucideri si %d decese.", PKills[i], PDeaths[i]);
					SCM(i, COLOR_YELLOW, string);					
					format(swinner, 256, "* %s a castigat runda cu %d ucideri.", GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]]);								
					PKills[i] = 0, PDeaths[i] = 0;
					ResetWeapons(i);				
					PaintballWinnerScore[pp] = 0;					
					SendPaintMessage(PaintType[i], COLOR_YELLOW, swinner);
					PaintballWinner[pp] = -1;					
				}
				if(PaintTime[pp] != 0 && PaintText[pp] == 0) {
					PlayerTextDrawSetString(i, PaintTD, string);
					PlayerTextDrawShow(i, PaintTD);					
				}	
				else {					
					PlayerTextDrawHide(i, PaintTD);	
				}	
			}
			else PlayerTextDrawHide(i, PaintTD);	

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Acum 8 ore, Adel a spus:

Incearcă 


ResetPlayerWeapons(i);

nu a mers

tura asta cand am incercat nu a dat reset la playeru care a pierdut runda

Share this post


Link to post
Share on other sites
  • 0
Acum 18 ore, caltabos a spus:

nu a mers

tura asta cand am incercat nu a dat reset la playeru ca

  

if(PaintType[i] != 0 && PlayersOnPaint(PaintType[i]-1) >= 2) {
				new pp = PaintType[i]-1;
				if(pp < 2) {
					format(string, sizeof(string), "Paintball time: %s~n~Current map: %s~n~Stats: %d kills, %d deaths.~n~Total score: %d~n~Best player: %s (kills: %d)~n~%d players in paintball.",
					CalculeazaTimp2(PaintTime[pp]), MapName(pp), PKills[i], PDeaths[i], PKills[i]-PDeaths[i], GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]], PlayersOnPaint(pp));
				}
				else {
					new masadenume[32];
					GetWeaponNameEx(GetPlayerWeapon(i), masadenume, sizeof(masadenume));

					format(string, sizeof(string), "Paintball time: %s~n~Current map: %s~n~Stats: %d kills, %d deaths.~n~Total score: %d~n~Level %d, Weapon: %s~n~Best player: %s (kills: %d)~n~%d players in paintball.",
					CalculeazaTimp2(PaintTime[pp]), MapName(pp), PKills[i], PDeaths[i], PKills[i]-PDeaths[i], GetPaintLevel(i), masadenume, GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]], PlayersOnPaint(pp));
				}
				
				if(PaintTime[pp] == 0 && PaintballWinner[pp] != -1) {
					for(new m = 0; m < 5; m++) SendDeathMessageToPlayer(i, 1001, 1001, 200);
					format(string, sizeof(string), "Statistica ta in aceasta runda: %d ucideri si %d decese.", PKills[i], PDeaths[i]);
					SCM(i, COLOR_YELLOW, string);					
					format(swinner, 256, "* %s a castigat runda cu %d ucideri.", GetName(PaintballWinner[pp]), PKills[PaintballWinner[pp]]);								
					PKills[i] = 0, PDeaths[i] = 0;
					ResetWeapons(i);				
ResetPlayerWeapons(i)					PaintballWinnerScore[pp] = 0;					
					SendPaintMessage(PaintType[i], COLOR_YELLOW, swinner);
					PaintballWinner[pp] = -1;					

ResetPlayerWeapons(i)
				}
				if(PaintTime[pp] != 0 && PaintText[pp] == 0) {
					PlayerTextDrawSetString(i, PaintTD, string);
					PlayerTextDrawShow(i, PaintTD);					
				}	
				else {					
					PlayerTextDrawHide(i, PaintTD);	
				}	
			}
			else PlayerTextDrawHide(i, PaintTD);	

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.