PsyMcKenzie
New Member
- Joined
- Apr 24, 2012
- Messages
- 35
- Reaction score
- 1
Greetings OTLand friends!
I'm having a problem with my reputation system and my reset system, I'm using a server 8.50 - 0.3.4.
The problem is that the reputation point and resets are not being counted when I look at some player.
I'm having a problem with my reputation system and my reset system, I'm using a server 8.50 - 0.3.4.
The problem is that the reputation point and resets are not being counted when I look at some player.
LUA:
-- >>> 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
LUA:
-- >>> 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
LUA:
-- >>> 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
LUA:
-- >>> 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
Last edited: