[Pedido] Code para perder wanted com o tempo
#1

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!
Reply
#2

Й 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;
}
Reply
#3

onde define o tempo?
Reply
#4

https://sampwiki.blast.hk/wiki/SetTimer
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)