Wl problem
#1

Hi guys.
I have problem. This lines of code is in OnPlayerDeath and i think everything works except this if. I
tried and getplayerwantedlevel and setplayerwanted level but that didnt work...
This lines of code work like this.
If you die with wantedlevel you lose wanted level and cash*wantedlevel and wanted level need to be set on 0!
But its not working and no showing SCMF!
Can you help me? Thanks
Код:
////////////////////////////////////////////////////////////
	if(PlayerInfo[playerid][pTrazeniLevel] > 0)
	{
	    new string[256];
		g_NovacMinus(playerid, PlayerInfo[playerid][pTrazeniLevel]*3000);
		SCMF(playerid, -1, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", PlayerInfo[playerid][pTrazeniLevel]*3000, PlayerInfo[playerid][pTrazeniLevel]);
	    PlayerInfo[playerid][pTrazeniLevel] = 0;
		format(string,sizeof(string),""CRVENA"[GA:RP] "BELA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
		CFBIPD(-1, string);
		SetPlayerColor(playerid, BELA2);
    }
    ////////////////////////////////////////////////////////////
Reply


Messages In This Thread
Wl problem - by defaultsrb - 21.02.2018, 19:05
Re: Wl problem - by David (Sabljak) - 21.02.2018, 20:44
Re: Wl problem - by defaultsrb - 21.02.2018, 20:50
Re: Wl problem - by defaultsrb - 21.02.2018, 20:58
Re: Wl problem - by David (Sabljak) - 22.02.2018, 16:09
Re: Wl problem - by defaultsrb - 22.02.2018, 17:41
Re: Wl problem - by David (Sabljak) - 22.02.2018, 18:42

Forum Jump:


Users browsing this thread: 3 Guest(s)