21.02.2018, 19:05
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
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); } ////////////////////////////////////////////////////////////