[Pedido] Code para perder wanted com o tempo - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Code para perder wanted com o tempo (
/showthread.php?tid=527059)
Code para perder wanted com o tempo -
Rafael_Loss - 20.07.2014
Galera, no meu gm, o player sу perde procurado quando й preso! Precisava de um code para perder nнvel de procura a cada 10 minutos!
Valeu!
Re: Code para perder wanted com o tempo -
zSuYaNw - 20.07.2014
Й Sу Criar o "SetPlayerTimer" No OnGameModeInit
pawn Код:
forward PerderWanted(); public PerderWanted(){
for(new i, e= GetMaxPlayers(); i != e; ++i){
if(IsPlayerConnected(i)){
static pWANTED;
pWANTED = GetPlayerWantedLevel(playerid);
if(pWANTED != 0){
pWANTED --;
SetPlayerWantedLevel(playerid, pWANTED);
}
}
}
return 1;
}
Re: Code para perder wanted com o tempo -
Rafael_Loss - 20.07.2014
onde define o tempo?
Re: Code para perder wanted com o tempo -
zSuYaNw - 20.07.2014
https://sampwiki.blast.hk/wiki/SetTimer