Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- I dunno who made this but was in grims repack. very handy for a few mg scripts
- -- so rep grim for this
- function WelcomeBoxLogin(event, player)
- RegisterTimedEvent("RevivePlayerNext", 1000, 1, player)
- function RevivePlayerNext(player)
- if player:IsDead() then
- player:SendBroadcastMessage("system is helping you.. revived")
- player:ResurrectPlayer()
- WorldDBQuery("UPDATE logon.accounts SET `wc_box` = '1' WHERE `login` = '"..player:GetAccountName().."' LIMIT 1; ");
- else
- WorldDBQuery("UPDATE logon.accounts SET `wc_box` = '1' WHERE `login` = '"..player:GetAccountName().."' LIMIT 1; ");
- end
- end
- end
- RegisterServerHook(4, "WelcomeBoxLogin")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement