i can use in global 8.6?
Look closely and you shall find.Where is the onLogout file?
And make sure to add this on your logout sctipt
Top:
LUA:dofile("./petConfig.lua")
and inside the onLogut:
LUA:if isCreature(getPlayerStorageValue(cid, storages.petUid)) == 1 then if getPlayerStorageValue(cid, storages.petIsOnline) == 2 then setPlayerStorageValue(cid, storages.petIsOnline, 1) end end
For noobs ¬¬:
Regards, all credits goes to FedeVI.LUA:dofile("./petConfig.lua") function onLogout(cid) if isCreature(getPlayerStorageValue(cid, storages.petUid)) == 1 then if getPlayerStorageValue(cid, storages.petIsOnline) == 2 then setPlayerStorageValue(cid, storages.petIsOnline, 1) end end return TRUE end
dofile("./petConfig.lua")
function onLogout(cid)
if isCreature(getPlayerStorageValue(cid, storages.petUid)) == 1 then
if getPlayerStorageValue(cid, storages.petIsOnline) == 2 then
setPlayerStorageValue(cid, storages.petIsOnline, 1)
end
end
return TRUE
end