function onSay(cid, words, param)
--- Config
--\/ This one is for if you want the script to change from normal voc to promoted voc and custom promotion voc
multiplevoc = "yes" --Just change it to "no" if you only want custom voc
removemoney = "yes" --Just change it to "no" if you wont to pay for vocations
amount = 20000 --The amount of money to remove
if getPlayerVocation(cid) >= 9 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are already promoted.")
elseif multiplevoc == "no" and getPlayerVocation(cid) <= 4 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to be promoted.")
elseif removemoney == "yes" and getPlayerMoney(cid) <= amount then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need ".. amount .." to be promoted, And you have ".. getPlayerMoney(cid) .." in other words you need ".. amount -getPlayerMoney(cid) ..".")
elseif removemoney == "yes" then
doPlayerRemoveMoney(cid, amount)
doPlayerSetVocation(cid, getPlayerVocation(cid) + 4)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you have been promoted!")
elseif removemoney == "no" then
doPlayerSetVocation(cid, getPlayerVocation(cid) + 4)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you have been promoted!")
end
end