Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MSG_REVIVE = "#grow"
- local Rank =
- {
- ["vb"] = true,
- ["vs"] = true,
- ["vg"] = true,
- ["0"] = true,
- ["a"] = true,
- ["az"] = true,
- }
- local function OnChat_Level90(event, player, message, pType, pLanguage, pMisc)
- if(message:lower() == MSG_REVIVE) then
- if (player:GetPlayerLevel() >= 90) then
- player:SendBroadcastMessage("|cFF00FFFF[VIP System]|cFFFFA500|cFFFFA500You cant use this command, your already level 90!")
- player:SendBroadcastMessage("|cFF00FFFF[VIP System]|cFFFFA500|cFFFFA500You must be VIP to use this command, go donate on www.extremisgaming.com for VIP rank!!")
- else
- if Rank[player:GetGmRank()] then -- You could also use :CanUseCommand("a") for example
- player:SetLevel(90)
- player:SendBroadcastMessage("|cFF00FFFF[Vip System]|cFFFFA500|cFFFFA500Congratulations your now level 90!")
- else
- player:SendBroadcastMessage("|cFF00FFFF[Vip System]|cFFFFA500|cFFFFA500You must be at least a Bronze-VIP to use this command, go donate on www.extremisgaming.com for VIP rank!!")
- player:SendAreaTriggerMessage("|cFF00FFFF[Vip System]|cFFFFA500|cFFFFA500You must be at least a Bronze-VIP to use this command!")
- end
- end
- end
- end
- RegisterServerHook(16, OnChat_Level90)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement