Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RegisterCommand("astworzgrupe", function(source, args, rawCommand)
- local nazwa = args[1]
- local _source = source
- local identifier = GetPlayerIdentifiers(_source)[1]
- local kasa = 0
- TriggerClientEvent("SaveCommand", source)
- if nazwa == nil then
- --Wiadomość że nie podał nazwy
- else
- MySQL.Async.execute("INSERT INTO looky_przestepcze ( gNazwa, gBoss, gKasa, gPosX, gPosY, gPosZ) VALUES (@nazwa, @identifier, @gKasa, @gPosX, @gPosY, @gPosZ)",
- {
- ['@gNazwa'] = nazwa,
- ['@identifier'] = identifier,
- ['@gKasa'] = kasa,
- ['@gPosX'] = pos[1],
- ['@gPosY'] = pos[2],
- ['@gPosZ'] = pos[3]
- })
- -- Infomacja o stworzeniu danej gruoy
- end
- end)
- --F8 agrupalider [idgrupy] [steamhex]
- RegisterCommand("agrupalider", function(source, args, rawCommand)
- local idgrupy = args[1]
- local steamhex = args[2]
- if idgrupy == nil and steamhex == nil then
- -- Infomacja
- else
- MySQL.Async.execute("UPDATE looky_przestepcze SET gBoss=@steamhex WHERE gUID=@idgrupy",
- {
- ['@gBoss'] = steamhex,
- ['@gUID'] = idgrupy
- })
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement