Advertisement
blackwolfsden

example2

Dec 28th, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. function Guildplayersreward(event, pPlayer)
  2.     for _,v in pairs(GetPlayersInWorld()) do
  3.         if(v)and(v:IsInGuild()==true)then
  4.             local Vip = ACCT[GetAcctId(v)].Vip
  5.             a=(5*Vip)
  6.             v:SendBroadcastMessage("|cff00cc00Thank you for playing.|r")
  7.             UpdateMG(v, a)
  8.             end
  9.         if(v)and(v:IsInGuild()==false)then
  10.             v:SendBroadcastMessage("|cff00cc00Join a guild and earn hourly rewards.|r")
  11.             end
  12.         end
  13.     end
  14. RegisterTimedEvent("Guildplayersreward", 1800000, 0)
  15.  -- 60000 = 1 minute
  16.  -- 1800000 = 30 minutes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement