How make that if your sex is female npc for 'hi' says 'Hello Lady' and if your sex is male npc says 'Hello Sir'?
if msgcontains(msg, "hi") then
if getPlayerSex(cid) == 0 then
npcHandler:say("Hello Lady", cid, true)
else
npcHandler:say("Hello Sir", cid, true)
end
npcHandler:addFocus(cid)
LUA:if msgcontains(msg, "hi") then if getPlayerSex(cid) == 0 then npcHandler:say("Hello Lady", cid, true) else npcHandler:say("Hello Sir", cid, true) end npcHandler:addFocus(cid)
if msgcontains(msg, "hi") or msgcontains(msg, "hello") then
if getPlayerSex(cid) == 0 then
npcHandler:say("Hello Lady |PLAYERNAME|!", cid, true)
else
npcHandler:say("Hello Sir |PLAYERNAME|!", cid, true)
end
npcHandler:addFocus(cid)