• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

GAY Level

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
I nor tested but I have certainty almost that he will not go to function, then I I go to ask for aid.

PHP:
---------------------------------
function onLogin(cid)
---------------------------------
         local gay = 24
       local say = I am GAY!
     local sex = 1
---------------------------------
      getPlayerLevel(cid, gay)
    getPlayerSex (cid, sex)
---------------------------------
   doCreatureSay(cid, say)
---------------------------------
return TRUE
---------------------------------
end
---------------------------------

I do not know to make scripts.
 
Last edited:
---------------------------------
function
onLogin(cid)
---------------------------------
local gay = 24
local say
= I am GAY!
local sex = 1
---------------------------------
if
getPlayerLevel(cid) = gay and getPlayerSex(cid) = sex then
doCreatureSay(cid, say)
---------------------------------
return
TRUE
---------------------------------
end
end
---------------------------------

-- test it ^^ --
 
PHP:
local gay = 24
local say = "I am GAY!"
local sex = 1

function onLogin(cid)
    if getPlayerLevel(cid) == gay and getPlayerSex (cid) == sex then
        doCreatureSay(cid, say)
    end
    return TRUE
end

If you're level 24 and you're a male while logging in, it will say "I am GAY!", is that how you wanted it? :P
 
PHP:
local gay = 24
local sayGay = "I am GAY!"
local sayLesb = "I am LESBIAN!"
local sex = 1

function onLogin(cid)
    if getPlayerLevel(cid) == gay then
       if getPlayerSex(cid) == sex then
           doCreatureSay(cid, sayGay, TALKTYPE_SAY)
       else
           doCreatureSay(cid, sayLesb, TALKTYPE_SAY)
       end
    end
    return TRUE
end

Why not add a lesbian too? :(
 
Is it possible to use a sign as definition?
I mean -> option = >
and then
if getPlayerLevel(cid) option level then...
 
Back
Top