• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

SecureMode

Kurwa, nauczcie się w końcu - nie komplikuje się silnika.
 
Nic nie wnosicie do tematu ;d
to jest polisz bołrd.

Lua:
 function onAttack(cid) if getPlayerSecureMode(cid) then doPlayerSendCancel("You cannot attack with undmarked secure mode.") return FALSE else return TRUE end
 
Mod dla opornych. Wystarczy wrzucić tylko do mods. Działa jak wyżej, tylko bez wiadomości.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="14224CB:F" version="1.0" author="Ralcoral" contact="otland.net/members/ralcoral/" enabled="yes">

    <event type="login" name="[14224CB:F]-login" event="buffer">]]>
        registerCreatureEvent(cid, "[14224CB:F]-statschange")
    ]]></event>
    
    <event type="statschange" name="[14224CB:F]-statschange" event="buffer">]]>
        return (not getPlayerSecureMode(cid))
    ]]></event>
</mod>
 
Tak gdyż w tym temacie chodzi o co innego a nie nauke pisania i pomyli się każdy może.

Ta, tylko potem tacy jak ty zamiast szukać tematów jak skompilować silnik to szukają jak skomplikować i potem płacz, że nie ma żadnego tutoriala o tym...
 
Masz jakiś konkretny błąd, czy nie działa bez żadnej wiadomości?
 

Similar threads

Back
Top