midoking

test

Feb 27th, 2017
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local function OnLogin(event, player)
  2.  
  3. if(player:player:GetVipLevel() >= 1) then
  4. return
  5. else
  6. AuthDBExecute("REPLACE INTO `account_vip` (`user_id`, `vip_level`, `active`, `start_date`, `end_date`) VALUES ("..Player:GetAccountId()..", 1, 1, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()+2592000"))
  7. end
  8.  
  9. end
  10.  
  11. RegisterPlayerEvent(3,OnLogin)
Advertisement
Add Comment
Please, Sign In to add comment