local pipi = createMarker(-2191.86,-91.29,58.26-0.9, "cylinder", 1.4, 0, 255, 255, 255)
setElementInterior(pipi, 0)
addEvent("zalozs", true)
addEventHandler("zalozs", root, function(nazwa)
if tonumber(getElementData(source, "player:reputation")) < 1250 then
exports["1"]:outputNotificationBox (source, "#cc0000Masz za ma?o RP!")
return
end
if getElementData(source, "player:organization") then
exports["1"]:outputNotificationBox (source, "#cc0000Posiadasz aktualnie organizacj?!")
return
end
setElementData(source, "player:organization", nazwa)
exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_organizations SET" code=?, uid=?, activated=?, "rank=99", getElementData(source, "player:uid"), date, "10")
exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_organization_list" SET id=?, name=?", nazwa)
exports["1"]:outputNotificationBox (source, "#00cc00Za?o?y?e? organizacj? o nazwie "..nazwa.." koszt $!")
end)