You want to do it because you do not have access to the server? Or if you enough create a new command to give GM?
Use this functions:
Code:Player.setGroup(group) Player.setAccountType(accountType)
function onSay(cid, words, param)
local player = Player(cid)
if player:getAccountType() <= ACCOUNT_TYPE_TUTOR then
return true
end
local target = Player(param)
if target == nil then
player:sendCancelMessage("A player with that name is not online.")
return false
end
if target:getAccountType() ~= ACCOUNT_TYPE_NORMAL then
player:sendCancelMessage("You can only promote a normal player to a tutor.")
return false
end
target:setAccountType(ACCOUNT_TYPE_TUTOR)
target:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been promoted to a tutor by " .. player:getName() .. ".")
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have promoted " .. target:getName() .. " to a tutor.")
return false
end
ACCOUNT_TYPE_TUTOR
ACCOUNT_TYPE_GAMEMASTER
Solved or need the talkaction?
function onSay(cid, words, param)
local player = Player(cid)
if player:getAccountType() <= ACCOUNT_TYPE_GAMEMASTER then
return true
end
local target = Player(param)
if target == nil then
player:sendCancelMessage("A player with that name is not online.")
return false
end
if target:getAccountType() ~= ACCOUNT_TYPE_NORMAL then
player:sendCancelMessage("You can only promote a normal player to a gamemaster.")
return false
end
target:setAccountType(ACCOUNT_TYPE_GAMEMASTER)
target:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been promoted to a gamemaster by " .. player:getName() .. ".")
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have promoted " .. target:getName() .. " to a gamemaster.")
return false
end