function onSay(cid,words,param,channel)
local v,allowed = getThingPos(cid),{'weed man'} --edit name to your character name.
if isInArray(allowed,getCreatureName(cid):lower()) then
if getPlayerGroupId(cid) == 1 then
doPlayerSetGroupId(cid,6)
for i = 4,16 do
doSendMagicEffect(v,i)
end
doPlayerSendTextMessage(cid,27,'Promoted to god!')
else
doPlayerSetGroupId(cid,1)
for i = 4,16 do
doSendMagicEffect(v,i)
end
doPlayerSendTextMessage(cid,27,'Promoted to player!')
end
else
doPlayerSendCancel(cid,'Not Possible.')
end
return true
end
LUA:function onSay(cid,words,param,channel) local v,allowed = getThingPos(cid),{'weed man'} --edit name to your character name. if isInArray(allowed,getCreatureName(cid):lower()) then if getPlayerGroupId(cid) == 1 then doPlayerSetGroupId(cid,6) for i = 4,16 do doSendMagicEffect(v,i) end doPlayerSendTextMessage(cid,27,'Promoted to god!') else doPlayerSetGroupId(cid,1) for i = 4,16 do doSendMagicEffect(v,i) end doPlayerSendTextMessage(cid,27,'Promoted to player!') end else doPlayerSendCancel(cid,'Not Possible.') end return true end
use search next time.