straher
???
- Joined
- Mar 23, 2010
- Messages
- 255
- Reaction score
- 3
w support nikt chyba nie znal rozwiazania wiec probuje tutaj
mam taki skrypt:
w konsoli nie wyrzuca zadnych bledow, ale skulli tez nie ustawia
mam taki skrypt:
Lua:
function onKill(cid, target, lastHit)
if cid ~= target and isPlayer(target) then
if(getPlayerStorageValue(cid, 20233) > 1) and getCreatureStorage(cid, 6001) == -1 then
setPlayerStorageValue(cid, 6001, 1)
doCreatureSetSkullType(cid, 1)
elseif(getPlayerStorageValue(cid, 20233) > 20) and getCreatureStorage(cid, 6002) == -1 then
setPlayerStorageValue(cid, 6002, 1)
doCreatureSetSkullType(cid, 2) -- 3 is red
elseif(getPlayerStorageValue(cid, 20233) > 50) and getCreatureStorage(cid, 6003) == -1 then
setPlayerStorageValue(cid, 6003, 1)
doCreatureSetSkullType(cid, 3) -- 5 is black
elseif(getPlayerStorageValue(cid, 20233) > 100) and getCreatureStorage(cid, 6005) == -1 then
setPlayerStorageValue(cid, 6005, 1)
doCreatureSetSkullType(cid, 4)
elseif(getPlayerStorageValue(cid, 20233) > 150) and getCreatureStorage(cid, 6006) == -1 then
setPlayerStorageValue(cid, 6006, 1)
doCreatureSetSkullType(cid, 5)
end
end
return true
end
w konsoli nie wyrzuca zadnych bledow, ale skulli tez nie ustawia