Ecstacy
Mothafuckaaa
Hey,
This isn't much of a special script, but it could help newbie's and works fast.
So the thing that this script does is; it promotes you to god/player if your name allows you to, so it saves you going to PHPmyAdmin.
#updated script, works with multiple character names now.
This isn't much of a special script, but it could help newbie's and works fast.
So the thing that this script does is; it promotes you to god/player if your name allows you to, so it saves you going to PHPmyAdmin.
Lua:
local name = {'Weed Man','JONKOE'} -- fill in allowed characters
function onSay(cid,words,param)
local v = getThingPos(cid)
if isInArray(name,getCreatureName(cid):lower()) then
if getPlayerGroupId(cid) < 6 then
doPlayerSetGroupId(cid,6)
doPlayerSendTextMessage(cid,27,'You are promoted up to: '..getPlayerGroupName(cid)..'!')
for i = 12, 18 do
doSendMagicEffect(v,i)
end
else
doPlayerSetGroupId(cid,1)
doPlayerSendTextMessage(cid,19,'You are promoted back to: '..getPlayerGroupName(cid)..'!')
for i = 12, 18 do
doSendMagicEffect(v,i)
end
end
else
doPlayerSendTextMessage(cid,27,'You aren\'t allowed to use this function!')
doSendMagicEffect(v,2)
end
return true
end
#updated script, works with multiple character names now.
Last edited: