function onLook(cid, thing, position, lookDistance)
if isPlayer(thing) then
if getPlayerSex(thing) == 1 then
sex = "He"
else
sex = "She"
return doPlayerSendTextMessage(cid, "You see "..getCreatureName(thing)..", "..sex.." is a "..getPlayerVocationName(thing).." and "..sex.." is level "..getPlayerLevel(thing)..".")
end
end
return true
end
<event type="look" name="PlayerLook" event="script" value="playerlook.lua"/>
getPlayerVocationName(cid)
and where can i find tfs 0.3.5 luascript.ccp at?? because if i know even other lua functions that are not there i can improve other scripts and such.
registerCreatureEvent(cid, "PlayerLook")
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing) then
if getPlayerSex(thing) == 1 then
sex = "He"
else
sex = "She"
if sex then
doPlayerSendTextMessage(cid, 25, "You see "..getCreatureName(thing)..", "..sex.." is a "..getPlayerVocationName(thing).." and "..sex.." is level "..getPlayerLevel(thing)..".")
end
end
end
return true
end
function onLook(cid, thing, position, lookDistance)
if not isPlayer(thing) then
return true
end
return doPlayerSendTextMessage(cid, 25, "You see " .. getCreatureName(thing) .. ", " .. ((getPlayerSex(thing) == 1) and "he" or "she") .. " is a " .. getPlayerVocationName(thing) .. " and " .. ((getPlayerSex(thing) == 1) and "he" or "she") .." is level " .. getPlayerLevel(thing) .. ".")
end