pomocy jak zrobic takie cos

boroo1994

Advanced User
Zarejestrowany
Dołączył
Lipiec 8, 2009
Posty
216
Liczba reakcji
14
jak zrobic zeby nie dalos ie wejsc na mc tzn ze nie moga byc 2x ip na servie te same. help!
 
Odp: pomocy jak zrobic takie cos

Utw?rz plik w data\globalevents\scripts\ o nazwie anty mc a w nim:
Kod:
function onLogin(cid) 
    if (getPlayerGroupId(cid) <= config.group_id) then 
        if (isInArray(accepted_ip_list,getPlayerIp(cid)) == FALSE) then
            if (isPlayerPzLocked(cid) == false) then
                addEvent(antiMC, 250, {pid = cid, max = config.max+0}) 
                doPlayerPopupFYI(cid, "You have been kicked because you are using Multi-Client.") 
            end
        end
    end 
    return TRUE 
end

Do data\globalevents\globalevents.xml dodaj:
Kod:
	<globalevent name="anty mc" interval="30" event="script" value="anty mc.lua"/>
Powinno dzia?a? :)

Pozdrawiam,

Miauuuu
 
Odp: pomocy jak zrobic takie cos

w moim silniku nie mam globalevents gdzie to mozna jeszcze dodac?
 
Back
Do góry