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

Need Help in (in games commands for God)

Xraze

★★★Mapper★★★
Joined
Oct 31, 2014
Messages
76
Reaction score
14
Location
Lebanon
How to
>Give blue shield and red shield for players in game using God
>Give Green Skull in game for players using God

And now how can i remove red and black skull action which makes you loss all your items
 
What TFS do you use?

Try this script I guess that you mean this:

Step 1:

Create this creatureevent:
HTML:
local storage = xxxx
    function onKill(cid, target)

local frags = getPlayerStorageValue(cid, storage)
    if(isPlayer(target)) then
        setPlayerStorageValue(cid, storage, frags+1)
        if(frags < 10) then
            doCreatureSetSkullType(cid, SKULL_GREEN)
        elseif(frags < 20) then
        doCreatureSetSkullType(cid, SKULL_WHITE)
    elseif(frags < 30) then
        doCreatureSetSkullType(cid, SKULL_RED)
    elseif(frags > 39) then
        doCreatureSetSkullType(cid, SKULL_BLACK)
        end
    end
  return true
end

Step 2:

And just add this to your login script anywhere in the onLogin function:
HTML:
setPlayerStorageValue(cid, xxxx, 0)

Step 3:

And create a new frag checker talkaction and just put this:
HTML:
function onSay(cid, words, param, channel)
    if(getPlayerStorageValue(cid, xxxx) < 1) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You currently have no frags.")
    elseif(getPlayerStorageValue(cid, xxxx) == 1) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You currently have 1 frag.")
        else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You currently have ".. getPlayerStorageValue(cid, xxxx) .." frags.")
        end
    return true
end


Don't forget
to replace the "xxxx" in the onKill function for storage value, and the "xxxx" in the frag checker.
 
K i did this but when i kill some one it still say to me
00:25 You currently have 0 frags today, 0 this week and 0 this month.
00:25 Your red skull will expire at 13 December 2014 01:50:26


OK how can i make the skull system a level system like for example if your the highest level in the server gets Black skull 2 highest Red skull 3 highest green skull 4 highest yellow skull 5 highest Whit skull
So
1st Black skull
2nd
Red skull
3d Green skull
4th Yellow skull
5th White skull
 
Last edited by a moderator:
I'd be interested in seeing how this is implemented, whether or not it's practical for most servers. :p
You also forgot one colour,
Orange Skull ;)

To maybe help this post along, I believe he wishes for this,

I would like to make it so the skull system no longer exists at it currently does.
I would like to make it so skulls signify how high in the experience ladder you are.
Black skull = 1st
Red skull = 2nd
Orange = 3rd
Yellow = 4th-7th
Green = 8th-15th
White = 16th -30th
Everyone else = nothing.
This would give players a quick glance at how awesome they are, and let others know how particularly awesome a single person is!
 
Last edited:
Do you want the skulls based on amount of kills or that the 5 people with the most kills get these skulls and other people don't?
 
Ya the people with the highst level get these skull and the other dont
Black skull = 1st
Red skull = 2nd
Orange = 3rd
Yellow = 4th-5th
Green = 6th-7th
White = 8th
Everyone else = nothing.
(is there even a orange skull)
 
Back
Top