Ir para conteúdo

Featured Replies

Postado

Galera, to com um problema no meu sistema de rep e no meu sistema de reset, to usando um servidor 8.50.

 

O Problema do rep é que não esta somando, quando você da look aparece a quantidade, mas mesmo depois de matar varios players, a contagem continua zero. Aparece +30 ou - 30, mas nunca soma.

 

O Problema do reset é que quando alguem da look em mim, diz que tenho -1 reset e quando eu dou look em mim, aparece que não tenho nenhum reset. A partir do meu primeiro reset, quando alguém da look em mim, aparece que tenho não tenho nenhum reset, posso resetar 10x que continuar aparecendo que não tenho nenhum reset.

 

  -- >>> THE Players' REP++Sys by Cybermaster <<< --
-- >>> Scripted for TFS 0.2s, and older distros<<< --

function onLogin(cid)
if getPlayerStorageValue(cid, 2011) == -1 then
        setPlayerRep(cid, 0)
setPlayerStorageValue(cid, 2011, 1)
doPlayerPopupFYI(cid, "Your rank: \nNoob [======|======] \nYou have 0 rep points.")
end
        return TRUE
end 
-- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --

 function onDeath(cid, corpse, deathList)  
        if (isPlayer(cid) == true) then
                        if (getRepPoints(cid)==0) then
                                return true
                        elseif (getRepPoints(cid) > 0) then
                                removePlayerRep(cid, 5, TEXTCOLOR_RED)
                        else
                                addPlayerRep(cid, 5, TEXTCOLOR_RED)
                        end
        return true
        end
end
 -- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --

function onKill(cid, target, lastHit)
        if(isPlayer(target) ~= true) then
        return true
    end

        if (isPlayer(cid) == true) and (isPlayer(target) == true) then
                if getPlayerSkullType(target) == SKULL_WHITE then
                        addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)
		 elseif getPlayerSkullType(target) == SKULL_YELLOW then
                        addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_RED then
                        addPlayerRep(cid, 40, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_BLACK then
                        addPlayerRep(cid, 45, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_NONE then
                        removePlayerRep(cid, 30, TEXTCOLOR_RED)
                end
        return TRUE
        end
end
  -- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Credits to darkhaos in this script<<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --

function onLook(cid, thing, position, lookDistance)
        if(isPlayer(thing.uid) == true) then
                doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." is "..getRepRank(thing.uid).."")
        return true
    end            
return true
end 

Se precisar de mais códigos, eu posto!

Postado
  • Autor

Na verdade, quando o player mata alguém ele ganha rep- e se matar pk ganha rep+.

 

Mas aqui ta o sistema de add e remover:

 

  -- >>> THE Best REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --
-- >>> t[1] is Player Name, t[2] is Rep Amount<<< --

function onSay(cid, words, param)

if(param == "") then
        doPlayerSendCancel(cid,"You have to type a player name.")
    return TRUE
    end

local t = string.explode(param, ",")
local tid = getPlayerByName(t[1])

        if(isPlayer(tid) == false) then
                doPlayerSendCancel(cid, "Player " .. param .. " not found or is offline.")
    return TRUE
    end
       
        if getPlayerSex(tid) == 0 then
                sex = 'she'
        else
                sex = 'he'
        end
       
        if(not t[2]) and (isPlayer(tid) == true) then  
                if (words == '/hail') then
                        addPlayerRep(tid, 5, TEXTCOLOR_TEAL)
                        doPlayerSendCancel(cid, "You added +5 rep points to " .. getPlayerName(tid) .. ", and now " .. sex .. " has " .. getRepPoints(tid) .. " rep points.")
                        return true
                end
               
                if words == '/fuck' then
                        removePlayerRep(tid, 5, TEXTCOLOR_RED)
                        doPlayerSendCancel(cid, "You removed -5 rep points to " .. getPlayerName(tid) .. ", and now " .. sex .. " has " .. getRepPoints(tid) .. " rep points.")
                        return true
        end
        end
       
        if (t[2]) and (words == '/set') or (words == '/hail') or (words == '/fuck') then
                if (not tonumber(t[2])) then
                        doPlayerSendCancel(cid, "Rep amount invalid.")
                return true
                end                                    
        end
       
        if words == '/hail' then
                addPlayerRep(tid, t[2], TEXTCOLOR_TEAL)
                doPlayerSendCancel(cid, "You added  " .. t[2] .. " rep points to " .. getPlayerName(tid) .. ", and now " .. sex .. " has " .. getRepPoints(tid) .. " rep points.")
                return true
        end
               
        if words == '/fuck' then
                removePlayerRep(tid, t[2], TEXTCOLOR_RED)
                doPlayerSendCancel(cid, "You removed  " .. t[2] .. " rep points to " .. getPlayerName(tid) .. ", and now " .. sex .. " has " .. getRepPoints(tid) .. " rep points.")
                return true
        end
               
        if (t[2]) and (words == '/set') then
                setPlayerRep(tid, t[2])
                doPlayerSendCancel(cid, "You have set " .. getPlayerName(tid) .. "'s rep points to " .. getRepPoints(tid) .. ".")
        else
                doPlayerSendCancel(cid, "Absolute rep amount not specified.")
                return true
        end
       
        if(not t[2]) then
                doPlayerSendCancel(cid, "Absolute rep amount not specified.")
                return true
        end
       
        return true
end 

 

REP INFO:

 

  -- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --

function onSay(cid, words, param, channel)

local o, points, action = getCreatureOutfit(cid), getRepPoints(cid), false --do not modify
doPlayerSendTextMessage(cid, 19, "You have " .. points .. " rep points. You are " .. getRepRank(cid) .. ".")
        if points > 4999 and getPlayerSex(cid) == 0 then --female rep+++ queen outfit
                disguise, text, action = {lookType = 331}, "Queen!!", true
        elseif points > 4999 and getPlayerSex(cid) > 0 then --male rep+++ king outfit
                disguise, text, action = {lookType = 332}, "King!!", true
        elseif points > 2499 then --rep++ cm outfit
                disguise, text, action = {lookType = 306}, "Legend!!", true
        elseif points > 1499 then --rep+ hero outfit
                disguise, text, action = {lookType = 73}, "Hero!!", true
        elseif points < -4999 and getPlayerSex(cid) == 0 then --rep*** female outfit
                disguise, text, action = {lookType = 312}, "DarkLord!!", true
	elseif points < -4999 and getPlayerSex(cid) > 0 then --rep*** male outfit
                disguise, text, action = {lookType = 287}, "DarkLord!!", true
        elseif points < -2499  then --rep** pig outfit --
                disguise, text, action = {lookType = 300}, "Morte!!", true
        elseif points < -1499 then --rep* orc outfit --
                disguise, text, action = {lookType = 194}, "Gangster!!", true
        end
        if action == true then
                doCreatureChangeOutfit(cid, disguise)
                doSendAnimatedText(getCreaturePosition(cid), text, math.random(01,255))
        return true
        end
end 

 

 

EDIT

Tem esses tbm. REP DEATH:

-- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --

 function onDeath(cid, corpse, deathList)  
        if (isPlayer(cid) == true) then
                        if (getRepPoints(cid)==0) then
                                return true
                        elseif (getRepPoints(cid) > 0) then
                                removePlayerRep(cid, 5, TEXTCOLOR_RED)
                        else
                                addPlayerRep(cid, 5, TEXTCOLOR_RED)
                        end
        return true
        end
end

 

REP KILL:

 -- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --

function onKill(cid, target, lastHit)
        if(isPlayer(target) ~= true) then
        return true
    end

        if (isPlayer(cid) == true) and (isPlayer(target) == true) then
                if getPlayerSkullType(target) == SKULL_WHITE then
                        addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)
		 elseif getPlayerSkullType(target) == SKULL_YELLOW then
                        addPlayerRep(cid, 30, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_RED then
                        addPlayerRep(cid, 40, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_BLACK then
                        addPlayerRep(cid, 45, TEXTCOLOR_LIGHTBLUE)
                elseif getPlayerSkullType(target) == SKULL_NONE then
                        removePlayerRep(cid, 30, TEXTCOLOR_RED)
                end
        return TRUE
        end
end

 

REP LOOK:

  -- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Credits to darkhaos in this script<<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --

function onLook(cid, thing, position, lookDistance)
        if(isPlayer(thing.uid) == true) then
                doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." is "..getRepRank(thing.uid).."")
        return true
    end            
return true
end 

 

Editado por PsyMcKenzie (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo