SA-MP Forums Archive
bugged on wanted lvl - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: bugged on wanted lvl (/showthread.php?tid=415097)



bugged on wanted lvl - blackdragon1 - 11.02.2013

i want stop the wanted lvl on 6. they are going to 10 , 12 and alot. but i want stop it on 6 after if some one crime so they show to him 6.


Re: bugged on wanted lvl - DaRk_RaiN - 11.02.2013

pawn Код:
if(GetPlayerWantedLevel(playerid) >6){SetPlayerWantedLevel(playerid,6);}



Re: bugged on wanted lvl - blackdragon1 - 11.02.2013

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
pawn Код:
if(GetPlayerWantedLevel(playerid) >6){SetPlayerWantedLevel(playerid,6);}
not working

PHP код:
stock SetPlayerWanted(playeridlevel) {
    if (
level sizeof(WantedLevelStars)) level sizeof(WantedLevelStars);
    if (
level 0level 0;
    if(
GetPlayerWantedLevel(playerid) >6){SetPlayerWantedLevel(playerid,6);
    
PlayerInfo[playerid][pWanted] = level;
    
SetPlayerWantedLevel(playeridWantedLevelStars[level]);
    return 
level;