• 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!

skull system problem lose items

drewestor

Member
Joined
Sep 30, 2011
Messages
102
Reaction score
7
Hi guys i got war server and here is script with "skulls" for frags

is script
function onKill(cid, target, lastHit)

if(getPlayerFrags(cid) >= 500 and getPlayerFrags(cid) < 2500) and getPlayerStorageValue(cid, 7000) ~= 1 then
doCreatureSetSkullType(cid, 2)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Congratulation! You gained Green Skull! You have killed 500 players.")
doBroadcastMessage("CONGRATULATIONS! ".. getCreatureName(cid) .." killed 500 players, he received the emblem - Green Skull!", MESSAGE_STATUS_CONSOLE_RED)
setPlayerStorageValue(cid, 7000, 1)
elseif(getPlayerFrags(cid) >= 2500 and getPlayerFrags(cid) < 5000) and getPlayerStorageValue(cid, 7001) ~= 1 then
doCreatureSetSkullType(cid, 3)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Congratulation! You gained White Skull! You have killed 2500 players.")
doBroadcastMessage("CONGRATULATIONS! ".. getCreatureName(cid) .." killed 2500 players, he received the emblem - White Skull!", MESSAGE_STATUS_CONSOLE_RED)
setPlayerStorageValue(cid, 7001, 1)
elseif(getPlayerFrags(cid) >= 5000 and getPlayerFrags(cid) < 10000) and getPlayerStorageValue(cid, 7002) ~= 1 then
doCreatureSetSkullType(cid, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Congratulation! You gained Yellow Skull! You have killed 5000 players.")
doBroadcastMessage("CONGRATULATIONS! ".. getCreatureName(cid) .." killed 5000 players, he received the emblem - Yellow Skull!", MESSAGE_STATUS_CONSOLE_RED)
setPlayerStorageValue(cid, 7002, 1)
elseif(getPlayerFrags(cid) >= 10000 and getPlayerStorageValue(cid, 7003) ~= 1 then
doCreatureSetSkullType(cid, 4)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Congratulation! You gained Red Skull! You have killed 10000 players.")
doBroadcastMessage("CONGRATULATIONS! ".. getCreatureName(cid) .." killed 10000 players, he received the emblem - Red Skull!", MESSAGE_STATUS_CONSOLE_RED)
setPlayerStorageValue(cid, 7003, 1)
end
return true
end



and problem is people lose items on red skull ,also on black skull 2x dmg and lose items.

i am use tfs 0.4 i must edit c++ for fx this? or what?
 
Back
Top