• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

is there this function

Ralfegor

New Member
Joined
Apr 6, 2008
Messages
297
Reaction score
1
i need a function something to set the access of the player like setPlayerAccess(cid, 1) to make the player Tutor
 
LUA:
function onUse(cid, item, frompos, item2, topos)
    if getPlayerGroupId(cid) <= 1 then
        setPlayerGroupId(cid, 2)
        doPlayerSendTextMessage(cid, 24, "You have been promoted to Tutor.")
    return TRUE
    end

    if getPlayerGroupId(cid) == 2 then
        setPlayerGroupId(cid, 3)
        doPlayerSendTextMessage(cid, 24, "You have been promoted from Tutor to Gamemaster.")
    return TRUE
    end
end
 
Back
Top