Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createAdminAccount(thePlayer, command, username, password)
- if getElementData(thePlayer, "adminlevel") >= 7 then
- if not (username) or not (password) then
- outputChatBox("#acd373[Freedom Gaming - Használat]: #ffffff/" .. command .. " [Felhasználónév] [Jelszó]", thePlayer, 255, 0, 0, true)
- else
- local query = dbExec(connection, "INSERT INTO admins SET username = ?, password = ?",username,password)
- if query then
- outputChatBox("#acd373[Freedom Gaming - Admins]: #ffffffHozzáadva!", thePlayer, 255, 0, 0, true)
- else
- outputChatBox("#acd373[Freedom Gaming - Admins] #ffffffMySQL Hiba [#001-es kód]", thePlayer, 255, 0, 0, true)
- end
- end
- end
- end
- addCommandHandler("createadminaccount", createAdminAccount)
Add Comment
Please, Sign In to add comment