Ir para conteúdo
  • 0

[PEDIDO] AJUSTE SISTEMA REP


TomProgammer

Pergunta

Falaaa xtibianos...

 

Galera, to com um script aqui, de rep system, queria saber se alguem consegue privar ele pra um sistema, que matar o player com o msm IP, não da rep.. Entendeu? Sempre tem os safadinhos que abrem MC e vão ficar matando o MC pra ganhar rep.. Será que também consigo tira o sistema da database? As vezes da um lagzin ao player morrer, creio eu q seja por causa da db..

 

 

Link para o comentário
Compartilhar em outros sites

9 respostass a esta questão

Posts Recomendados

  • 0

Vê assim:

function onKill(cid, target, lastHit)
	if(isPlayer(target) ~= true) then
	return true
	end
	
	if getPlayerIp(cid) ~= getPlayerIp(target) then
        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
	else
		doPlayerSendCancel(cid, "The IP of your enemy has to be different from yours.")
	
return true
end
end
Link para o comentário
Compartilhar em outros sites

  • 0

Manda os scripts do sistema.

 

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

 

 

 

Creature Script

Link para o comentário
Compartilhar em outros sites

  • 0


function onKill(cid, target, lastHit)

if(isPlayer(target) ~= true) then

return true

end

 

if getPlayerIp(cid) ~= getPlayerIp(target) then

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

else

doPlayerSendCancel(cid, "The IP of your enemy has to be different from yours.")

end

end

 

Link para o comentário
Compartilhar em outros sites

  • 0

post-388345-0-33285900-1451246001_thumb.png

function onKill(cid, target, lastHit) if(isPlayer(target) ~= true) then return true end if getPlayerIp(cid) ~= getPlayerIp(target) then 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 else doPlayerSendCancel(cid, "The IP of your enemy has to be different from yours.") end end

 

 

 

Dan, o sistema não deixa o player morrer, acc pega life 0, mas eu ainda consigo locomover as acc mesmo estando com vida 0.post-388345-0-32685500-1451246400_thumb.png

Editado por TomProgammer
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...